summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpvalchev <pvalchev@openbsd.org>2003-07-17 19:07:10 +0000
committerpvalchev <pvalchev@openbsd.org>2003-07-17 19:07:10 +0000
commit13206a078163adf1f70d38148c6231e67b74a998 (patch)
tree6838098c92be507c604a49be5ec8fba6b637c0b5
parentMake it clear what -C does w/o having to read the description of -A/-B. (diff)
downloadwireguard-openbsd-13206a078163adf1f70d38148c6231e67b74a998.tar.xz
wireguard-openbsd-13206a078163adf1f70d38148c6231e67b74a998.zip
test grep -C
-rw-r--r--regress/usr.bin/grep/Makefile7
-rw-r--r--regress/usr.bin/grep/t11.out3
2 files changed, 8 insertions, 2 deletions
diff --git a/regress/usr.bin/grep/Makefile b/regress/usr.bin/grep/Makefile
index 52bddd44294..d776e04ad5d 100644
--- a/regress/usr.bin/grep/Makefile
+++ b/regress/usr.bin/grep/Makefile
@@ -1,6 +1,6 @@
-# $OpenBSD: Makefile,v 1.2 2003/07/02 20:26:59 pvalchev Exp $
+# $OpenBSD: Makefile,v 1.3 2003/07/17 19:07:10 pvalchev Exp $
-REGRESS_TARGETS=t1 t2 t3 t4 t5 t6 t7 t8 t9 t10
+REGRESS_TARGETS=t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 t11
t1:
grep t.s ${.CURDIR}/in | diff - ${.CURDIR}/t1.out
@@ -32,6 +32,9 @@ t9:
t10:
grep -s foo nonexistentfile | diff - /dev/null
+t11:
+ grep -C1 examples ${.CURDIR}/in | diff - ${.CURDIR}/t11.out
+
.PHONY: t1 t2 t3 t4 t5 t6 t7 t8 t9 t10
.include <bsd.regress.mk>
diff --git a/regress/usr.bin/grep/t11.out b/regress/usr.bin/grep/t11.out
new file mode 100644
index 00000000000..4edc968db15
--- /dev/null
+++ b/regress/usr.bin/grep/t11.out
@@ -0,0 +1,3 @@
+This line ends with EnD
+examples of special characters are [, $, ^, *
+line