Warning, /CondFormats/Common/test/runPayloadTest is written in an unsupported language. File is not indexed.
0001 # it assumes that it is NOT run from a release area
0002 # i..e CMSSW_RELEASE_BASE is not empty
0003 # at the moment it is the opposite: assumes /CondFormats/Common be in CMSSW_BASE
0004 #usage class package header
0005 #grep "class_version" src/classes_def.xml | sed 's/[^"]*"//' | sed 's/".*//'
0006
0007
0008 cmsenv
0009 cd $CMSSW_BASE/src
0010 mkdir -p PayloadTest/PayloadTest/test
0011 cd PayloadTest/PayloadTest/test
0012 # cp $ CMSSW_RELEASE_BASE/src/CondFormats/Common/test/testPayloadIO.cc .
0013 cp $CMSSW_BASE/src/CondFormats/Common/test/testPayloadIO.cc .
0014
0015 echo $1 $2 $3
0016 set cname=`echo "$1" | sed 's/[<,:, ,>]/_/g'`
0017 cp testPayloadIO.cc ${cname}_test.cc
0018 sed -i "s/THECLASS/$1/g" ${cname}_test.cc
0019 sed -i "s/THEPACKAGE/$2/g" ${cname}_test.cc
0020 sed -i "s/THEHEADER/$3/g" ${cname}_test.cc
0021
0022
0023 echo "<bin file=${cname}_test.cc name=CondPayload_${cname}_testIO>" > bfile
0024 echo "<use name=CondFormats/$2>" >> bfile
0025 echo "</bin>" >> bfile
0026
0027 mv bfile BuildFile
0028 scramv1 b
0029 echo "run CondPayload_${cname}_test"
0030 $CMSSW_BASE/test/$SCRAM_ARCH/CondPayload_${cname}_testIO
0031
0032 pool_list_object_relational_mapping -c sqlite_file:test.db -cv -tm
0033 pool_retrieve_object_relational_mapping -c sqlite_file:test.db -n "$1" -d CondFormats$2
0034 cat mapping.xml