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:
Avery Pennarun 2010-11-19 00:55:36 -08:00
commit ec6f61949b
4 changed files with 9 additions and 1 deletions

1
t/curse/.gitignore vendored
View file

@ -1,2 +1,3 @@
*.n1
*.n2
*.count

View file

@ -1,3 +1,8 @@
redo-ifchange 1.n0 2.n0 3.n0
DEPS=$(seq 10 | sed 's/$/.n1/')
redo-ifchange $DEPS
COUNT=$(cat *.count | wc -l)
if ! [ "$COUNT" = 100 ]; then
echo "expected 100 writes, got $COUNT" >&2
exit 42
fi

View file

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

View file

@ -1 +1,2 @@
echo n2-$1
echo $1 >>$1.count