xref: /freebsd/contrib/one-true-awk/testdir/Compare.t (revision 3c4ba5f55438f7afd4f4b0b56f88f2bb505fd6a6)
1
2oldawk=${oldawk-myawk}
3awk=${awk-../a.out}
4
5echo oldawk=$oldawk, awk=$awk
6
7for i
8do
9	echo "$i:"
10	$oldawk -f $i test.data >foo1
11	$awk -f $i test.data >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