xref: /freebsd/contrib/one-true-awk/testdir/yc (revision 994297b01b98816bea1abf45ae4bac1bc69ee7a0)
1for i in $*
2do
3	echo $i >/dev/tty
4	echo $i '<<<'
5	cd ..
6	echo testdir/$i:
7	ind <testdir/$i
8	a.out -f testdir/$i >drek.c
9	cat drek.c
10	make drek || ( echo $i '	' bad compile; echo $i '	' bad compile >/dev/tty; continue )
11	cd testdir
12	time awk -f $i test.data >foo1
13	time ../drek test.data >foo2
14	cmp foo1 foo2 || ( echo $i '	' bad; echo $i '	' bad >/dev/tty; diff foo1 foo2 )
15	echo '>>>' $i
16	echo
17done
18