source: trunk/essentials/sys-apps/grep/tests/spencer1.awk

Last change on this file was 2557, checked in by bird, 19 years ago

grep 2.5.1a

File size: 462 bytes
Line 
1BEGIN {
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
15END { printf ("exit $failures\n"); }
Note: See TracBrowser for help on using the repository browser.