Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-12-08 23:57:40

0001 #!/bin/bash
0002 
0003 function die { echo $1: status $2; exit $2; }
0004 
0005 echo "===========> testing conddb --help"
0006 conddb --help || die 'failed conddb --help' $?
0007 echo -ne '\n\n'
0008 
0009 echo "===========> testing conddb search"
0010 conddb search 4b97f78682aac6254bbcba54cedbde468202bf5b || die 'failed conddb search' $?
0011 echo -ne '\n\n'
0012 
0013 echo "===========> testing conddb listParentTags"
0014 conddb listParentTags 4b97f78682aac6254bbcba54cedbde468202bf5b || die 'failed conddb listParentTags' $?
0015 echo -ne '\n\n'
0016 
0017 echo "===========> testing conddb list"
0018 conddb list SiPixelQuality_phase1_2021_v1 || die 'failed conddb list' $?
0019 echo -ne '\n\n'
0020 
0021 echo "===========> testing conddb copy"
0022 conddb --yes --db pro copy SiPixelQuality_phase1_2021_v1 --destdb myfile.db  || die 'failed conddb copy' $?
0023 echo -ne '\n\n'
0024 
0025 echo "===========> testing conddb listTags"
0026 conddb --db BasicPayload_v0.db listTags || die 'failed conddb listTags' $?
0027 echo -ne '\n\n'
0028 
0029 echo "===========> testing conddb list on local sqlite file"
0030 conddb --db BasicPayload_v0.db list BasicPayload_v0 || die 'failed conddb list on local sqlite file' $?
0031 echo -ne '\n\n'
0032 
0033 echo "===========> testing conddb listGTsForTag"
0034 conddb listGTsForTag SiPixelQuality_phase1_2021_v1  || die 'failed conddb listGTsForTag' $?
0035 echo -ne '\n\n'
0036 
0037 echo "===========> testing conddb diff"
0038 conddb diff 120X_mcRun3_2021_realistic_v1 120X_mcRun3_2021_realistic_conddb_unitTest  || die 'conddb diff' $?
0039 echo -ne '\n\n'
0040 
0041 echo "===========> testing conddb diffGlobalTagsAtRun"
0042 conddb diffGlobalTagsAtRun -R 120X_mcRun3_2021_realistic_v1 -T 120X_mcRun3_2021_realistic_conddb_unitTest --run 1 || die 'conddb diffGlobalTagsAtRun' $?
0043 echo -ne '\n\n'
0044 
0045 echo "===========> testing conddb dump"
0046 conddb dump 4b97f78682aac6254bbcba54cedbde468202bf5b || die 'failed comparing metadata with reference' $?
0047 echo -ne '\n\n'
0048 
0049 #conddb showFCSR || die 'failed conddb showFCSR' $?  # the FCSR is not always a real run...