3 # 13.11.2006 Volker Quetschke
4 # Test @@ recipe property.
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( $ -> \$ ).
23 @@+echo someoutput > $file2
27 output1
=`eval ${DMAKEPROG} -r -f $file1`
29 if test "$output1" != ""; then
30 echo "Wrong result: $output1"
33 if test -f $file2; then
34 if test `cat $file2 ` != "someoutput"; then
35 echo "Wrong file content: `cat $file2`"
39 echo "No such file : $file2"
43 # Test if -vr enables the output again
44 output2
=`eval ${DMAKEPROG} -vr -rf $file1`
46 if echo $output2 |
grep -v 'echo someoutput > ofile1.out'; then
47 echo "Missing output: echo someoutput > ofile1.out"
50 if echo $output2 |
grep -v 'something'; then
51 echo "Missing output: something"
55 if test $result1 -eq 0 -a $result2 -eq 0; then
56 echo "Success - Cleaning up"