Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:01:39

0001 #!/bin/bash
0002 #run standard condtions write/read 
0003 #default source base $CMSSW_RELEASE_BASE, non-default $1 
0004 
0005 eval `scramv1 runtime -sh`
0006 runbasedir="$CMSSW_RELEASE_BASE"
0007 echo "$runbasedir"
0008 if [ -z "$1" ]
0009 then   
0010    echo "test code base $runbasedir"
0011 else
0012    runbasedir="$1"
0013    echo "test code base $runbasedir"
0014 fi
0015 echo "populate test.db PedestalsRcd/Pedestals  mytest tag"
0016 if [ -d runCondTests ]
0017 then
0018    rm -rf ./runCondTests
0019 fi
0020 
0021 mkdir runCondTests
0022 cd runCondTests
0023 
0024 cmsRun $runbasedir/src/CondCore/DBOutputService/test/python/testIOVPayloadAnalyzer_cfg.py
0025 echo "read back"
0026 cmsRun $runbasedir/src/CondCore/ESSources/test/python/print_ped_cfg.py
0027 
0028 echo "test blob"
0029 cmsRun $runbasedir/src/CondCore/DBOutputService/test/python/writeBlob_cfg.py
0030 cmscond_list_iov -c sqlite_file:blob.db  -t noise_tag 
0031 echo "XML dump"
0032 echo " " 
0033 cmscond_2XML -c sqlite_file:blob.db -t noise_tag
0034 cat noise_tag.xml
0035 echo " "
0036 ora_database_manager -c sqlite_file:blob.db -dm -mv mySiStripNoises_M000 -f mapping.xml
0037 cat mapping.xml
0038 echo "read back blob"
0039 cmsRun $runbasedir/src/CondCore/ESSources/test/python/load_ped_strip_cfg.py
0040 echo "test export iov"
0041 cmscond_export_iov    -s sqlite_file:blob.db -d sqlite_file:blob2.db -t noise_tag -l sqlite_file:log.db 
0042 cmscond_export_iov -m -s sqlite_file:blob.db -d sqlite_file:blob2.db -t noise_tag2 -i noise_tag -l sqlite_file:log.db 
0043 cmscond_export_iov -m -s sqlite_file:blob.db -d sqlite_file:blob3.db -t noise_tag -l sqlite_file:log.db
0044 cmscond_export_iov -m -s sqlite_file:blob.db -d sqlite_file:blob3.db -t noise_tag2 -i noise_tag -l sqlite_file:log.db
0045 cp blob.db blob4.db
0046 cmscond_export_iov -m -s sqlite_file:blob.db -d sqlite_file:blob4.db -t noise_tag2 -i noise_tag -l sqlite_file:log.db 
0047 ora_database_manager -c sqlite_file:blob2.db -dm -mv mySiStripNoises_M000 -f mapping2.xml
0048 cat mapping2.xml
0049 ora_database_manager -c sqlite_file:blob3.db -dm -mv mySiStripNoises_M000 -f mapping3.xml
0050 cat mapping3.xml
0051 ora_database_manager -c sqlite_file:blob4.db -dm -mv mySiStripNoises_M000 -f mapping4.xml
0052 cat mapping4.xml
0053 ora_database_manager -c sqlite_file:blob.db -lm -cn mySiStripNoises
0054 ora_database_manager -c sqlite_file:blob2.db -lm -cn mySiStripNoises
0055 ora_database_manager -c sqlite_file:blob3.db -lm -cn mySiStripNoises
0056 ora_database_manager -c sqlite_file:blob4.db -lm -cn mySiStripNoises
0057 
0058 
0059 echo "test Keyed sequence"
0060 cmsRun $runbasedir/src/CondCore/DBOutputService/test/python/writeKeyed_cfg.py
0061 cmscond_list_iov -c sqlite:keys.db -t KeyTest -s
0062 cmscond_list_iov -c sqlite:keys.db -t ConfTest
0063 ora_database_manager -c sqlite_file:keys.db -list
0064 $runbasedir/bin/$SCRAM_ARCH/CondDataProxy_t -c sqlite_file:keys.db -t ConfTest -k KeyTest -r ExDwarfListRcd -a 15
0065 $runbasedir/bin/$SCRAM_ARCH/CondDataProxy_t -c sqlite_file:keys.db -t ConfTest -k KeyTest -r ExDwarfListRcd -a 99
0066 
0067 
0068 echo "test refresh"
0069 cp  $runbasedir/src/CondCore/DBOutputService/test/python/writeInt_cfg.py .
0070 sed 's?_CurrentRun_?10?g' writeInt_cfg.py > cfg.py; cmsRun cfg.py
0071 cmscond_list_iov -c sqlite_file:Ints.db -t OneInt -s
0072 cmsRun $runbasedir/src/CondCore/ESSources/test/python/testUpdater_cfg.py
0073 cmscond_list_iov -c sqlite_file:Ints.db -t OneInt -s
0074 
0075 
0076 cd ..
0077 exit 0