1# $OpenBSD: Makefile,v 1.17 2012/12/12 15:11:25 weerd 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 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 105 106.PHONY: t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 t11 t12 t13 t14 t15 t16 t17 t18 t19 t20 107.PHONY: t21 t22 t23 t24 t25 t26 108 109.include <bsd.regress.mk> 110