summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2004-02-04 05:53:49 +0000
committermillert <millert@openbsd.org>2004-02-04 05:53:49 +0000
commit5bcc1519f95e7dd559c9668acf59d6a6263d0410 (patch)
tree53a4ec61e7d33a66323e2fec6a144cd1a75b0e04
parentmore KNF (diff)
downloadwireguard-openbsd-5bcc1519f95e7dd559c9668acf59d6a6263d0410.tar.xz
wireguard-openbsd-5bcc1519f95e7dd559c9668acf59d6a6263d0410.zip
Test ^ and $ in -w mode; currently fails. Fix awaiting approval...
-rw-r--r--regress/usr.bin/grep/Makefile10
-rw-r--r--regress/usr.bin/grep/t17.in1
-rw-r--r--regress/usr.bin/grep/t17.out1
3 files changed, 10 insertions, 2 deletions
diff --git a/regress/usr.bin/grep/Makefile b/regress/usr.bin/grep/Makefile
index ad7c17c7d47..544f6dc8cbd 100644
--- a/regress/usr.bin/grep/Makefile
+++ b/regress/usr.bin/grep/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.8 2004/01/25 21:28:35 millert Exp $
+# $OpenBSD: Makefile,v 1.9 2004/02/04 05:53:49 millert Exp $
REGRESS_TARGETS=t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 t11 t12 t13 t14 t15 t16
@@ -50,6 +50,12 @@ t15:
t16:
grep -w to ${.CURDIR}/t15.in | diff - ${.CURDIR}/t15.out
-.PHONY: t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 t11 t12 t13 t14 t15 t16
+t17:
+ grep -w '^foo' ${.CURDIR}/t17.in | diff - ${.CURDIR}/t17.out
+
+t18:
+ grep -w '^foo$$' ${.CURDIR}/t17.in | diff - ${.CURDIR}/t17.out
+
+.PHONY: t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 t11 t12 t13 t14 t15 t16 t17 t18
.include <bsd.regress.mk>
diff --git a/regress/usr.bin/grep/t17.in b/regress/usr.bin/grep/t17.in
new file mode 100644
index 00000000000..257cc5642cb
--- /dev/null
+++ b/regress/usr.bin/grep/t17.in
@@ -0,0 +1 @@
+foo
diff --git a/regress/usr.bin/grep/t17.out b/regress/usr.bin/grep/t17.out
new file mode 100644
index 00000000000..257cc5642cb
--- /dev/null
+++ b/regress/usr.bin/grep/t17.out
@@ -0,0 +1 @@
+foo