awk/bugs-fixed/REGRESS
2020-07-02 21:35:06 +03:00

29 lines
336 B
Bash
Executable File

#! /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