You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
336 B

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