Newer
Older
#!/bin/bash
#
# Simple script to run DD4hep tests
# - sources this${PackageName}.sh first and then
# calls the command (given as first argument)
# with all following arguments
#
#----- initialize environment for this package - including DD4hep
Markus Frank
committed
export DD4hepExamplesINSTALL=@CMAKE_INSTALL_PREFIX@;
source @CMAKE_INSTALL_PREFIX@/bin/this@PackageName@.sh;
#----- parse command line - first argument is the
# test to run
command=$1
theargs=""
shift
for i in "$@" ; do
if [ $i != ${command} ] ; then
theargs="${theargs} $i"
fi
done
echo " #### LD_LIBRARY_PATH = : ${LD_LIBRARY_PATH}"
echo " #### DYLD_LIBRARY_PATH = : ${DYLD_LIBRARY_PATH}"
echo " ### running test : '${command} ${theargs}'"