3 # 03.06.2006 Volker Quetschke
4 # Percent target definitions were not handled properly before.
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 - This segfaulted before 4.5
33 # Testcase 2 - earlier than dmake 4.5 the second %-target was defined
34 # without the prerequisites, i.e. qqq.c was not build
49 output1
=`eval ${DMAKEPROG} -r -f $file1 2>&1 `
51 output2
=`eval ${DMAKEPROG} -r -f $file2 2>&1 `
54 if echo $output1 |
grep 'Error: -- A non-%' > /dev
/null
2>&1 ; then
55 #echo "Test 1: Right result: $output1"
58 echo "Test 1: Wrong result: $output1"
63 if echo $output2 |
grep -v 'building qqq.c' > /dev
/null
2>&1 ; then
64 echo "Test 2: Wrong result: $output2"
69 if test $result1 -eq 0 -a $result2 -eq 0; then
70 echo "Success - Cleaning up"