summaryrefslogtreecommitdiff
path: root/test/regtest.sh
blob: 37472b1c711f8cc2423ac4143eb4a883d6d0d246 (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 diff reg/$it.out reg/$it.good
	then
		rm -f reg/$it.out
	else
		echo "regtest: $it fails"
	fi
done