Updated README: Equal sign not required with `--mode` flag.
[sgk-go] / regression / regress.sh
CommitLineData
7eeb782e
AT
1#!/bin/sh
2# regress.sh SRCDIR TSTFILE [OPTIONS ...]
3#
4# Use ../interface/gnugo to run test TSTFILE in SRCDIR (first changing
5# directory to SRCDIR). OPTIONS are passed directly to gnugo.
6
7if test ! "$GNUGO" ; then
8 GNUGO=`cd ../interface && pwd`/gnugo
9 if test ! -x "$GNUGO" ; then
10 echo ERROR: no such program: $GNUGO
11 exit 1
12 fi
13fi
14
15srcdir=$1
16tstfile=$2
17shift
18shift
19
20cd $srcdir
21$GNUGO --quiet "$@" --mode gtp < $tstfile \
22 | awk -f regress.awk tst=$tstfile url=$GNUGO_REGRESSION_URL
23
24# regress.sh ends here