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:
parent
c4287b9d81
commit
9b23b2c67a
7 changed files with 13 additions and 1 deletions
2
t/curse/.gitignore
vendored
Normal file
2
t/curse/.gitignore
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
*.n1
|
||||
*.n2
|
||||
3
t/curse/all.do
Normal file
3
t/curse/all.do
Normal 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
1
t/curse/clean.do
Normal file
|
|
@ -0,0 +1 @@
|
|||
rm -f *~ .*~ *.n1 *.n2 *.tmp
|
||||
2
t/curse/default.n0.do
Normal file
2
t/curse/default.n0.do
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
DEPS=$(seq 10 | sed 's/$/.n1/')
|
||||
redo-ifchange $DEPS
|
||||
3
t/curse/default.n1.do
Normal file
3
t/curse/default.n1.do
Normal 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
1
t/curse/default.n2.do
Normal file
|
|
@ -0,0 +1 @@
|
|||
echo n2-$1
|
||||
Loading…
Add table
Add a link
Reference in a new issue