#!/bin/sh
# ----------------------------------------------------------------------------
# - aleph-ltest                                                              -
# - aleph cross librarian test execution script                              -
# ----------------------------------------------------------------------------
# - This program is  free software;  you can  redistribute it and/or  modify -
# - it provided that this copyright notice is kept intact.                   -
# -                                                                          -
# - This  program  is  distributed in the hope  that it  will be useful, but -
# - without  any   warranty;  without  even   the   implied    warranty   of -
# - merchantability  or fitness for a particular purpose. In not event shall -
# - the copyright holder be  liable for  any direct, indirect, incidental or -
# - special damages arising in any way out of the use of this software.      -
# ----------------------------------------------------------------------------
# - copyright (c) 1999-2003 amaury darsch                                    -
# ----------------------------------------------------------------------------

BLDDIR=$1
BLDBIN=$1/bin
BLDLIB=$1/lib:$LD_LIBRARY_PATH
ALEXEC="$BLDBIN/axl"
TSTMSG=$2
echo "testing: $TSTMSG"
shift
shift

LD_LIBRARY_PATH=$BLDLIB $ALEXEC $*
if [ "$?" != "0" ]; then
	echo "failure: $TSTMSG"
	exit 1
fi
exit 0
