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/550-chdir/.gitignore
vendored
Normal file
1
t/550-chdir/.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
chdir1
|
||||
18
t/550-chdir/all.do
Normal file
18
t/550-chdir/all.do
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
. ../skip-if-minimal-do.sh
|
||||
|
||||
rm -f chdir1
|
||||
redo chdir2
|
||||
redo chdir3
|
||||
|
||||
../flush-cache
|
||||
redo-ifchange chdir3
|
||||
|
||||
rm -f chdir1
|
||||
../flush-cache
|
||||
redo-ifchange chdir3
|
||||
[ -e chdir1 ] || exit 77
|
||||
|
||||
rm -f chdir1
|
||||
../flush-cache
|
||||
redo-ifchange chdir3
|
||||
[ -e chdir1 ] || exit 78
|
||||
1
t/550-chdir/chdir1.do
Normal file
1
t/550-chdir/chdir1.do
Normal file
|
|
@ -0,0 +1 @@
|
|||
echo hello
|
||||
3
t/550-chdir/chdir2.do
Normal file
3
t/550-chdir/chdir2.do
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
# make sure redo-ifchange records the dependency correctly if we chdir
|
||||
cd ..
|
||||
redo-ifchange 550-chdir/chdir1
|
||||
3
t/550-chdir/chdir3.do
Normal file
3
t/550-chdir/chdir3.do
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
# make sure redo-ifchange records the dependency correctly if we chdir
|
||||
cd ..
|
||||
redo-ifchange 550-chdir/chdir2
|
||||
1
t/550-chdir/clean.do
Normal file
1
t/550-chdir/clean.do
Normal file
|
|
@ -0,0 +1 @@
|
|||
rm -f chdir1 *~ .*~
|
||||
Loading…
Add table
Add a link
Reference in a new issue