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