diff options
| author | Michael Stahl <mstahl@redhat.com> | 2012-01-28 20:18:21 +0100 |
|---|---|---|
| committer | Michael Stahl <mstahl@redhat.com> | 2012-01-28 20:18:21 +0100 |
| commit | 97a0d15e61e991e84e6229ea90f6fc7fc301b379 (patch) | |
| tree | 1420a4a22edf83393ce9921cc2bb90ad607d9042 /dmake/tests/misc-4 | |
| parent | f9aa949d90236c3e64450544c62e62d997a55b45 (diff) | |
replace obsolete "master" branch with README that points at new repoHEADmaster-deletedmaster
Diffstat (limited to 'dmake/tests/misc-4')
| -rwxr-xr-x | dmake/tests/misc-4 | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/dmake/tests/misc-4 b/dmake/tests/misc-4 deleted file mode 100755 index ed11a8e20..000000000 --- a/dmake/tests/misc-4 +++ /dev/null @@ -1,62 +0,0 @@ -#!/bin/sh - -# 06.10.2005 Volker Quetschke -# Test for parallel operation. -# (no issue, sanity check only) - -: ${DMAKEPROG:=dmake} -file1="mymakefile.mk" -file2="testfile" -file3="testfile1" -file4="testfile2" -file5="testfile3" -tmpfiles="$file1 $file2 $file3 $file4 $file5" - -trap '{ echo "trapped signal - removing temporary files" ; rm -rf $tmpfiles ; }' 1 2 3 15 - -# Remove files from prior failed run -rm -rf $tmpfiles - -# Remember to quote variables in generated makefiles( $ -> \$ ). -cat > $file1 <<EOT -# Testing parallel execution -SHELL*:=/bin/sh -SHELLFLAGS*:=-ce - -testfile : testfile2 testfile3 testfile1 - +@echo xx > \$@ - -testfile1 : - +@echo making \$@ 1>&2 - +@sleep 1 - +@printf t1 - +@echo 1 > \$@ - -testfile2 : - +@echo making \$@ 1>&2 - +@sleep 2 - +@printf t2 - +@echo 2 > \$@ - -testfile3 : - +@echo making \$@ 1>&2 - +@sleep 3 - +@printf t3 - +@echo 3 > \$@ - -EOT - -output=`eval ${DMAKEPROG} -r -P3 -f $file1` -result=$? - -# In parallel operation the targets with the smaller sleep value -# will finish first. -if test "$output" != "t1t2t3"; then - echo "Wrong result" - result=1 -fi - - -test $result -eq 0 && echo "Success - Cleaning up" && rm -f ${tmpfiles} -test $result -ne 0 && echo "Failure!" -exit $result |
