3 # 08.08.2007 Volker Quetschke
4 # Test macro assignment syntax check.
11 trap '{ echo "trapped signal - removing temporary files" ; rm -rf $tmpfiles ; }' 1 2 3 15
13 # Remove files from prior failed run
16 # Remember to quote variables in generated makefiles( $ -> \$ ).
28 @echo :\$(BBB):\${X)}:
31 output1
=`eval ${DMAKEPROG} -r -f $file1`
33 if test "$output1" != ":123:YYY:"; then
34 echo "Subtest 1: Wrong result: $output1"
52 output2
=`eval ${DMAKEPROG} -r -f $file1 2>&1`
55 if test $result2 != 0 && echo $output2 |
grep 'Error: -- Syntax error in macro assignment' > /dev
/null
2>&1 ; then
59 echo "Subtest 2: Wrong result: $output2"
79 output3
=`eval ${DMAKEPROG} -r -f $file1 2>&1`
81 if test $result3 != 0 && echo $output3 |
grep 'Error: -- Syntax error in macro assignment' > /dev
/null
2>&1 ; then
85 echo "Subtest 3: Wrong result: $output3"
92 if test $result1 -eq 0 -a $result2 -eq 0 \
93 -a $result3 -eq 0 ; then
94 echo "Success - Cleaning up" && rm -f ${tmpfiles}