Replies: 1 comment
-
I did not intend to imply that this is a novel idea. For example, in Cmake/Ctest:
See also: |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Unit tests may be single threaded or may use threads internally to run on multiple processors.
I would like to share an idea for allowing the
test()
function to have a keyword argumentprocesses
which can be set to a positive integer. This integer indicates to meson that the test "consumes" multiple processes (i.e., uses multiple CPU cores).Given, for example,
MESON_NUM_PROCESSES=6
, the idea would be to run combinations such as the following:processes : 4
and two tests withprocesses : 1
processes : 4
and one test withprocesses : 2
processes : 2
processes : 2
and four tests withprocesses : 1
Beta Was this translation helpful? Give feedback.
All reactions