ctest: Add test selection based on sharding across nodes.
I'd like to get some feedback on this feature.
This is intended to be similar to gtest-parallel's --shard_count
and --shard_index
options.
As an example, if you wanted to run a portion of a test suite across 3 machines, you might do something like this:
- Machine 1:
ctest -R 'RunCMake.*' -IS 0,3
- Machine 2:
ctest -R 'RunCMake.*' -IS 1,3
- Machine 3:
ctest -R 'RunCMake.*' -IS 2,3
I think this is a pretty common scenario that is worth supporting in CTest.