#!/bin/sh
# ----------------------------------------------------------------------------
# - aleph-btest                                                              -
# - aleph binary 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                                    -
# ----------------------------------------------------------------------------

echo "testing: $2"

(export LD_LIBRARY_PATH;LD_LIBRARY_PATH=$1:$LD_LIBRARY_PATH; ./$2)

if [ "$?" != "0" ]; then
	echo "failure: $2"
	exit 1
fi

exit 0
