blob: 44ef4df16e5383980c5f66f8863c98a5879ab4b0 (
plain)
1
2
3
4
5
6
7
8
9
10
|
BEGIN { print "failures=0"; }
$0 !~ /^#/ && NF == 3 {
print "echo '" $3 "' | ./grep -E -e '" $2 "' > /dev/null 2>&1";
print "if [ $? != " $1 " ]"
print "then"
printf "\techo Spencer test \\#%d failed\n", ++n
print "\tfailures=1"
print "fi"
}
END { print "exit $failures"; }
|