summaryrefslogtreecommitdiff
path: root/dmake/tests
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2007-01-18 08:43:02 +0000
committerVladimir Glazounov <vg@openoffice.org>2007-01-18 08:43:02 +0000
commit1f7ea66f1a0b7ca133ff6fddcf476375aef7dd47 (patch)
treeea785b971a5d8610ac9e41d044e2bb3a07c8ceb2 /dmake/tests
parentd266b7b87e52f3d8c9b24d4cf7e82a20e5307d8f (diff)
INTEGRATION: CWS dmake47 (1.1.2); FILE ADDED
2006/10/08 22:49:05 vq 1.1.2.1: #i70168# Improve $ handling in targets/prerequisites.
Diffstat (limited to 'dmake/tests')
-rwxr-xr-xdmake/tests/targets-1649
1 files changed, 49 insertions, 0 deletions
diff --git a/dmake/tests/targets-16 b/dmake/tests/targets-16
new file mode 100755
index 000000000..795fb7a63
--- /dev/null
+++ b/dmake/tests/targets-16
@@ -0,0 +1,49 @@
+#!/bin/sh
+
+# 08.10.2006 Volker Quetschke
+# Check that $ in dynamic prerequisites are handled correctly.
+# (issue 70168)
+
+: ${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( $ -> \$ ).
+# Check that we set AAA to set_AAA.
+cat > $file1 <<EOT
+SHELL*:=/bin/sh
+SHELLFLAGS*:=-ce
+
+DYNPRQS=a\$\$xx1 a\$\$xx2
+
+all : \$\$(DYNPRQS) a\$\$\$\$xx3
+ echo all
+
+a\$\$xx1 :
+ echo a1:\$@
+
+a\$\$xx2 :
+ echo a2:\$@
+
+a\$\$xx3 :
+ echo a3:\$@
+
+EOT
+
+output1=`eval ${DMAKEPROG} -rf $file1 2>&1 `
+result1=$?
+
+
+if test $result1 -eq 0 ; then
+ echo "Success - Cleaning up"
+ rm -rf $tmpfiles
+else
+ echo "Failure! dmake reported:"
+ echo "$output1"
+fi
+exit $result