Ctest exclude regex
Unfortunately the ctest exclude regex (and also those for -R) do not seem to work as I would expect it.
I have tests like
test_geometry_pass
test_mesh
integration_test_render
project--cpplint
...
I would like to have a target to e.g. only run the unit tests, so not integration tests and not cpplint, for which I guarantee that the names always start with test
So I thought to create a target in CMake like:
add_custom_target(Unit-Test-Suite COMMAND ctest -R "^test" -C $<CONFIG>)
Unfortunately that also triggers integration_test_render
since the start regex-symbol seems to be ignored. I also tried something like:
ctest -E "(integration_test)|(cpplint)"
which cmake did not like, since the | seemed to be interpreted differently.
Is this a bug or is this not the common regex expression as described in the string doku