Add t/curse, a multi-level dependency build that really aggravates redo.

...because it seems my locking isn't very good.  It exposes annoying
problems involving rebuilding the same files more than once, screwing up
stamp files with redo -j, and being unnecessarily slow when checking
dependencies.  So it's a pretty good test considering how simple it is.

Didn't add it to t/all.do yet, because it would fail.
This commit is contained in:
Avery Pennarun 2010-11-19 00:28:16 -08:00
commit 9b23b2c67a
7 changed files with 13 additions and 1 deletions

2
t/curse/.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
*.n1
*.n2

3
t/curse/all.do Normal file
View file

@ -0,0 +1,3 @@
redo-ifchange 1.n0 2.n0 3.n0
DEPS=$(seq 10 | sed 's/$/.n1/')
redo-ifchange $DEPS

1
t/curse/clean.do Normal file
View file

@ -0,0 +1 @@
rm -f *~ .*~ *.n1 *.n2 *.tmp

2
t/curse/default.n0.do Normal file
View file

@ -0,0 +1,2 @@
DEPS=$(seq 10 | sed 's/$/.n1/')
redo-ifchange $DEPS

3
t/curse/default.n1.do Normal file
View file

@ -0,0 +1,3 @@
DEPS=$(seq 100 | sed 's/$/.n2/')
redo-ifchange $DEPS
echo n1-$1

1
t/curse/default.n2.do Normal file
View file

@ -0,0 +1 @@
echo n2-$1