Support limiting skipped tests by suite
When running GTest based tests, the test binary supports both -p
and -s
options for specifying tests to run, and tests to skip, respectively. While with the former you can specify a sub-path for a suite and have it do the right thing, with the latter you can't.
This makes it difficult to run your tests grouped into disjoint sets, for example if some test suites are particularly slow and hence you want run each of the slow suites as its own meson test target.
For example, with the following suites and tests:
/suite1/test1
/suite1/test2
/suite2/test1
/suite2/test2
This works as expected:
$ test-running -p /suite1
...
ok 1 /suite1/test1
ok 2 /suite1/test2
Whereas this does not:
$ test-running -s /suite1
...
ok 1 /suite1/test1
ok 2 /suite1/test2
ok 3 /suite2/test1
ok 4 /suite2/test2
(Contrived example, but you get the idea)