t/curse: test to make sure the same file isn't generated more than once.
redo currently passes this when running serially, but not in parallel.
This commit is contained in:
parent
2a9a332451
commit
ec6f61949b
4 changed files with 9 additions and 1 deletions
1
t/curse/.gitignore
vendored
1
t/curse/.gitignore
vendored
|
|
@ -1,2 +1,3 @@
|
||||||
*.n1
|
*.n1
|
||||||
*.n2
|
*.n2
|
||||||
|
*.count
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,8 @@
|
||||||
redo-ifchange 1.n0 2.n0 3.n0
|
redo-ifchange 1.n0 2.n0 3.n0
|
||||||
DEPS=$(seq 10 | sed 's/$/.n1/')
|
DEPS=$(seq 10 | sed 's/$/.n1/')
|
||||||
redo-ifchange $DEPS
|
redo-ifchange $DEPS
|
||||||
|
COUNT=$(cat *.count | wc -l)
|
||||||
|
if ! [ "$COUNT" = 100 ]; then
|
||||||
|
echo "expected 100 writes, got $COUNT" >&2
|
||||||
|
exit 42
|
||||||
|
fi
|
||||||
|
|
|
||||||
|
|
@ -1 +1,2 @@
|
||||||
rm -f *~ .*~ *.n1 *.n2 *.tmp
|
rm -f *~ .*~ *.n1 *.n2 *.tmp *.count
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1 +1,2 @@
|
||||||
echo n2-$1
|
echo n2-$1
|
||||||
|
echo $1 >>$1.count
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue