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
1
t/100-args/.gitignore
vendored
Normal file
1
t/100-args/.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
passfail
|
||||
1
t/100-args/all.do
Normal file
1
t/100-args/all.do
Normal file
|
|
@ -0,0 +1 @@
|
|||
redo test.args test2.args passfailtest
|
||||
1
t/100-args/clean.do
Normal file
1
t/100-args/clean.do
Normal file
|
|
@ -0,0 +1 @@
|
|||
rm -f passfail *~ .*~
|
||||
3
t/100-args/default.args.do
Normal file
3
t/100-args/default.args.do
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
[ "$1" = "test.args" ]
|
||||
[ "$2" = "test" ]
|
||||
[ "$3" != "test.args" ]
|
||||
6
t/100-args/passfail.do
Normal file
6
t/100-args/passfail.do
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
echo $$
|
||||
if [ -e pleasefail ]; then
|
||||
exit 1
|
||||
else
|
||||
exit 0
|
||||
fi
|
||||
15
t/100-args/passfailtest.do
Normal file
15
t/100-args/passfailtest.do
Normal 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
3
t/100-args/test2.args.do
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
[ "$1" = "test2.args" ]
|
||||
[ "$2" = "test2.args" ]
|
||||
[ "$3" != "test2.args" ]
|
||||
Loading…
Add table
Add a link
Reference in a new issue