awk/testdir/T.lilly
Arnold D. Robbins d6c466c367 Extract testdir.
2019-06-23 03:13:57 -06:00

29 lines
560 B
Plaintext
Executable File
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

echo T.lilly: miscellaneous RE tests from Bruce Lilly
awk=${awk-../a.out}
rm -f foo
awk '
/./ {
print $0 >"foo"
close("foo")
print "###", NR, $0
system("awk -f foo <\"lilly.ifile\" ")
}' <lilly.progs >foo1 2>&1
rm -f foo
$awk '
/./ {
print $0 >"foo"
close("foo")
print "###", NR, $0
system("../a.out -f foo <\"lilly.ifile\" ")
}' <lilly.progs >foo2 2>&1
echo `cat lilly.progs | wc -l` tests
sed -e 's/awk://' -e 's/Syntax/syntax/' foo1 >glop1
sed 's/..\/a.out://' foo2 >glop2
diff glop1 glop2 >lilly.diff || echo 'bad: T.lilly is different'
echo