summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2000-07-24 21:53:28 +0000
committerMarc Espie <espie@cvs.openbsd.org>2000-07-24 21:53:28 +0000
commit35b1b4eb6c4f26a2b3e6ab0ccc1bb1993303b9cf (patch)
treea46d02e2dcbb42350173c720f68d28e10814475c /regress
parent39b1b6e66de78191ead3e271a53a78f1674c7ddd (diff)
Some variable substitutions
Diffstat (limited to 'regress')
-rw-r--r--regress/usr.bin/make/Makefile9
-rw-r--r--regress/usr.bin/make/mk95
-rw-r--r--regress/usr.bin/make/t9.out2
3 files changed, 13 insertions, 3 deletions
diff --git a/regress/usr.bin/make/Makefile b/regress/usr.bin/make/Makefile
index 8b46bb40993..e71985abb71 100644
--- a/regress/usr.bin/make/Makefile
+++ b/regress/usr.bin/make/Makefile
@@ -1,9 +1,9 @@
-# $OpenBSD: Makefile,v 1.3 2000/07/23 15:31:14 espie Exp $
+# $OpenBSD: Makefile,v 1.4 2000/07/24 21:53:27 espie Exp $
NOMAN=
NOPROG=
-regress: t1 t2 t3 t4 t5 t6 t7 t8
+regress: t1 t2 t3 t4 t5 t6 t7 t8 t9
t1: t1.out
env -i PATH=${PATH} ${MAKE} -e -r -f ${.CURDIR}/mk1 | diff - t1.out
@@ -45,10 +45,13 @@ t8:
touch goodfile phony
cd ${.CURDIR} && env -i PATH=${PATH} ${MAKE} -r -f mk8 | diff - t8.out
+t9:
+ cd ${.CURDIR} && env -i PATH=${PATH} ${MAKE} -r -f mk9 2>&1 | diff - t9.out
+
t1.out:
echo MACHINE_ARCH=${MACHINE_ARCH} >$@
-.PHONY: t1 t2 t3 t4 t5 t6 t7 t8 regress
+.PHONY: t1 t2 t3 t4 t5 t6 t7 t8 t9 regress
CLEANFILES+=t1.out
diff --git a/regress/usr.bin/make/mk9 b/regress/usr.bin/make/mk9
new file mode 100644
index 00000000000..230199a4e63
--- /dev/null
+++ b/regress/usr.bin/make/mk9
@@ -0,0 +1,5 @@
+.undef A
+B=echo zoinx
+a:
+ @echo ${A:sh}
+ @echo ${B:sh}
diff --git a/regress/usr.bin/make/t9.out b/regress/usr.bin/make/t9.out
new file mode 100644
index 00000000000..90bcb243da8
--- /dev/null
+++ b/regress/usr.bin/make/t9.out
@@ -0,0 +1,2 @@
+
+zoinx