How do I specify regular expressions for CTest

Viewed 547

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?

1 Answers

ctest -E "BBBB|CCCC" -R "AAAA" did the job. POSIX seems to set the standard, for other unix-utilities as well.

Related