aboutsummaryrefslogtreecommitdiff
path: root/testdir/T.lilly
blob: bf94e013beb14fc86891a5be7a06c2a021fc5c67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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