diff options
author | Bernd Weimer <bernd.weimer@pelagicore.com> | 2018-11-27 12:46:31 +0100 |
---|---|---|
committer | Dominik Holland <dominik.holland@pelagicore.com> | 2018-12-05 13:19:29 +0000 |
commit | b4f2fae0ed226744272d63d6817aa6a95e9b2457 (patch) | |
tree | d2e468698a7d11f5bdd7619d60824c6ee140f814 /qmake-features | |
parent | dff3e21c207d6bd8ef8c5934f42723794e6efb2a (diff) |
Add tests for various configurations
Various runtime configurations will be tested in terms of basic IPC
between System-UI and an application. In particular the "--dbus none"
option will be tested.
[Cherry-picked from dev]
Change-Id: Icf2142db864d15dfc7b18070d181fd76e6044514
Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
Diffstat (limited to 'qmake-features')
-rw-r--r-- | qmake-features/am-qml-testcase.prf | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/qmake-features/am-qml-testcase.prf b/qmake-features/am-qml-testcase.prf index a61f07c9..125ae281 100644 --- a/qmake-features/am-qml-testcase.prf +++ b/qmake-features/am-qml-testcase.prf @@ -65,10 +65,17 @@ OTHER_FILES += $$AM_CONFIG QMAKE_EXTRA_TARGETS *= check +# Set default test configuration (each config is run separately) +isEmpty(TEST_CONFIGURATIONS) { + !equals(MODE, "single-process"): TEST_CONFIGURATIONS = "--force-multi-process" + !equals(MODE, "multi-process"): TEST_CONFIGURATIONS += "--force-single-process" +} + # Execute a testrunner for every file for(file, TEST_FILES) { - !equals(MODE, "single-process"):check.commands += $$COMMAND $$absolute_path($$file, $$_PRO_FILE_PWD_) --force-multi-process -- $(TESTARGS) && - !equals(MODE, "multi-process"):check.commands += $$COMMAND $$absolute_path($$file, $$_PRO_FILE_PWD_) --force-single-process -- $(TESTARGS) && + for(config, TEST_CONFIGURATIONS) { + check.commands += $$COMMAND $$absolute_path($$file, $$_PRO_FILE_PWD_) $${config} -- $(TESTARGS) && + } } msvc:check.commands += VER>NUL else:check.commands += true; |