153568SobrienBEGIN { 253568Sobrien FS="@"; 353568Sobrien n = 0; 453568Sobrien printf ("# Generated Spencer ERE Test\n"); 553568Sobrien printf ("failures=0\n"); 653568Sobrien} 753568Sobrien 853568Sobrien$0 ~ /^#/ { next; } 953568Sobrien 1053568SobrienNF == 3 { 11131554Stjr# printf ("status=`echo '%s' | { ${GREP} -E -e '%s' > /dev/null 2>&1; echo $?; cat >/dev/null; }`\n",$3, $2); 12131554Stjr printf ("status=`echo '%s' | { ${GREP} -E -e '%s' > /dev/null 2>&1; echo $?; }`\n",$3, $2); 1355360Sobrien printf ("if test $status -ne %s ; then\n", $1); 1453568Sobrien printf ("\techo Spencer ere test \\#%d failed\n", ++n); 1553568Sobrien printf ("\tfailures=1\n"); 1653568Sobrien printf ("fi\n"); 1753568Sobrien} 1853568Sobrien 1953568SobrienNF == 4 { 2053568Sobrien# don't alarm the user for now 2153568Sobrien# printf ("echo '%s'|${GREP} -E -e '%s' > /dev/null 2>&1\n",$3, $2); 2253568Sobrien# printf ("if test $? -ne %s ; then\n", $1); 2353568Sobrien# printf ("\techo Expected non conformance \\#%d ... continuing\n", ++n); 2453568Sobrien# printf ("fi\n"); 2553568Sobrien} 2653568Sobrien 2753568SobrienNF == 5 { 2853568Sobrien# don't alarm the user for now 2953568Sobrien next; 3053568Sobrien} 3153568Sobrien 3253568SobrienEND { printf ("exit $failures\n"); } 33