3 # A little helper to run an individual test without requiring a full
4 # install. It runs the test from the build directory.
6 # You problably want to do:
7 # cd wire-cell && alias run_test=`pwd`/run_test.sh
10 echo "run_test.sh testname [package]"
11 echo "if run from a package directory last arg isn't needed"
18 if [ -z "$pkg" ] ; then
19 pkg=$(basename $(pwd))
22 top=$(dirname $(readlink -f $BASH_SOURCE))
25 if [ ! -d $dir ] ; then
26 echo "No build directory: $dir"
31 if [ ! -x $exe ] ; then
32 echo "Test $tst not built"
36 LD_LIBRARY_PATH=$dir:$LD_LIBRARY_PATH $exe