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:
parent
116c279e96
commit
7822f5a5bb
170 changed files with 100 additions and 80 deletions
2
t/200-shell/.gitignore
vendored
Normal file
2
t/200-shell/.gitignore
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
/nonshelltest
|
||||
/chicken.vartest
|
||||
2
t/200-shell/all.do
Normal file
2
t/200-shell/all.do
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
redo nonshelltest shelltest vartest
|
||||
|
||||
1
t/200-shell/clean.do
Normal file
1
t/200-shell/clean.do
Normal file
|
|
@ -0,0 +1 @@
|
|||
rm -f broken nonshelltest shellfile chicken.vartest *~ .*~
|
||||
2
t/200-shell/default.vartest.do
Normal file
2
t/200-shell/default.vartest.do
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
: ${PREFIX=not defined}
|
||||
echo "$PREFIX"
|
||||
3
t/200-shell/nonshelltest.do
Normal file
3
t/200-shell/nonshelltest.do
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
#!/usr/bin/env perl
|
||||
$a="perly";
|
||||
print "hello $a world\n";
|
||||
10
t/200-shell/shelltest.do
Normal file
10
t/200-shell/shelltest.do
Normal 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
3
t/200-shell/vartest.do
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue