3 # 19.11.2006 Volker Quetschke
4 # Check that a global .SEQUENTIAL attribute enforces MAXPROCESS=1.
10 tmpfiles
="$file1 $file2"
12 trap '{ echo "trapped signal - removing temporary files" ; rm -rf $tmpfiles ; }' 1 2 3 15
14 # Remove files from prior failed run
17 # Remember to quote variables in generated makefiles( $ -> \$ ).
23 @+echo "MYMAXPROCESS!:=\$(MAXPROCESS)" > my.inc
28 @+echo "MYMAXPROCESS:\$(MYMAXPROCESS):"
32 output
=`eval ${DMAKEPROG} -S -P2 -rf $file1 all`
35 if test "$output" != "MYMAXPROCESS:1:"; then
36 echo "Wrong result: $output - expecting: MYMAXPROCESS:1:"
40 test $result -eq 0 && echo "Success - Cleaning up" && rm -f ${tmpfiles}
41 test $result -ne 0 && echo "Failure!"