Reputation: 128
I want to run only a certain selection of tests.
From the CMake Documentation I found -R <regex>
and -E <regex>
, so I can run selections like ctest -E UNWANTED_TESTS -R WANTED_TESTS
but I would like to be more expressive, specifically I want to combine two strings by or.
For example, how do I run tests containing "AAAA" but neither containing "BBBB" nor "CCCC"?
Generally, where may I learn more about this kind of regular expressions?
Upvotes: 5
Views: 3840
Reputation: 128
ctest -E "BBBB|CCCC" -R "AAAA"
did the job. POSIX seems to set the standard, for other unix-utilities as well.
Upvotes: 4