t/*: rearrange tests into numbered directories.

It was getting way too ad-hoc in there.  Let's reorganize the tests so that
there's a good, obvious, suggested sequence to run them in.
This commit is contained in:
Avery Pennarun 2012-02-08 00:33:00 -05:00
commit 7822f5a5bb
170 changed files with 100 additions and 80 deletions

1
t/220-ifcreate/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
ifcreate?.log

21
t/220-ifcreate/all.do Normal file
View file

@ -0,0 +1,21 @@
rm -f exists ifcreate[12] ifcreate[12].log ifcreate[12].dep
. ../skip-if-minimal-do.sh
touch exists
redo-ifcreate exists 2>/dev/null && exit 91
rm exists
redo-ifcreate exists || exit 92
for d in 1 2; do
redo ifcreate$d
[ "$(wc -l <ifcreate$d.log)" -eq 1 ] || exit ${d}1
redo-ifchange ifcreate$d
[ "$(wc -l <ifcreate$d.log)" -eq 1 ] || exit ${d}2
../flush-cache
touch ifcreate$d.dep
redo-ifchange ifcreate$d
[ "$(wc -l <ifcreate$d.log)" -eq 2 ] || exit ${d}3
../flush-cache
rm ifcreate$d.dep
redo-ifchange ifcreate$d
[ "$(wc -l <ifcreate$d.log)" -eq 3 ] || exit ${d}4
done

1
t/220-ifcreate/clean.do Normal file
View file

@ -0,0 +1 @@
rm -f ifcreate?.log *~ .*~

View file

@ -0,0 +1,6 @@
if [ -e ifcreate1.dep ]; then
redo-ifchange ifcreate1.dep
else
redo-ifcreate ifcreate1.dep
fi
echo $$ >>ifcreate1.log

View file

@ -0,0 +1,7 @@
cd ..
if [ -e 220-ifcreate/ifcreate2.dep ]; then
redo-ifchange 220-ifcreate/ifcreate2.dep
else
redo-ifcreate 220-ifcreate/ifcreate2.dep
fi
echo $$ >>220-ifcreate/ifcreate2.log