xref: /freebsd/contrib/one-true-awk/testdir/Compare.p (revision a03411e84728e9b267056fd31c7d1d9d1dc1b01e)
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