apenwarr-redo/t/010-jobserver/paralleltest.do
Avery Pennarun 87bac287b6 t/010-jobserver: add serial/parallel override tests.
This new test validates that you can pass -j1 and -j2 in a sub-redo to
create a sub-jobserver with exactly the number of jobs you specified.
Now that we have that feature, we can also test for the bug fixed two
commits ago where, with -j1, targets would be built in an unexpected
order.
2018-12-31 19:24:27 -05:00

7 lines
426 B
Text

# Test that -j2 really gives us parallel builds with their own tokens.
# (It's hard to test for sure that we have our own tokens, but if we're
# sharing with other tests, we can't be sure that parallel2 will run while
# parallel is running, and the race condition will make this test at least
# be flakey instead of pass, which means there's a bug.)
rm -f *.sub *.spin *.x *.log parallel *.start *.end
redo parallel parallel2