3 # 13.11.2006 Volker Quetschke
4 # Test @@ recipe property with group recipes.
10 tmpfiles
="$file1 $file2"
12 trap '{ echo "trapped signal - removing temporary files" ; rm -rf $tmpfiles ; }' 1 2 3 15
14 trap 'rm -rf $tmpfiles' 1 2 3 15
16 # Remember to quote variables in generated makefiles( $ -> \$ ).
26 echo someoutput > $file2
31 output1
=`eval ${DMAKEPROG} -r -f $file1`
33 if test "$output1" != ""; then
34 echo "Wrong result: $output1"
37 if test -f $file2; then
38 if test `cat $file2` != "someoutput"; then
39 echo "Wrong file content: `cat $file2`"
43 echo "No such file : $file2"
47 # Test if -vr enables the output again
48 output2
=`eval ${DMAKEPROG} -vr -rf $file1`
50 if echo $output2 |
grep -v 'echo someoutput > ofile1.out'; then
51 echo "Missing output: echo someoutput > ofile1.out"
54 if echo $output2 |
grep -v 'something'; then
55 echo "Missing output: something"
59 if test $result1 -eq 0 -a $result2 -eq 0; then
60 echo "Success - Cleaning up"