summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2004-01-25 21:26:55 +0000
committermillert <millert@openbsd.org>2004-01-25 21:26:55 +0000
commit58672de9200f5d15c51c2d0bfb37b116e702f73b (patch)
tree72d34e3484c01da2ef4e3065247ae6d1b2f32df8
parentprivate copy of gmt2local from tcpdump, since tcpdump is about to start (diff)
downloadwireguard-openbsd-58672de9200f5d15c51c2d0bfb37b116e702f73b.tar.xz
wireguard-openbsd-58672de9200f5d15c51c2d0bfb37b116e702f73b.zip
Two more tests; based on a failure Matthieu found with my first
first for grep -w.
-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