CQtDeployer/test.pri

30 lines
752 B
Plaintext
Raw Permalink Normal View History

2020-02-11 12:22:45 +03:00
unix:exec = $$PWD/UnitTests/build/release/UnitTests
win32:exec = $$PWD/UnitTests/build/release/UnitTests.exe
2019-05-15 14:56:38 +03:00
2019-06-27 19:41:21 +03:00
QT_DIR= $$[QT_HOST_BINS]
win32:QMAKE_BIN= $$QT_DIR/qmake.exe
contains(QMAKE_HOST.os, Linux):{
QMAKE_BIN= $$QT_DIR/qmake
}
2020-02-11 10:13:56 +03:00
DEPLOYER=cqtdeployer
2020-02-11 13:13:06 +03:00
win32:DEPLOYER=$$(cqtdeployer)
2020-02-11 10:13:56 +03:00
2020-02-11 12:22:45 +03:00
deployTest.commands = $$DEPLOYER -bin $$exec clear -qmake $$QMAKE_BIN -targetDir $$PWD/deployTests -libDir $$PWD -recursiveDepth 4
2019-05-15 14:56:38 +03:00
2019-09-15 21:47:19 +03:00
2020-03-26 22:00:06 +03:00
!android:test.depends = deployTest
2019-12-31 00:19:44 +03:00
unix:!android:test.commands = $$PWD/deployTests/UnitTests.sh -maxwarnings 100000
2020-05-13 19:24:33 +03:00
win32:test.commands = $$PWD/deployTests/UnitTests.exe -maxwarnings 100000 -o $$PWD/buildLog.log
2019-05-15 14:56:38 +03:00
2019-12-31 00:19:44 +03:00
contains(QMAKE_HOST.os, Linux):{
win32:test.commands =
}
2020-02-04 17:56:48 +03:00
2019-05-15 14:56:38 +03:00
QMAKE_EXTRA_TARGETS += \
deployTest \
2019-09-16 09:44:19 +03:00
test
2019-09-11 18:09:37 +03:00