aboutsummaryrefslogtreecommitdiff
path: root/tests/CMakeLists.txt
diff options
context:
space:
mode:
authorAlex Merry <alex.merry@kde.org>2014-06-02 16:23:19 +0100
committerAlex Merry <alex.merry@kde.org>2014-06-02 16:23:19 +0100
commit5977afced396a62fb86eb178f13156588e3cfcd8 (patch)
treee45e8013d8b8c1151dd72905c936df0838c255bb /tests/CMakeLists.txt
parent1fe09cafc493bbe541f16d43b783cbb876cab528 (diff)
downloadextra-cmake-modules-5977afced396a62fb86eb178f13156588e3cfcd8.tar.gz
extra-cmake-modules-5977afced396a62fb86eb178f13156588e3cfcd8.tar.bz2
Reorganize tests
Move the detailed testing of KDEInstallDirs from ExecuteKDEModules to a subdir of KDEInstallDirsTest. This is where you would expect to find it, and it also makes sure that other KDE modules are not affecting the test. This also makes the KDEInstallDirs/not_cache_variable regression test work the same way as the other tests, doing a double-configure and build. While not stricly necessary to catch the original issue, it does ensure that the problem does not appear when reconfiguring either.
Diffstat (limited to 'tests/CMakeLists.txt')
-rw-r--r--tests/CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index ad341c00..dfcc252a 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -3,7 +3,6 @@
add_subdirectory(ECMGenerateHeadersTest)
add_subdirectory(ECMSetupVersionTest)
-add_subdirectory(KDEInstallDirsTest)
macro(ADD_TEST_MACRO NAME COMMAND)
string(REPLACE "." "/" dir "${NAME}")
@@ -24,6 +23,8 @@ find_package(Qt5LinguistTools CONFIG)
add_test_macro(ExecuteCoreModules dummy)
add_test_macro(ExecuteKDEModules dummy)
+add_test_macro(KDEInstallDirsTest.vars_defined dummy)
+add_test_macro(KDEInstallDirsTest.not_cache_variable dummy)
add_test_macro(FindModules dummy)
add_test_macro(UseFindModules dummy)