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/100-args/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
passfail

1
t/100-args/all.do Normal file
View file

@ -0,0 +1 @@
redo test.args test2.args passfailtest

1
t/100-args/clean.do Normal file
View file

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

View file

@ -0,0 +1,3 @@
[ "$1" = "test.args" ]
[ "$2" = "test" ]
[ "$3" != "test.args" ]

6
t/100-args/passfail.do Normal file
View file

@ -0,0 +1,6 @@
echo $$
if [ -e pleasefail ]; then
exit 1
else
exit 0
fi

View file

@ -0,0 +1,15 @@
. ../skip-if-minimal-do.sh
rm -f pleasefail
redo passfail
[ -e passfail ] || exit 42
PF1=$(cat passfail)
touch pleasefail
redo passfail 2>/dev/null && exit 43
[ -e passfail ] || exit 44
PF2=$(cat passfail)
[ "$PF1" = "$PF2" ] || exit 45
rm -f pleasefail
redo passfail || exit 46
PF3=$(cat passfail)
[ "$PF1" != "$PF3" ] || exit 47

3
t/100-args/test2.args.do Normal file
View file

@ -0,0 +1,3 @@
[ "$1" = "test2.args" ]
[ "$2" = "test2.args" ]
[ "$3" != "test2.args" ]