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.
25 lines
403 B
Text
25 lines
403 B
Text
exec >&2
|
|
redo-ifchange whichmake
|
|
|
|
run() {
|
|
rm -f *.out
|
|
./whichmake y
|
|
|
|
rm -f *.out
|
|
./whichmake -j10 y
|
|
|
|
rm -f *.out
|
|
redo y
|
|
|
|
rm -f *.out
|
|
# 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
|
|
. ./wipe-redo.sh
|
|
run
|