3 # 04.09.2005 Volker Quetschke
4 # Tests $(shell ..) function macro when using two concurrend processes.
10 tmpfiles
="$file1 $file2"
12 trap '{ echo "trapped signal - removing temporary files" ; rm -rf $tmpfiles ; }' 1 2 3 15
14 trap 'rm -rf $tmpfiles' 1 2 3 15
16 # Remember to quote variables in generated makefiles( $ -> \$ ).
18 # Testing continuation char in recipes
22 AA=X\$(shell +echo shellexec)X
28 +@echo A\$(AA)A > $file2
31 ${DMAKEPROG} -P2 -r -f $file1
33 if test "`cat $file2`" != "AXshellexecXA"; then
34 echo "Wrong result: `cat $file2`, AXshellexecXA expected!"
38 test $result -eq 0 && echo "Success - Cleaning up" && rm -f ${tmpfiles}
39 test $result -ne 0 && echo "Failure!"