#!/bin/sh #if [ -x qh ]; then # echo "install qh before running this test program." # exit 1 #fi for f in *.qh; do echo "compiling test $f ..." exefile=`echo $f | sed 's,\.qh\$,.exe,g'` tmpfile=`echo $f | sed -e 's,\.qh$,.tmp,g'` resfile=`echo $f | sed -e 's,\.qh$,.res,g'` qhc $f > /dev/null qhld `echo $f | sed 's,\.qh\$,.o,g'` -o $exefile > /dev/null ./$exefile > $tmpfile diff $tmpfile $resfile if [ $? -ne 0 ]; then echo "*** Error: $f" fi rm -f $tmpfile done echo All test is done.