gnugo-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnugo-devel] updated regression/regress.sh


From: Thien-Thi Nguyen
Subject: [gnugo-devel] updated regression/regress.sh
Date: Thu, 04 Sep 2003 18:18:59 +0200

greetings gnugo folks,

the regress.sh appended below is able to cope with builddir!=srcdir,
i.e., something like:

   cvs co [...] gnugo
   mkdir gnugo.build
   cd gnugo.build
   ../gnugo/configure [...]
   make
   make check

i send the entire file because a patch is not much shorter while being
arguably less clearer.  here is a changelog entry:

2003-09-04  Thien-Thi Nguyen  <address@hidden>

        * regression/regress.sh: Add comment, eof blurb; nfc.
        Record fullpath to gnugo executable; check it w/ test -x.
        Change directory to srcdir before commencing.

i notice also that the "make check" does not fail if a test fails.
is this intentional?

thi


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

# regress.sh ends here




reply via email to

[Prev in Thread] Current Thread [Next in Thread]