summaryrefslogtreecommitdiff
path: root/regress/usr.bin
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2001-09-16 21:09:20 +0000
committerMarc Espie <espie@cvs.openbsd.org>2001-09-16 21:09:20 +0000
commitc7800dbef245d85c1123d83f7fb335cbed026d0c (patch)
treee654347f47da7d1f716fa78440c2711058d42d0a /regress/usr.bin
parent84b21905985528a768988e84516e888639e14043 (diff)
check pattern subst
Diffstat (limited to 'regress/usr.bin')
-rw-r--r--regress/usr.bin/m4/Makefile9
-rw-r--r--regress/usr.bin/m4/patterns.m42
-rw-r--r--regress/usr.bin/m4/patterns.out1
3 files changed, 9 insertions, 3 deletions
diff --git a/regress/usr.bin/m4/Makefile b/regress/usr.bin/m4/Makefile
index c4fb6e6a6f8..c6e4fe67e71 100644
--- a/regress/usr.bin/m4/Makefile
+++ b/regress/usr.bin/m4/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.5 2001/08/17 10:05:18 espie Exp $
+# $OpenBSD: Makefile,v 1.6 2001/09/16 21:09:19 espie Exp $
# $NetBSD: Makefile,v 1.2 1999/02/13 02:54:33 lukem Exp $
NOMAN=
@@ -9,7 +9,7 @@ M4=m4
CLEANFILES+= ff_after_dnl.m4 fibo.out
-regress: test-ff_after_dnl test-m4wrap test-fibo
+regress: test-ff_after_dnl test-m4wrap test-fibo test-patterns
test-ff_after_dnl: ff_after_dnl.m4
${M4} ff_after_dnl.m4 | diff - ${.CURDIR}/ff_after_dnl.out
@@ -20,12 +20,15 @@ ff_after_dnl.m4: ff_after_dnl.m4.uu
test-m4wrap:
${M4} ${.CURDIR}/m4wrap.m4 | diff - ${.CURDIR}/m4wrap.out
+test-patterns:
+ ${M4} ${.CURDIR}/patterns.m4 | diff - ${.CURDIR}/patterns.out
+
fibo.out:
perl ${.CURDIR}/fibo.pl ${FIBOMAX} >$@
test-fibo: fibo.out
${M4} -DN=${FIBOMAX} ${.CURDIR}/fibo.m4| diff - fibo.out
-.PHONY: test-ff_after_dnl test-m4wrap test-fibo
+.PHONY: test-ff_after_dnl test-m4wrap test-patterns test-fibo
.include <bsd.prog.mk>
diff --git a/regress/usr.bin/m4/patterns.m4 b/regress/usr.bin/m4/patterns.m4
new file mode 100644
index 00000000000..2f810df714a
--- /dev/null
+++ b/regress/usr.bin/m4/patterns.m4
@@ -0,0 +1,2 @@
+dnl $OpenBSD: patterns.m4,v 1.1 2001/09/16 21:09:19 espie Exp $
+patsubst(`quote s in string', `(s)', `\\\1')
diff --git a/regress/usr.bin/m4/patterns.out b/regress/usr.bin/m4/patterns.out
new file mode 100644
index 00000000000..b7e0c415bac
--- /dev/null
+++ b/regress/usr.bin/m4/patterns.out
@@ -0,0 +1 @@
+quote \s in \string