I have several tests described with some of them having multiple labels. I am trying to run tests with multiple labels, like label_A and label_B, in ctest_test(). I am not able to get a regex work for this case, for the LABELS field of ctest_test(). Have tried a few combinations of POSIX regex, but haven’t been successful. I might be doing something stupid here, Any help would be appreciated
Thanks for the reply Ben
I am looking to run a set of tests that are intersection of 2 labels. Only if the tests have both the labels, I would like to run them. Is there a way to represent that in posix regex for ctest_test()
I don’t believe so as each label is (IIRC) tested against the regex individually. Using this proposed feature with ctest -N -L label1 and using sort and uniq -d to craft a test list would probably be the easiest solution.