3 # 03.08.2007 Volker Quetschke
4 # Check that ambigous %-target are found.
11 tmpfiles
="$file1 $file2"
13 trap '{ echo "trapped signal - removing temporary files" ; rm -rf $tmpfiles ; }' 1 2 3 15
15 # Remove files from prior failed run
18 # Create test environment
21 # Remember to quote variables in generated makefiles( $ -> \$ ).
26 .REMOVE : ; @echo remove \$<
42 output1
=`eval ${DMAKEPROG} -rf $file1 2>&1 `
45 if echo $output1 |
grep ': -- Ambiguous inference chains for target' > /dev
/null
2>&1 ; then
48 echo "Test 1: Wrong result: $output1"
53 # Errorcode in $result1 means successfull test
54 if test $result1 -ne 0 ; then
55 echo "Success - Cleaning up"