Replies: 1 comment
-
The docs mentioned seem to talk mostly about running the test on multiple different machines. Meson's test runner (for the moment at least) does not really do that. It seem actually a bit strange thet you can't do something like Regardless this should probably be implemented only with command line arguments to |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I noticed that meson will automatically run different test executables in parallel, but this doesn't do anything for independent tests within a single executable. GTest and some other competing test frameworks provide an option to 'shard' work across different process runs, essentially each doing a fraction. This would let work in a single test executable scale with the available cores.
For example, GTest honors the following environment variables:
GTEST_TOTAL_SHARDS
- Number of processes to divide the work intoGTEST_SHARD_INDEX
- Which process this invocation isGTEST_SHARD_STATUS_FILE
- File to write to if the current exe is new enough to support sharding. This should be set to a writable-but-nonexistant path, and if the file exists it is used to indicate support for this feature.It would be nice for Meson to be able to extend its test-driver parallelism to multiple processes-per-executable in addition to multiple exectuables-- this would drop test times for a lot of users quite nicely with minimal effort.
Things to discuss here:
Beta Was this translation helpful? Give feedback.
All reactions