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/350-deps/basic/.gitignore
vendored
Normal file
2
t/350-deps/basic/.gitignore
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
*.log
|
||||
*.out
|
||||
1
t/350-deps/basic/1.in
Normal file
1
t/350-deps/basic/1.in
Normal file
|
|
@ -0,0 +1 @@
|
|||
this is 1
|
||||
1
t/350-deps/basic/2.in
Normal file
1
t/350-deps/basic/2.in
Normal file
|
|
@ -0,0 +1 @@
|
|||
this is 2
|
||||
2
t/350-deps/basic/clean.do
Normal file
2
t/350-deps/basic/clean.do
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
rm -f *~ .*~ *.log *.out
|
||||
|
||||
3
t/350-deps/basic/default.out.do
Normal file
3
t/350-deps/basic/default.out.do
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
redo-ifchange $2.in
|
||||
echo $$
|
||||
echo $$ >>$2.log
|
||||
13
t/350-deps/basic/test.do
Normal file
13
t/350-deps/basic/test.do
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
rm -f *.out *.log
|
||||
|
||||
../../flush-cache
|
||||
redo-ifchange 1.out 2.out
|
||||
[ "$(cat 1.log | wc -l)" -eq 1 ] || exit 55
|
||||
[ "$(cat 2.log | wc -l)" -eq 1 ] || exit 56
|
||||
../../flush-cache
|
||||
touch 1.in
|
||||
redo-ifchange 1.out 2.out
|
||||
[ "$(cat 2.log | wc -l)" -eq 1 ] || exit 58
|
||||
. ../../skip-if-minimal-do.sh
|
||||
[ "$(cat 1.log | wc -l)" -eq 2 ] || exit 57
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue