Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:13:24

0001 #!/bin/bash
0002 
0003 #
0004 # Simple script to run DD4hep tests
0005 # - sources thisdd4hep.sh first and then
0006 #   calls the command (given as first argument)
0007 #   with all following arguments
0008 #
0009 
0010 # ---- initialize DD4hep for this shell
0011 . @CMAKE_INSTALL_PREFIX@/bin/thisdd4hep.sh
0012 
0013 #----- parse command line - first argument is the 
0014 #      test to run
0015 command=$1
0016 theargs=""
0017 shift
0018 for i in "$@" ; do
0019     if [ $i != ${command} ] ; then 
0020         theargs="${theargs} $i"
0021     fi
0022 done
0023 
0024 echo " #### LD_LIBRARY_PATH = :  ${LD_LIBRARY_PATH}"
0025 echo " #### DYLD_LIBRARY_PATH = :  ${DYLD_LIBRARY_PATH}"
0026 
0027 echo "---running test :  '" ${command} ${theargs} "'"
0028 eval ${command} ${theargs}