summaryrefslogtreecommitdiff
path: root/regress/usr.bin/grep
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2004-01-25 21:26:57 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2004-01-25 21:26:57 +0000
commitc458aeea2f902fd1bf8979218b02107915b2131b (patch)
tree0aeb9e91560e7ab5c435a8607638cd269f61e4fb /regress/usr.bin/grep
parent3d344bdf6a3d16b09f728b68e3bd97751fec37bb (diff)
Two more tests; based on a failure Matthieu found with my first
first for grep -w.
Diffstat (limited to 'regress/usr.bin/grep')
-rw-r--r--regress/usr.bin/grep/Makefile10
-rw-r--r--regress/usr.bin/grep/t15.in4
-rw-r--r--regress/usr.bin/grep/t15.out2
3 files changed, 14 insertions, 2 deletions
diff --git a/regress/usr.bin/grep/Makefile b/regress/usr.bin/grep/Makefile
index 665b88a3cbd..d379f91a5cc 100644
--- a/regress/usr.bin/grep/Makefile
+++ b/regress/usr.bin/grep/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.6 2004/01/19 02:27:10 espie Exp $
+# $OpenBSD: Makefile,v 1.7 2004/01/25 21:26:55 millert Exp $
REGRESS_TARGETS=t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 t11 t12 t13 t14
@@ -44,6 +44,12 @@ t13:
t14:
test X`grep -w -l u_int ${.CURDIR}/t14.in` = X${.CURDIR}/t14.in
-.PHONY: t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 t11 t12 t13 t14
+t15:
+ grep -w tu ${.CURDIR}/t15.in | diff - ${.CURDIR}/t15.out
+
+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
.include <bsd.regress.mk>
diff --git a/regress/usr.bin/grep/t15.in b/regress/usr.bin/grep/t15.in
new file mode 100644
index 00000000000..0f7aa2c4762
--- /dev/null
+++ b/regress/usr.bin/grep/t15.in
@@ -0,0 +1,4 @@
+tototutu tuto toto to tu ta
+tototutu toto to tu ta
+
+totu
diff --git a/regress/usr.bin/grep/t15.out b/regress/usr.bin/grep/t15.out
new file mode 100644
index 00000000000..7747b614820
--- /dev/null
+++ b/regress/usr.bin/grep/t15.out
@@ -0,0 +1,2 @@
+tototutu tuto toto to tu ta
+tototutu toto to tu ta