aboutsummaryrefslogtreecommitdiff
path: root/bugs-fixed/REGRESS
blob: 98d578ac22ef279a3871b0e669cf88fc72dd39c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#! /bin/sh

if [ ! -f ../a.out ]
then
	echo Making executable
	(cd .. ; make) || exit 0
fi

for i in *.awk
do
	echo === $i
	OUT=${i%.awk}.OUT
	OK=${i%.awk}.ok
	IN=${i%.awk}.in
	input=
	if [ -f $IN ]
	then
		input=$IN
	fi

	../a.out -f $i $input > $OUT 2>&1
	if cmp -s $OK $OUT
	then
		rm -f $OUT
	else
		echo ++++ $i failed!
	fi
done