3 # 24.07.2007 Volker Quetschke
4 # Test the $(macro:n) macro extension.
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( $ -> \$ ).
17 # Test 1 - Test if :n works.
24 MACRO:=/tmp/./a "/tmp/a b/xxx/../b" /tmp
30 output1
=`eval ${DMAKEPROG} -r -f $file1`
32 if test "$output1" != "1/tmp/a \"/tmp/a b/b\" /tmp1"; then
33 echo "Subtest 1: Wrong result: $output1"
39 # Test 2 - Test if the .WINPATH setting is honored
51 output2
=`eval ${DMAKEPROG} -r -f $file1`
53 if test x
`uname -o 2> /dev/null` = "xCygwin"; then
54 if test "$output2" != "2`cygpath -m /tmp`2"; then
55 echo "Subtest 2: Wrong result: $output2"
61 if test "$output2" != "2/tmp2"; then
62 echo "Subtest 2: Wrong result: $output2"
70 if test $result1 -eq 0 -a $result2 -eq 0 ; then
71 echo "Success - Cleaning up" && rm -f ${tmpfiles}