diff options
author | Edward Welbourne <edward.welbourne@qt.io> | 2021-09-08 14:04:59 +0200 |
---|---|---|
committer | Edward Welbourne <edward.welbourne@qt.io> | 2021-09-17 12:57:25 +0200 |
commit | cbd33cb55757122e2c02356285c335af969dcd43 (patch) | |
tree | d57e3098209fa16ad97bff1f315eface2bacc708 /tests/auto/corelib/io/qfile | |
parent | fb3549fc47b19de2956cd2dda07ef67ec529cf3e (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/io/qfile')
-rw-r--r-- | tests/auto/corelib/io/qfile/CMakeLists.txt | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/auto/corelib/io/qfile/CMakeLists.txt b/tests/auto/corelib/io/qfile/CMakeLists.txt index 4d9a0d2598..d9c148e9db 100644 --- a/tests/auto/corelib/io/qfile/CMakeLists.txt +++ b/tests/auto/corelib/io/qfile/CMakeLists.txt @@ -1,18 +1,14 @@ -# Generated from qfile.pro. - ##################################################################### ## tst_qfile Test: ##################################################################### # Collect test data -# list(APPEND test_data "BLACKLIST") # special case remove list(APPEND test_data "dosfile.txt") list(APPEND test_data "noendofline.txt") list(APPEND test_data "testfile.txt") list(APPEND test_data "testlog.txt") list(APPEND test_data "two.dots.file") list(APPEND test_data "tst_qfile.cpp") -# list(APPEND test_data "Makefile") # special case remove list(APPEND test_data "forCopying.txt") list(APPEND test_data "forRenaming.txt") list(APPEND test_data "resources/file1.ext1") @@ -83,3 +79,6 @@ qt_internal_extend_target(tst_qfile CONDITION WIN32 uuid ) add_subdirectory(stdinprocess) +if(QT_FEATURE_process) + add_dependencies(tst_qfile stdinprocess_helper) +endif() |