Move some of the tests from t/ into t/defaults-flat.

This lets us move t/default.do out of the way; it was confusing otherwise.
This commit is contained in:
Avery Pennarun 2010-12-19 04:52:23 -08:00
commit e207b723b4
11 changed files with 12 additions and 8 deletions

1
t/defaults-flat/all.do Normal file
View file

@ -0,0 +1 @@
redo-ifchange c d

View file

@ -0,0 +1 @@
chicken

3
t/defaults-flat/c.do Normal file
View file

@ -0,0 +1,3 @@
redo-ifchange $1$2.c
echo c.do
cat $1$2.c

2
t/defaults-flat/clean.do Normal file
View file

@ -0,0 +1,2 @@
rm -f c c.c c.c.c c.c.c.b c.c.c.b.b d \
*~ .*~

View file

@ -0,0 +1,10 @@
if [ -e "$1$2.a" -o -e "default$2.a" ]; then
redo-ifchange "$1$2.a"
echo a-to-b
cat "$1$2.a"
else
redo-ifchange "$1$2.b"
echo b-to-b
cat "$1$2.b"
fi
../sleep 1.1

View file

@ -0,0 +1,4 @@
redo-ifchange $1$2.b
echo b-to-cc
cat $1$2.b
../sleep 1.2

View file

@ -0,0 +1,4 @@
redo-ifchange $1$2.c
echo c-to-c
cat $1$2.c
../sleep 1.3

View file

@ -0,0 +1,4 @@
redo-ifchange c
echo default-rule
cat c
../sleep 1.4