freebsd-dev/gnu/usr.bin/grep/tests/scriptgen.awk

11 lines
280 B
Awk
Raw Normal View History

1993-06-29 06:04:45 +00:00
BEGIN { print "failures=0"; }
1993-07-06 18:45:26 +00:00
$0 !~ /^#/ && NF == 3 {
print "echo '" $3 "' | ./grep -E -e '" $2 "' > /dev/null 2>&1";
1993-06-29 06:04:45 +00:00
print "if [ $? != " $1 " ]"
print "then"
printf "\techo Spencer test \\#%d failed\n", ++n
print "\tfailures=1"
print "fi"
}
END { print "exit $failures"; }