3 # 03.06.2006 Volker Quetschke
4 # Percent target definitions were not handled properly before.
5 # (issue 64869) - Two more testcases
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( $ -> \$ ).
18 # Testcase 1 - %-target prerequisite - syntax error
28 # Testcase 2 - The recipe part is ignored - syntax error
36 .PHONY : all ; +echo no recipe expected
40 output1
=`eval ${DMAKEPROG} -r -f $file1 2>&1 `
42 output2
=`eval ${DMAKEPROG} -r -f $file2 2>&1 `
45 if echo $output1 |
grep 'Error: -- Syntax' > /dev
/null
2>&1 ; then
48 echo "Test 1: Wrong result: $output1"
53 if echo $output2 |
grep 'Error: -- Unexpected 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"