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

2
t/200-shell/.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
/nonshelltest
/chicken.vartest

2
t/200-shell/all.do Normal file
View file

@ -0,0 +1,2 @@
redo nonshelltest shelltest vartest

1
t/200-shell/clean.do Normal file
View file

@ -0,0 +1 @@
rm -f broken nonshelltest shellfile chicken.vartest *~ .*~

View file

@ -0,0 +1,2 @@
: ${PREFIX=not defined}
echo "$PREFIX"

View file

@ -0,0 +1,3 @@
#!/usr/bin/env perl
$a="perly";
print "hello $a world\n";

10
t/200-shell/shelltest.do Normal file
View file

@ -0,0 +1,10 @@
set +e
export SHELLTEST_QUIET=1
cd ..
( . ./shelltest.od )
RV=$?
case $RV in
40) exit 0 ;;
42) exit 0 ;;
*) exit 1 ;;
esac

3
t/200-shell/vartest.do Normal file
View file

@ -0,0 +1,3 @@
PREFIX=/a/b/c/d/e redo chicken.vartest
read x <chicken.vartest
[ "$x" = "/a/b/c/d/e" ] || exit 45