diff options
-rw-r--r-- | regress/usr.bin/m4/Makefile | 9 | ||||
-rw-r--r-- | regress/usr.bin/m4/patterns.m4 | 2 | ||||
-rw-r--r-- | regress/usr.bin/m4/patterns.out | 1 |
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 |