diff options
author | Ryan Pavlik <rpavlik@iastate.edu> | 2011-10-31 11:13:22 +0100 |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@nokia.com> | 2011-10-31 11:13:22 +0100 |
commit | 2fe977e3aea8aba26aa011eea67e14552562b3ff (patch) | |
tree | 595f522e0f8f3f528cbee98c45d98b2477d61e24 /CMakeLists.txt | |
parent | 3de53a47af80bbd76d2438071075afc8fc2863b2 (diff) |
fix list of tests
Merge-request: 8
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 42 |
1 files changed, 33 insertions, 9 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 65e2211..fc3d4ac 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -124,15 +124,39 @@ set(JOM_SRCS # add one unit test per function: # you can run the unittests all at once using 'make test' from the build directory - add_test(includeFiles jom-test includeFiles) - add_test(includeCycle jom-test includeCycle) - add_test(macros jom-test macros) - add_test(inferenceRules jom-test inferenceRules) - add_test(cycleInTargets jom-test cycleInTargets) - add_test(multipleTargets jom-test multipleTargets) - add_test(multipleTargetsFail jom-test multipleTargetsFail) - add_test(comments jom-test comments) - add_test(fileNameMacros jom-test fileNameMacros) + # to produce the list: jom-test --functions | sed 's|[(][)]||' + set(TEST_NAMES + includeFiles + includeCycle + macros + invalidMacros + preprocessorExpressions + preprocessorDivideByZero + preprocessorInvalidExpressions + conditionals + dotDirectives + descriptionBlocks + inferenceRules + cycleInTargets + dependentsWithSpace + multipleTargets + comments + fileNameMacros + fileNameMacrosInDependents + windowsPathsInTargetName + caseInsensitiveDependents + environmentVariables + ignoreExitCodes + inlineFiles + unicodeFiles + builtin_cd + suffixes + nonexistentDependent + outOfDateCheck + ) + foreach(TEST_NAME ${TEST_NAMES}) + add_test(${TEST_NAME} jom-test ${TEST_NAME}) + endforeach() endif(JOM_ENABLE_TESTS) |