]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - gnu/usr.bin/grep/tests/spencer1.awk
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.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 ("status=`echo '%s'| { ${GREP} -E -e '%s' >/dev/null 2>&1 ; echo $?; }`\n",$3, $2);
9         printf ("if test $status -ne %s ; then\n", $1);
10         printf ("\techo Spencer test \\#%d failed\n", ++n);
11         printf ("\tfailures=1\n");
12         printf ("fi\n");
13 }
14
15 END { printf ("exit $failures\n"); }