Deleted Added
full compact
spencer1.awk (53568) spencer1.awk (55360)
1BEGIN {
2 FS = "@";
3 printf ("failures=0\n");
4}
5
6$0 !~ /^#/ && NF = 3 {
1BEGIN {
2 FS = "@";
3 printf ("failures=0\n");
4}
5
6$0 !~ /^#/ && NF = 3 {
7 printf ("echo '%s'|${GREP} -E -e '%s' > /dev/null 2>&1\n",$3, $2);
8 printf ("if test $? -ne %s ; then\n", $1);
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
14END { printf ("exit $failures\n"); }
9 printf ("\techo Spencer test \\#%d failed\n", ++n);
10 printf ("\tfailures=1\n");
11 printf ("fi\n");
12}
13
14END { printf ("exit $failures\n"); }