Back to home page

Project CMSSW displayed by LXR

 
 

    


Warning, /CondFormats/Common/test/runAllPayloadsTest is written in an unsupported language. File is not indexed.

0001 # tests all classes in a packages
0002 
0003 cmsenv
0004 cd $CMSSW_BASE/src
0005 mkdir -p PayloadTest/PayloadTest/test
0006 cd  PayloadTest/PayloadTest/test
0007 # cp $ CMSSW_RELEASE_BASE/src/CondFormats/Common/test/testPayloadIO.cc .
0008 cp  $CMSSW_BASE/src/CondFormats/Common/test/testPayloadIO.cc .
0009 
0010 
0011 
0012 set pack=$CMSSW_BASE/src/CondFormats/$1
0013 echo "testing package $pack"
0014 
0015 foreach class (`grep "class_version" $pack/src/classes_def.xml | sed 's/[^"]*"//' | sed 's/".*//'`)
0016 set cname=`echo "$class" | sed 's/[<,:, ,>]/_/g'`
0017 echo "#define  ALLCLASSES" >  ${cname}_test.cc
0018 cat testPayloadIO.cc >> ${cname}_test.cc
0019 sed -i "s/THECLASS/$class/g" ${cname}_test.cc
0020 sed -i "s/THEPACKAGE/$1/g" ${cname}_test.cc
0021 echo "<bin file=${cname}_test.cc name=CondPayload_${cname}_testIO>" > bfile
0022 echo "<use name=CondFormats/$1>" >> bfile
0023 echo "</bin>" >> bfile
0024 mv bfile BuildFile
0025 scramv1 b
0026 echo "run CondPayload_${cname}_testIO"
0027 $CMSSW_BASE/test/$SCRAM_ARCH/CondPayload_${cname}_testIO
0028 
0029 pool_retrieve_object_relational_mapping -c sqlite_file:test.db -n "$class" -d CondFormats$1
0030 cat mapping.xml
0031 end
0032 pool_list_object_relational_mapping -c sqlite_file:test.db -cv -tm