4
1
mirror of https://github.com/QuasarApp/CQtDeployer.git synced 2025-05-04 13:39:34 +00:00

added test

This commit is contained in:
Andrei Yankovich 2022-02-08 12:58:04 +03:00
parent 8e4afd4bdd
commit 384a6bd871
2 changed files with 29 additions and 1 deletions

@ -16,7 +16,7 @@ lessThan(QT_MAJOR_VERSION, 6):lessThan(QT_MINOR_VERSION, 12) {
unix:gcc {
COMPILER_VERSION = $$system($$QMAKE_CXX " -dumpversion")
COMPILER_MAJOR_VERSION = $$str_member($$COMPILER_VERSION)
COMPILER_MAJOR_VERSION = $$COMPILER_VERSION
lessThan(COMPILER_MAJOR_VERSION, 5): {
warning("The PE parser library is disabled. For build the PE parser library require gcc 5 or later version.")
DEFINES += DISABLE_PE

@ -1650,7 +1650,35 @@ void deploytest::testQIFResources() {
}
void deploytest::testCustomPlatform() {
TestUtils utils;
auto compareTree = TestModule.onlyC();
#ifdef Q_OS_UNIX
QString bin = {TestBinDir + "TestOnlyC"};
QString platform = "linux_x86_64";
#else
QString bin = {TestBinDir + "TestOnlyC.exe"};
QString platform = "win_x86_64";
#endif
runTestParams({
"-bin", bin,
"clear",
"-platform", platform,
}, &compareTree
);
runTestParams({
"-bin", bin,
"clear",
"-platform", "GeneralFile",
}, nullptr, false, false, exitCodes::PrepareError
);
}
void deploytest::customTest() {