shithub: trueawk

ref: d9ad01cd66f6f126bb86a12016e5f4408e35b0c6
dir: /bugs-fixed/REGRESS/

View raw version
#! /bin/bash

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