Test for the previous bugfix.
This fails if you make test *twice* without the preceding patch. Unfortunately I couldn't find a good way to make it fail if you only make test once.
This commit is contained in:
parent
0652bc9911
commit
b19a918894
9 changed files with 24 additions and 3 deletions
14
t/deps/test1.do
Normal file
14
t/deps/test1.do
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
# force-rebuild t1dep
|
||||
redo t1dep
|
||||
|
||||
if [ -e t1a ]; then
|
||||
BEFORE="$(cat t1a)"
|
||||
else
|
||||
BEFORE=
|
||||
fi
|
||||
redo-ifchange t1a # it definitely had to rebuild because t1dep changed
|
||||
AFTER="$(cat t1a)"
|
||||
if [ "$BEFORE" == "$AFTER" ]; then
|
||||
echo "t1a was not rebuilt!" >&2
|
||||
exit 43
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue