Debian Codegraph @

cmake/tribits/examples/TribitsExampleProject2/packages/package1/test/CMakeLists.raw.cmake

raw
1 add_test(NAME Package1_Prg COMMAND package1-prg)
2 set_tests_properties(Package1_Prg
3 PROPERTIES PASS_REGULAR_EXPRESSION "Package1 Deps: tpl1")
4
5 add_test(NAME Package1_Prg-advanced COMMAND package1-prg something_extra)
6 set_tests_properties(Package1_Prg-advanced
7 PROPERTIES PASS_REGULAR_EXPRESSION "something_extra")
8
9 # NOTE: With raw CMake/CTest, it is not possible to require the matches of
10 # multiple regexes (i.e. require the match of *both* "Package1 Deps:
11 # tpl1" and "something_extra"). Also, it is not possible to require a
12 # non-zero return code in addition to requiring a regex match the output.
13 # These more advanced features of tribits_add_advanced_test() would need to be
14 # provided by writing a wrapper script (e.g. using a Python script, a cmake -P
15 # script, etc.). Also, these tests don't support other features like: b)
16 # allow tests to be disabled for a variety of reasons like number of MPI
17 # processes required, incompatible system, disable cache variables -D
18 # <fullTestName>_DISABLE=ON, etc.; b) printing which tests got added or did
19 # not get added and why when <Package>_TRACE_ADD_TEST=ON, etc.