3 # 08.08.2007 Volker Quetschke
4 # Test group recipes 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( $ -> \$ ).
25 @echo "Group recipe line"
30 output1
=`eval ${DMAKEPROG} -r -f $file1 2>&1`
33 if test $result1 != 0 && echo $output1 |
grep 'Warning: -- Found non-white space character after' > /dev
/null
2>&1 ; then
37 echo "Subtest 1: Wrong result: $output1"
52 echo "Group recipe line"
57 output2
=`eval ${DMAKEPROG} -r -f $file1 2>&1`
60 if test $result2 != 0 && echo $output2 |
grep 'Error: -- Cannot mix single and group recipe lines.' > /dev
/null
2>&1 ; then
64 echo "Subtest 2: Wrong result: $output2"
79 echo "Group recipe line"
84 output3
=`eval ${DMAKEPROG} -r -f $file1 2>&1`
86 if test $result3 != 0 && echo $output3 |
grep 'Error: -- New group recipe begin found within group recipe.' > /dev
/null
2>&1 ; then
90 echo "Subtest 3: Wrong result: $output3"
97 if test $result1 -eq 0 -a $result2 -eq 0 \
98 -a $result3 -eq 0 ; then
99 echo "Success - Cleaning up" && rm -f ${tmpfiles}