t/*.do: add some time delays.

These only take effect if you export SLEEP=1.  Useful for testing
parallelism.
This commit is contained in:
Avery Pennarun 2010-11-13 02:17:22 -08:00
commit 534dd9813f
6 changed files with 9 additions and 0 deletions

View file

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

View file

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

View file

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

4
t/sleep Executable file
View file

@ -0,0 +1,4 @@
PATH=/bin:/usr/bin
if [ -n "$SLEEP" ]; then
exec sleep "$@"
fi

View file

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

View file

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