summaryrefslogtreecommitdiffstats
path: root/contrib/awk/test/regtest
blob: 72b0dbf9aa562b11473a943b44d236d8b8014bf5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#! /bin/sh

case "$AWK" in
"")	AWK=../gawk ;;
esac
#AWK=${AWK:-../gawk}

for i in reg/*.awk
do
	it=`basename $i .awk`
	$AWK -f $i <reg/$it.in >reg/$it.out 2>&1
	if cmp -s reg/$it.out reg/$it.good
	then
		rm -f reg/$it.out
	else
		echo "regtest: $it fails"
	fi
done
OpenPOWER on IntegriCloud