Update ooo320-m1
[ooovba.git] / dmake / tests / recipes-7
blob3a932bb597b0c2008e548aa808de9f300c27d16d
1 #!/bin/sh
3 # 01.12.2006 Volker Quetschke
4 # Test that the '-' recipe switch is honored.
5 # (issue 72210)
7 : ${DMAKEPROG:=dmake}
8 file1="mymakefile.mk"
9 tmpfiles="$file1"
11 trap '{ echo "trapped signal - removing temporary files" ; rm -rf $tmpfiles ; }' 1 2 3 15
13 trap 'rm -rf $tmpfiles' 1 2 3 15
15 # Remember to quote variables in generated makefiles( $ -> \$ ).
16 cat > $file1 <<EOT
17 # internal echo - This test might fail later if the internal echo ever
18 # learns to handle quotes.
19 SHELL:=/bin/sh
20 SHELLFLAGS:=-ce
22 all :
23 @-blabla
24 @echo OK
26 EOT
28 output=`eval ${DMAKEPROG} -r -f $file1 2> /dev/null`
29 result=$?
30 if test $result -eq 0 -a "$output" != "OK"; then
31 echo "Wrong result: $output"
32 result=1
36 test $result -eq 0 && echo "Success - Cleaning up" && rm -f ${tmpfiles}
37 test $result -ne 0 && echo "Failure!"
38 exit $result