3 # 17.05.2006 Volker Quetschke
4 # Check that .INIT and .DONE are not mistaken for .<suffix> targets
5 # and that dmake warns if .<suffix> targets have prerequisites.
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 # Remember to quote variables in generated makefiles( $ -> \$ ).
19 # Testcase 1 - No warning expected
27 .INIT .DONE : something
31 +@echo "just a target"
35 # Testcase 2 - dmake should warn
44 +@echo "just a target"
48 output1
=`eval ${DMAKEPROG} -r -f $file1 2>&1 `
50 output2
=`eval ${DMAKEPROG} -r -f $file2 2>&1 `
53 if test "$output1" != "all"; then
54 echo "Test 1: Wrong result: $output1"
57 if echo $output2 |
grep -v 'Warning: -- Ignoring' ; then
58 echo "Test 2: Wrong result: $output2"
62 if test $result1 -eq 0 -a $result2 -eq 0; then
63 echo "Success - Cleaning up"