Commit | Line | Data |
---|---|---|
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 | ||
7 | if 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 | |
13 | fi | |
14 | ||
15 | srcdir=$1 | |
16 | tstfile=$2 | |
17 | shift | |
18 | shift | |
19 | ||
20 | cd $srcdir | |
21 | $GNUGO --quiet "$@" --mode gtp < $tstfile \ | |
22 | | awk -f regress.awk tst=$tstfile url=$GNUGO_REGRESSION_URL | |
23 | ||
24 | # regress.sh ends here |