Updated README: Equal sign not required with `--mode` flag.
[sgk-go] / regression / regress.sh
#!/bin/sh
# regress.sh SRCDIR TSTFILE [OPTIONS ...]
#
# Use ../interface/gnugo to run test TSTFILE in SRCDIR (first changing
# directory to SRCDIR). OPTIONS are passed directly to gnugo.
if test ! "$GNUGO" ; then
GNUGO=`cd ../interface && pwd`/gnugo
if test ! -x "$GNUGO" ; then
echo ERROR: no such program: $GNUGO
exit 1
fi
fi
srcdir=$1
tstfile=$2
shift
shift
cd $srcdir
$GNUGO --quiet "$@" --mode gtp < $tstfile \
| awk -f regress.awk tst=$tstfile url=$GNUGO_REGRESSION_URL
# regress.sh ends here