Reputation: 877
As specified on https://cmake.org/cmake/help/v3.7/manual/ctest.1.html, ctest supports filtering tests to run by regex. Unfortunately I can't seem to find out what syntax the regex language used by ctest has.
I'd like to do something like
ctest -R "SomeTest|SomeOtherTest" # should execute the two tests named and no other tests.
Upvotes: 5
Views: 2841
Reputation: 877
Turns out I was calling ctest the wrong way. The way i was wrapping it in a bash script I had to escape the pipe as \\\|
.
Upvotes: 2