lest assume I have some project that consists of N domains (D1, D2, ... , DN) . Each domain has tests of two kinds: lest say UT and MT. They are defined like so:
add_test(
NAME Di_UT
COMMAND <blah>
)
add_test(
NAME Di_MT
COMMAND <blah>
)
And I'd like to be able to filter them by labels. So I add the labels:
set_tests_properties(Di_UT PROPERTIES LABELS "UT;Di")
set_tests_properties(Di_MT PROPERTIES LABELS "MT;Di")
Then I execute ctest:
ctest -L Di
will execute all tests for domain Di, and of course the opposite:
ctest -L UT
Will execute all tests with UT label.
But how to filter by both labels? execute only UT for domain Di?
From what i observe, passing multiple -L
causes them to overwrite. (the last one has effect). Any other ideas? my cmake version is
ctest version 3.13.4