Grep: Add DragonFly README files
[dragonfly.git] / gnu / usr.bin / grep / tests / spencer1.awk
1 BEGIN {
2         FS = "@";
3         printf ("failures=0\n");
4 }
5
6 $0 !~ /^#/  && NF = 3 {
7         printf ("status=`echo '%s'| { ${GREP} -E -e '%s' > /dev/null 2>&1; echo $?; cat >/dev/null; }`\n",$3, $2);
8         printf ("if test $status -ne %s ; then\n", $1);
9         printf ("\techo Spencer test \\#%d failed\n", ++n);
10         printf ("\tfailures=1\n");
11         printf ("fi\n");
12 }
13
14 END { printf ("exit $failures\n"); }