1*23f24377SWarner Loshecho T.lilly: miscellaneous RE tests from Bruce Lilly 2*23f24377SWarner Losh 3*23f24377SWarner Loshawk=${awk-../a.out} 4*23f24377SWarner Losh 5*23f24377SWarner Loshrm -f foo 6*23f24377SWarner Loshawk ' 7*23f24377SWarner Losh/./ { 8*23f24377SWarner Losh print $0 >"foo" 9*23f24377SWarner Losh close("foo") 10*23f24377SWarner Losh print "###", NR, $0 11*23f24377SWarner Losh system("awk -f foo <\"lilly.ifile\" ") 12*23f24377SWarner Losh}' <lilly.progs >foo1 2>&1 13*23f24377SWarner Losh 14*23f24377SWarner Loshrm -f foo 15*23f24377SWarner Losh$awk ' 16*23f24377SWarner Losh/./ { 17*23f24377SWarner Losh print $0 >"foo" 18*23f24377SWarner Losh close("foo") 19*23f24377SWarner Losh print "###", NR, $0 20*23f24377SWarner Losh system("../a.out -f foo <\"lilly.ifile\" ") 21*23f24377SWarner Losh}' <lilly.progs >foo2 2>&1 22*23f24377SWarner Losh 23*23f24377SWarner Loshecho `cat lilly.progs | wc -l` tests 24*23f24377SWarner Losh 25*23f24377SWarner Loshsed -e 's/awk://' -e 's/Syntax/syntax/' -e '/warning:/d' foo1 >glop1 26*23f24377SWarner Loshsed 's/..\/a.out://' foo2 >glop2 27*23f24377SWarner Loshdiff glop1 glop2 >lilly.diff || echo 'bad: T.lilly is different' 28*23f24377SWarner Loshecho 29