diff options
Diffstat (limited to 'regress/usr.bin/grep')
-rw-r--r-- | regress/usr.bin/grep/Makefile | 37 | ||||
-rw-r--r-- | regress/usr.bin/grep/empty | 0 | ||||
-rw-r--r-- | regress/usr.bin/grep/in | 5 | ||||
-rw-r--r-- | regress/usr.bin/grep/t1.out | 1 | ||||
-rw-r--r-- | regress/usr.bin/grep/t3.out | 1 | ||||
-rw-r--r-- | regress/usr.bin/grep/t4.out | 1 | ||||
-rw-r--r-- | regress/usr.bin/grep/t5.out | 1 | ||||
-rw-r--r-- | regress/usr.bin/grep/t6.out | 1 | ||||
-rw-r--r-- | regress/usr.bin/grep/t7.out | 1 |
9 files changed, 48 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> diff --git a/regress/usr.bin/grep/empty b/regress/usr.bin/grep/empty new file mode 100644 index 00000000000..e69de29bb2d --- /dev/null +++ b/regress/usr.bin/grep/empty diff --git a/regress/usr.bin/grep/in b/regress/usr.bin/grep/in new file mode 100644 index 00000000000..015571c2810 --- /dev/null +++ b/regress/usr.bin/grep/in @@ -0,0 +1,5 @@ +dot.separated@words +Beginning of a line +This line ends with EnD +examples of special characters are [, $, ^, * +line diff --git a/regress/usr.bin/grep/t1.out b/regress/usr.bin/grep/t1.out new file mode 100644 index 00000000000..e6c4af4a7e6 --- /dev/null +++ b/regress/usr.bin/grep/t1.out @@ -0,0 +1 @@ +dot.separated@words diff --git a/regress/usr.bin/grep/t3.out b/regress/usr.bin/grep/t3.out new file mode 100644 index 00000000000..fbab1395fee --- /dev/null +++ b/regress/usr.bin/grep/t3.out @@ -0,0 +1 @@ +Beginning of a line diff --git a/regress/usr.bin/grep/t4.out b/regress/usr.bin/grep/t4.out new file mode 100644 index 00000000000..02426769d11 --- /dev/null +++ b/regress/usr.bin/grep/t4.out @@ -0,0 +1 @@ +This line ends with EnD diff --git a/regress/usr.bin/grep/t5.out b/regress/usr.bin/grep/t5.out new file mode 100644 index 00000000000..d41c4d964dc --- /dev/null +++ b/regress/usr.bin/grep/t5.out @@ -0,0 +1 @@ +examples of special characters are [, $, ^, * diff --git a/regress/usr.bin/grep/t6.out b/regress/usr.bin/grep/t6.out new file mode 100644 index 00000000000..e6c4af4a7e6 --- /dev/null +++ b/regress/usr.bin/grep/t6.out @@ -0,0 +1 @@ +dot.separated@words diff --git a/regress/usr.bin/grep/t7.out b/regress/usr.bin/grep/t7.out new file mode 100644 index 00000000000..a999a0c2112 --- /dev/null +++ b/regress/usr.bin/grep/t7.out @@ -0,0 +1 @@ +line |