t/*.do: add some time delays.
These only take effect if you export SLEEP=1. Useful for testing parallelism.
This commit is contained in:
parent
3de384497d
commit
534dd9813f
6 changed files with 9 additions and 0 deletions
|
|
@ -1,2 +1,3 @@
|
|||
redo-ifchange LD yellow.o
|
||||
./LD bellow yellow.o
|
||||
./sleep 2
|
||||
|
|
|
|||
|
|
@ -1,2 +1,3 @@
|
|||
redo-ifchange LD hello.o
|
||||
./sleep 1
|
||||
./LD hello hello.o
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
redo-ifchange CC hello.c /usr/include/stdio.h
|
||||
redo-ifcreate stdio.h
|
||||
./sleep 3
|
||||
./CC hello.c
|
||||
|
|
|
|||
4
t/sleep
Executable file
4
t/sleep
Executable file
|
|
@ -0,0 +1,4 @@
|
|||
PATH=/bin:/usr/bin
|
||||
if [ -n "$SLEEP" ]; then
|
||||
exec sleep "$@"
|
||||
fi
|
||||
|
|
@ -1,2 +1,3 @@
|
|||
redo-ifchange LD yellow.o
|
||||
./sleep 1.5
|
||||
./LD yellow yellow.o
|
||||
|
|
|
|||
|
|
@ -1,2 +1,3 @@
|
|||
redo-ifchange CC hello.c
|
||||
./sleep 2
|
||||
gcc -o $3 -c hello.c
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue