3 # 03.06.2006 Volker Quetschke
4 # Check that a warning is issued for special or meta targets with
6 # (issue 65360) - Well, the issue is talking about slightly a different
7 # issue but a related patch was committed with this issue reference.
12 tmpfiles
="$file1 $file2"
14 trap '{ echo "trapped signal - removing temporary files" ; rm -rf $tmpfiles ; }' 1 2 3 15
16 # Remove files from prior failed run
19 # Remember to quote variables in generated makefiles( $ -> \$ ).
20 # Testcase 1 - AUGMAKE meta targets
32 # Testcase 2 - Percent targets
44 output1
=`eval ${DMAKEPROG} -r -f $file1 2>&1 `
46 output2
=`eval ${DMAKEPROG} -r -f $file2 2>&1 `
49 if echo $output1 |
grep -v 'Warning: -- Empty recipe' > /dev
/null
2>&1 ; then
50 echo "Test 1: Wrong result: $output1"
55 if echo $output2 |
grep -v 'Warning: -- Empty recipe' > /dev
/null
2>&1 ; then
56 echo "Test 2: Wrong result: $output2"
61 if test $result1 -eq 0 -a $result2 -eq 0; then
62 echo "Success - Cleaning up"