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