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

7
.gitignore vendored
View file

@ -1,10 +1,5 @@
/.redo
*~
*.pyc
*.tmp
/.redo
t/CC
t/LD
t/[yb]ellow
t/hello
t/*.o
/redo-sh

20
t/.gitignore vendored
View file

@ -1,22 +1,2 @@
test.args
test2.args
/passfail
/mode1
/makedir
/makedir.log
/chdir1
/silence
/silence.do
/touch1
/touch1.do
/deltest2
/always1
/always1.log
/ifcreate[12].log
/ifcreate[12].dep
/ifcreate[12]
/broken
/shellfile
/nonshelltest
/*.vartest
/atime2

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

@ -1,4 +1,4 @@
. ./skip-if-minimal-do.sh
. ../skip-if-minimal-do.sh
rm -f pleasefail
redo passfail

1
t/101-atime/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
atime2

1
t/101-atime/all.do Normal file
View file

@ -0,0 +1 @@
redo atime

1
t/101-atime/clean.do Normal file
View file

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

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

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

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

View file

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

1
t/103-unicode/all.do Normal file
View file

@ -0,0 +1 @@
redo unicode

1
t/104-space/all.do Normal file
View file

@ -0,0 +1 @@
redo "space dir/test"

1
t/104-space/clean.do Normal file
View file

@ -0,0 +1 @@
redo "space dir/clean"

5
t/110-compile/.gitignore vendored Normal file
View file

@ -0,0 +1,5 @@
CC
LD
[yb]ellow
hello
*.o

1
t/110-compile/all.do Normal file
View file

@ -0,0 +1 @@
redo-ifchange hello yellow bellow

View file

@ -1,3 +1,3 @@
redo-ifchange LD yellow.o
./LD "$3" yellow.o
./sleep 2
../sleep 2

3
t/110-compile/clean.do Normal file
View file

@ -0,0 +1,3 @@
rm -f hello [by]ellow *.o CC LD *~ .*~

View file

@ -1,3 +1,3 @@
redo-ifchange LD hello.o
./sleep 1
../sleep 1
./LD "$3" hello.o

View file

@ -1,4 +1,4 @@
redo-ifchange CC hello.c /usr/include/stdio.h
redo-ifcreate stdio.h
./sleep 3
../sleep 3
./CC hello.c

View file

@ -1,3 +1,3 @@
redo-ifchange LD yellow.o
./sleep 1.5
../sleep 1.5
./LD "$3" yellow.o

View file

@ -1,3 +1,3 @@
redo-ifchange CC hello.c
./sleep 2
../sleep 2
gcc -o $3 -c hello.c

1
t/130-mode/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
mode1

1
t/130-mode/clean.do Normal file
View file

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

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

@ -1,5 +1,6 @@
set +e
export SHELLTEST_QUIET=1
cd ..
( . ./shelltest.od )
RV=$?
case $RV in

1
t/202-del/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
deltest2

1
t/202-del/all.do Normal file
View file

@ -0,0 +1 @@
redo deltest deltest2

1
t/202-del/clean.do Normal file
View file

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

1
t/220-ifcreate/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
ifcreate?.log

View file

@ -1,5 +1,5 @@
rm -f exists ifcreate[12] ifcreate[12].log ifcreate[12].dep
. ./skip-if-minimal-do.sh
. ../skip-if-minimal-do.sh
touch exists
redo-ifcreate exists 2>/dev/null && exit 91
rm exists
@ -10,11 +10,11 @@ for d in 1 2; do
[ "$(wc -l <ifcreate$d.log)" -eq 1 ] || exit ${d}1
redo-ifchange ifcreate$d
[ "$(wc -l <ifcreate$d.log)" -eq 1 ] || exit ${d}2
./flush-cache
../flush-cache
touch ifcreate$d.dep
redo-ifchange ifcreate$d
[ "$(wc -l <ifcreate$d.log)" -eq 2 ] || exit ${d}3
./flush-cache
../flush-cache
rm ifcreate$d.dep
redo-ifchange ifcreate$d
[ "$(wc -l <ifcreate$d.log)" -eq 3 ] || exit ${d}4

1
t/220-ifcreate/clean.do Normal file
View file

@ -0,0 +1 @@
rm -f ifcreate?.log *~ .*~

View file

@ -0,0 +1,7 @@
cd ..
if [ -e 220-ifcreate/ifcreate2.dep ]; then
redo-ifchange 220-ifcreate/ifcreate2.dep
else
redo-ifcreate 220-ifcreate/ifcreate2.dep
fi
echo $$ >>220-ifcreate/ifcreate2.log

2
t/250-makedir/.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
makedir.log
makedir

1
t/250-makedir/all.do Normal file
View file

@ -0,0 +1 @@
redo makedir2 dirtest/all autosubdir/all

Some files were not shown because too many files have changed in this diff Show more