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.
This commit is contained in:
Avery Pennarun 2018-12-31 17:43:03 -05:00
commit 87bac287b6
14 changed files with 87 additions and 2 deletions

View file

@ -1,2 +1,3 @@
*.log
*.out
whichmake

View file

@ -12,7 +12,12 @@ run() {
redo y
rm -f *.out
redo -j10 y
# Capture output to y.log because we know this intentionally generates
# a scary-looking redo warning (overriding the jobserver).
if ! redo -j10 y 2>y.log; then
cat y.log
exit 99
fi
}
run

View file

@ -1 +1 @@
rm -f *~ .*~ *.out whichmake
rm -f *~ .*~ *.out whichmake *.log