summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/tools/qcommandlineparser
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2021-09-08 14:04:59 +0200
committerEdward Welbourne <edward.welbourne@qt.io>2021-09-17 12:57:25 +0200
commitcbd33cb55757122e2c02356285c335af969dcd43 (patch)
treed57e3098209fa16ad97bff1f315eface2bacc708 /tests/auto/corelib/tools/qcommandlineparser
parentfb3549fc47b19de2956cd2dda07ef67ec529cf3e (diff)
Add missing dependencies of tests on their helper programs
This ensures that a command such as $ ninja tst_qlocale && ninja tst_qlocale_check will automagically build the syslocaleapp program that the test runs from a subtest. Similar for testlib's selftests and tst_QProcess. As a drive-by, pruned some legacy comments from when CMakeLists.txt files were generated from .pro files. Change-Id: I67691a8175aaef124d4104cf1898193993408bdf Reviewed-by: Alexey Edelev <alexey.edelev@qt.io> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Andrei Golubev <andrei.golubev@qt.io>
Diffstat (limited to 'tests/auto/corelib/tools/qcommandlineparser')
-rw-r--r--tests/auto/corelib/tools/qcommandlineparser/CMakeLists.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/auto/corelib/tools/qcommandlineparser/CMakeLists.txt b/tests/auto/corelib/tools/qcommandlineparser/CMakeLists.txt
index 128b8cfd73..f25766164a 100644
--- a/tests/auto/corelib/tools/qcommandlineparser/CMakeLists.txt
+++ b/tests/auto/corelib/tools/qcommandlineparser/CMakeLists.txt
@@ -1,5 +1,3 @@
-# Generated from qcommandlineparser.pro.
-
#####################################################################
## tst_qcommandlineparser Test:
#####################################################################
@@ -9,3 +7,6 @@ qt_internal_add_test(tst_qcommandlineparser
tst_qcommandlineparser.cpp
)
add_subdirectory(testhelper)
+if(QT_FEATURE_process AND NOT ANDROID)
+ add_dependencies(tst_qcommandlineparser qcommandlineparser_test_helper)
+endif()