3 # 06.10.2005 Volker Quetschke
4 # Test for parallel operation.
5 # (no issue, sanity check only)
13 tmpfiles
="$file1 $file2 $file3 $file4 $file5"
15 trap '{ echo "trapped signal - removing temporary files" ; rm -rf $tmpfiles ; }' 1 2 3 15
17 # Remove files from prior failed run
20 # Remember to quote variables in generated makefiles( $ -> \$ ).
22 # Testing parallel execution
26 testfile : testfile2 testfile3 testfile1
30 +@echo making \$@ 1>&2
36 +@echo making \$@ 1>&2
42 +@echo making \$@ 1>&2
49 output
=`eval ${DMAKEPROG} -r -P3 -f $file1`
52 # In parallel operation the targets with the smaller sleep value
54 if test "$output" != "t1t2t3"; then
60 test $result -eq 0 && echo "Success - Cleaning up" && rm -f ${tmpfiles}
61 test $result -ne 0 && echo "Failure!"