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

3
t/102-empty/.gitignore vendored Normal file
View file

@ -0,0 +1,3 @@
touch1
silence
silence.do

1
t/102-empty/all.do Normal file
View file

@ -0,0 +1 @@
redo silencetest touchtest blank

3
t/102-empty/blank.do Normal file
View file

@ -0,0 +1,3 @@
redo-ifchange
redo-ifcreate
redo

1
t/102-empty/clean.do Normal file
View file

@ -0,0 +1 @@
rm -f touch1 *~ .*~

View file

@ -0,0 +1,8 @@
echo 'echo hello' >silence.do
redo silence
[ -e silence ] || exit 55
echo 'true' >silence.do
redo silence
. ../skip-if-minimal-do.sh
[ ! -e silence ] || exit 66
rm -f silence.do

9
t/102-empty/touchtest.do Normal file
View file

@ -0,0 +1,9 @@
echo 'echo hello' >touch1.do
redo touch1
[ -e touch1 ] || exit 55
rm -f touch1
echo 'touch $3' >touch1.do
redo touch1
[ -e touch1 ] || exit 66
[ -z "$(cat touch1)" ] || exit 77
rm -f touch1.do