3 # 22.06.2007 Volker Quetschke
4 # Check that multiple leading slashes are normalized.
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 excess leading slashes get removed
27 output1
=`eval ${DMAKEPROG} -rf $file1 2>&1 `
29 if test "$output1" != "X/allY"; then
30 echo "Subtest 1: Wrong result: $output1"
37 # Test 2 - Test if excess leading slashes in DOS paths get removed
42 "c:////all" .WINPATH :
47 if test x
`uname -o 2> /dev/null` = "xCygwin"; then
48 output2
=`eval ${DMAKEPROG} -r -f $file1`
50 if test "$output2" != "Xc:/allY"; then
51 echo "Subtest 2: Wrong result: $output2"
57 echo "Subtest 2 ignored for non cygwin environment"
62 if test $result1 -eq 0 -a $result2 -eq 0; then
63 echo "Success - Cleaning up" && rm -f ${tmpfiles}