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
3
t/102-empty/.gitignore
vendored
Normal file
3
t/102-empty/.gitignore
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
touch1
|
||||
silence
|
||||
silence.do
|
||||
1
t/102-empty/all.do
Normal file
1
t/102-empty/all.do
Normal file
|
|
@ -0,0 +1 @@
|
|||
redo silencetest touchtest blank
|
||||
3
t/102-empty/blank.do
Normal file
3
t/102-empty/blank.do
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
redo-ifchange
|
||||
redo-ifcreate
|
||||
redo
|
||||
1
t/102-empty/clean.do
Normal file
1
t/102-empty/clean.do
Normal file
|
|
@ -0,0 +1 @@
|
|||
rm -f touch1 *~ .*~
|
||||
8
t/102-empty/silencetest.do
Normal file
8
t/102-empty/silencetest.do
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
echo 'echo hello' >silence.do
|
||||
redo silence
|
||||
[ -e silence ] || exit 55
|
||||
echo 'true' >silence.do
|
||||
redo silence
|
||||
. ../skip-if-minimal-do.sh
|
||||
[ ! -e silence ] || exit 66
|
||||
rm -f silence.do
|
||||
9
t/102-empty/touchtest.do
Normal file
9
t/102-empty/touchtest.do
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
echo 'echo hello' >touch1.do
|
||||
redo touch1
|
||||
[ -e touch1 ] || exit 55
|
||||
rm -f touch1
|
||||
echo 'touch $3' >touch1.do
|
||||
redo touch1
|
||||
[ -e touch1 ] || exit 66
|
||||
[ -z "$(cat touch1)" ] || exit 77
|
||||
rm -f touch1.do
|
||||
Loading…
Add table
Add a link
Reference in a new issue