5

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.
danba
  • 842
  • 11
  • 32

1 Answers1

2

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 \\\|.

danba
  • 842
  • 11
  • 32