xref: /freebsd/contrib/one-true-awk/testdir/Compare.p (revision cc9e6590773dba57440750c124173ed531349a06)
1
2oldawk=${oldawk-awk}
3awk=${awk-../a.out}
4
5echo oldawk=$oldawk, awk=$awk
6
7for i
8do
9	echo "$i:"
10	$oldawk -f $i test.countries test.countries >foo1
11	$awk -f $i test.countries test.countries >foo2
12	if cmp -s foo1 foo2
13	then true
14	else echo -n "$i:	BAD ..."
15	fi
16	diff -b foo1 foo2 | sed -e 's/^/	/' -e 10q
17done
18