Skip to content
Snippets Groups Projects
run_test_package.sh 740 B
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 
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}"
Marko Petric's avatar
Marko Petric committed
echo " #### DYLD_LIBRARY_PATH = :  ${DYLD_LIBRARY_PATH}"
echo " ### running test :  '${command} ${theargs}'"
exec ${command} ${theargs}