diff --git a/CQtDeployer.pro b/CQtDeployer.pro index fe654b1..bd6135e 100644 --- a/CQtDeployer.pro +++ b/CQtDeployer.pro @@ -12,6 +12,7 @@ lessThan(QT_MAJOR_VERSION, 6):lessThan(QT_MINOR_VERSION, 12) { warning("Tests are only enabled on Qt 5.12.0 or later version. You are using $$[QT_VERSION].") DEFINES += WITHOUT_TESTS } +android: DEFINES += WITHOUT_TESTS !android { SUBDIRS += QuasarAppLib \ diff --git a/test.pri b/test.pri index 7b2b264..f7b7895 100644 --- a/test.pri +++ b/test.pri @@ -13,7 +13,7 @@ win32:DEPLOYER=$$(cqtdeployer) test.commands = deployTest.commands = $$DEPLOYER -bin $$exec clear -qmake $$QMAKE_BIN -targetDir $$PWD/deployTests -libDir $$PWD -recursiveDepth 4 -!android { +!contains(DEFINES, WITHOUT_TESTS) { test.depends = deployTest unix:test.commands = $$PWD/deployTests/UnitTests.sh -maxwarnings 100000 win32:test.commands = $$PWD/deployTests/UnitTests.exe -maxwarnings 100000 -o buildLog.log