#! /bin/sh

#
#  Tests an Analog Devices evaluation board
#
#  Usage:  testAd.sh <type> [<board>] [<debug>]
#
#    type   The board type, 7747 or 7794
#
#    board  The index, starting at 0, of the board to test (default 0)
#
#    debug  If present, run in debug mode
#
#    Type "help" or "h" to obtain help
#

name=`readlink -fn $0`
cd `dirname $name`
JAR=`ls -r ../share/java/org-lsst-ccs-drivers-ad-*.jar`
CP=${JAR//$'\n'/:}
LDP=../lib/jni:../lib
LD_LIBRARY_PATH=$LDP java -cp $CP org.lsst.ccs.drivers.ad.TestAd$1 $2 $3 $4
