summaryrefslogtreecommitdiff
path: root/regress/usr.bin/grep/Makefile
diff options
context:
space:
mode:
authorPeter Valchev <pvalchev@cvs.openbsd.org>2003-07-02 07:07:50 +0000
committerPeter Valchev <pvalchev@cvs.openbsd.org>2003-07-02 07:07:50 +0000
commit47a7bcc62cefe693eaf848009ed22ff924c57ecc (patch)
tree970593ec2f44de0717c6a623e4e520e61b167706 /regress/usr.bin/grep/Makefile
parent7bc06fbad5ac90fe942853f77f6598174f56e4f3 (diff)
add grep regression tests suite, a few ideas from millert incorporated
Diffstat (limited to 'regress/usr.bin/grep/Makefile')
-rw-r--r--regress/usr.bin/grep/Makefile37
1 files changed, 37 insertions, 0 deletions
diff --git a/regress/usr.bin/grep/Makefile b/regress/usr.bin/grep/Makefile
new file mode 100644
index 00000000000..f5485e6893e
--- /dev/null
+++ b/regress/usr.bin/grep/Makefile
@@ -0,0 +1,37 @@
+# $OpenBSD: Makefile,v 1.1 2003/07/02 07:07:49 pvalchev Exp $
+
+REGRESS_TARGETS=t1 t2 t3 t4 t5 t6 t7 t8 t9 t10
+
+t1:
+ grep t.s ${.CURDIR}/in | diff - ${.CURDIR}/t1.out
+
+t2:
+ grep -w separated ${.CURDIR}/in | diff - ${.CURDIR}/t1.out
+
+t3:
+ grep ^Beginning ${.CURDIR}/in | diff - ${.CURDIR}/t3.out
+
+t4:
+ grep -i end$$ ${.CURDIR}/in | diff - ${.CURDIR}/t4.out
+
+t5:
+ egrep '\?|\*$$' ${.CURDIR}/in | diff - ${.CURDIR}/t5.out
+
+t6:
+ grep -v [l] ${.CURDIR}/in | diff - ${.CURDIR}/t6.out
+
+t7:
+ grep -x line ${.CURDIR}/in | diff - ${.CURDIR}/t7.out
+
+t8:
+ fgrep line. ${.CURDIR}/in | diff - ${.CURDIR}/empty
+
+t9:
+ grep non.existent ${.CURDIR}/in | diff - ${.CURDIR}/empty
+
+t10:
+ grep -s foo nonexistentfile | diff - ${.CURDIR}/empty
+
+.PHONY: t1 t2 t3 t4 t5 t6 t7 t8 t9 t10
+
+.include <bsd.regress.mk>