diff options
| author | Michael Stahl <mstahl@redhat.com> | 2012-01-28 20:18:21 +0100 |
|---|---|---|
| committer | Michael Stahl <mstahl@redhat.com> | 2012-01-28 20:18:21 +0100 |
| commit | 97a0d15e61e991e84e6229ea90f6fc7fc301b379 (patch) | |
| tree | 1420a4a22edf83393ce9921cc2bb90ad607d9042 /dmake/tests/macros-7 | |
| parent | f9aa949d90236c3e64450544c62e62d997a55b45 (diff) | |
replace obsolete "master" branch with README that points at new repoHEADmaster-deletedmaster
Diffstat (limited to 'dmake/tests/macros-7')
| -rwxr-xr-x | dmake/tests/macros-7 | 76 |
1 files changed, 0 insertions, 76 deletions
diff --git a/dmake/tests/macros-7 b/dmake/tests/macros-7 deleted file mode 100755 index 2c7d08491..000000000 --- a/dmake/tests/macros-7 +++ /dev/null @@ -1,76 +0,0 @@ -#!/bin/sh - -# 24.07.2007 Volker Quetschke -# Test the $(macro:n) macro extension. -# (issue 78776) - -: ${DMAKEPROG:=dmake} -file1="mfile1.mk" -tmpfiles="$file1" - -trap '{ echo "trapped signal - removing temporary files" ; rm -rf $tmpfiles ; }' 1 2 3 15 - -# Remove files from prior failed run -rm -rf $tmpfiles - -# Remember to quote variables in generated makefiles( $ -> \$ ). -# Test 1 - Test if :n works. -cat > $file1 <<EOT -SHELL*:=/bin/sh -SHELLFLAGS*:=-ce - -.WINPATH:= - -MACRO:=/tmp/./a "/tmp/a b/xxx/../b" /tmp - -all : - @echo 1\$(MACRO:n)1 -EOT - -output1=`eval ${DMAKEPROG} -r -f $file1` -result1=$? -if test "$output1" != "1/tmp/a \"/tmp/a b/b\" /tmp1"; then - echo "Subtest 1: Wrong result: $output1" - result1=1 -else - echo "Subtest 1: OK" -fi - -# Test 2 - Test if the .WINPATH setting is honored -cat > $file1 <<EOT -SHELL*:=/bin/sh -SHELLFLAGS*:=-ce - -MACRO:=/tmp - -all .WINPATH : - @echo 2\$(MACRO:n)2 - -EOT - -output2=`eval ${DMAKEPROG} -r -f $file1` -result2=$? -if test x`uname -o 2> /dev/null` = "xCygwin"; then - if test "$output2" != "2`cygpath -m /tmp`2"; then - echo "Subtest 2: Wrong result: $output2" - result2=1 - else - echo "Subtest 2: OK" - fi -else - if test "$output2" != "2/tmp2"; then - echo "Subtest 2: Wrong result: $output2" - result2=1 - else - echo "Subtest 2: OK" - fi -fi - - -if test $result1 -eq 0 -a $result2 -eq 0 ; then - echo "Success - Cleaning up" && rm -f ${tmpfiles} - exit -else - echo "Failure!" - exit 1 -fi |
