1# $OpenBSD: Makefile,v 1.19 2023/11/15 00:52:42 millert Exp $ 2 3REGRESS_TARGETS=t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 t11 t12 t13 t14 t15 t16 t17 \ 4 t18 t19 t20 t21 t22 t23 t24 t25 t26 t27 t28 5 6t1: 7 grep t.s ${.CURDIR}/in | diff - ${.CURDIR}/t1.out 8 9t2: 10 grep -w separated ${.CURDIR}/in | diff - ${.CURDIR}/t1.out 11 12t3: 13 grep ^Beginning ${.CURDIR}/in | diff - ${.CURDIR}/t3.out 14 15t4: 16 grep -i end$$ ${.CURDIR}/in | diff - ${.CURDIR}/t4.out 17 18t5: 19 egrep '\?|\*$$' ${.CURDIR}/in | diff - ${.CURDIR}/t5.out 20 21t6: 22 grep -v [l] ${.CURDIR}/in | diff - ${.CURDIR}/t6.out 23 24t7: 25 grep -x line ${.CURDIR}/in | diff - ${.CURDIR}/t7.out 26 27t8: 28 fgrep line. ${.CURDIR}/in | diff - /dev/null 29 30t9: 31 grep non.existent ${.CURDIR}/in | diff - /dev/null 32 33t10: 34 grep -s foo nonexistentfile | diff - /dev/null 35 36t11: 37 grep -C1 examples ${.CURDIR}/in | diff - ${.CURDIR}/t11.out 38 39t12: 40 egrep -f ${.CURDIR}/t1.out ${.CURDIR}/in | diff - ${.CURDIR}/t1.out 41 42t13: 43 grep 'abcd. abcd.' ${.CURDIR}/t13.in | diff - ${.CURDIR}/t13.out 44 45t14: 46 test X`grep -w -l u_int ${.CURDIR}/t14.in` = X${.CURDIR}/t14.in 47 48t15: 49 grep -w tu ${.CURDIR}/t15.in | diff - ${.CURDIR}/t15.out 50 51t16: 52 grep -w to ${.CURDIR}/t15.in | diff - ${.CURDIR}/t15.out 53 54t17: 55 grep -w '^foo' ${.CURDIR}/t17.in | diff - ${.CURDIR}/t17.out 56 57t18: 58 grep -w '^foo$$' ${.CURDIR}/t17.in | diff - ${.CURDIR}/t17.out 59 60t19: 61 grep -w 'a.' ${.CURDIR}/t19.in | diff - ${.CURDIR}/t19.out 62 fgrep -w -e 'aa' -e 'a_' ${.CURDIR}/t19.in | diff - ${.CURDIR}/t19.out 63 64t20: 65 echo '=' | grep -w '=' | diff - /dev/null 66 echo '=' | fgrep -w '=' | diff - /dev/null 67 echo 'a=' | grep -w 'a=' | diff - /dev/null 68 echo 'a=' | fgrep -w 'a=' | diff - /dev/null 69 echo '=b' | grep -w '=b' | diff - /dev/null 70 echo '=b' | fgrep -w '=b' | diff - /dev/null 71 echo 'a=b' | grep -qw 'a=b' 72 echo 'a=b' | fgrep -qw 'a=b' 73 echo '+' | grep -w '+' | diff - /dev/null 74 echo '+' | fgrep -w '+' | diff - /dev/null 75 echo 'a+' | grep -w 'a+' | diff - /dev/null 76 echo 'a+' | fgrep -w 'a+' | diff - /dev/null 77 echo '+b' | grep -w '+b' | diff - /dev/null 78 echo '+b' | fgrep -w '+b' | diff - /dev/null 79 echo 'a+b' | grep -qw 'a+b' 80 echo 'a+b' | fgrep -qw 'a+b' 81 82t21: 83 grep -l D.e ${.CURDIR}/in | diff - ${.CURDIR}/t21.out 84 egrep -l D.e ${.CURDIR}/in | diff - ${.CURDIR}/t21.out 85 grep -l '.*D.e' ${.CURDIR}/in | diff - ${.CURDIR}/t21.out 86 egrep -l '.*D.e' ${.CURDIR}/in | diff - ${.CURDIR}/t21.out 87 88t22: 89 grep -l 'a.*b' ${.CURDIR}/t22.in 90 91t23: 92 egrep -w 'word1|word2|word3' ${.CURDIR}/t23.in 93 94t24: 95 grep -e '' < ${.CURDIR}/in | diff - ${.CURDIR}/in 96 grep -x -e '' < ${.CURDIR}/in | diff - /dev/null 97 grep -f /dev/null < ${.CURDIR}/in | diff - /dev/null 98 99t25: 100 grep -o [ab] ${.CURDIR}/t25.in | diff - ${.CURDIR}/t25.out 101 102t26: 103 echo 'aaab' | grep -o 'a*' | head -n 10 | diff - ${.CURDIR}/t26.out 104 105t27: 106 grep -A1 'C' ${.CURDIR}/t27.in | diff - ${.CURDIR}/t27a.out 107 grep -B1 'C' ${.CURDIR}/t27.in | diff - ${.CURDIR}/t27b.out 108 grep -C1 'C' ${.CURDIR}/t27.in | diff - ${.CURDIR}/t27c.out 109 110t28: 111 grep -m 0 -o x.y ${.CURDIR}/t28.in | diff - /dev/null 112 grep -m 1 -o x.y ${.CURDIR}/t28.in | diff - ${.CURDIR}/t28_1.out 113 grep -m 2 -o x.y ${.CURDIR}/t28.in | diff - ${.CURDIR}/t28_2.out 114 grep -m 3 -o x.y ${.CURDIR}/t28.in | diff - ${.CURDIR}/t28_3.out 115 grep -m 4 -o x.y ${.CURDIR}/t28.in | diff - ${.CURDIR}/t28_4.out 116 grep -m 5 -o x.y ${.CURDIR}/t28.in | diff - ${.CURDIR}/t28_4.out 117 grep -m 6 -o x.y ${.CURDIR}/t28.in | diff - ${.CURDIR}/t28_4.out 118 grep -m 7 -o x.y ${.CURDIR}/t28.in | diff - ${.CURDIR}/t28_4.out 119 grep -m 8 -o x.y ${.CURDIR}/t28.in | diff - ${.CURDIR}/t28_4.out 120 grep -m 0 x.y ${.CURDIR}/t28.in | diff - /dev/null 121 grep -m 1 x.y ${.CURDIR}/t28.in | diff - ${.CURDIR}/t28_5.out 122 grep -m 2 x.y ${.CURDIR}/t28.in | diff - ${.CURDIR}/t28_6.out 123 grep -m 3 x.y ${.CURDIR}/t28.in | diff - ${.CURDIR}/t28_7.out 124 grep -m 4 x.y ${.CURDIR}/t28.in | diff - ${.CURDIR}/t28_8.out 125 grep -m 5 x.y ${.CURDIR}/t28.in | diff - ${.CURDIR}/t28_8.out 126 grep -m 6 x.y ${.CURDIR}/t28.in | diff - ${.CURDIR}/t28_8.out 127 grep -m 7 x.y ${.CURDIR}/t28.in | diff - ${.CURDIR}/t28_8.out 128 grep -m 8 x.y ${.CURDIR}/t28.in | diff - ${.CURDIR}/t28_8.out 129 130.PHONY: t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 t11 t12 t13 t14 t15 t16 t17 t18 t19 t20 131.PHONY: t21 t22 t23 t24 t25 t26 t27 t28 132 133.include <bsd.regress.mk> 134