-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #34392 from mmusich/fixSomeCondDBFailures
Introduce `conddb` script unit tests
- Loading branch information
Showing
3 changed files
with
59 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
#!/bin/bash | ||
|
||
function die { echo $1: status $2; exit $2; } | ||
|
||
echo "===========> testing conddb --help" | ||
conddb --help || die 'failed conddb --help' $? | ||
echo -ne '\n\n' | ||
|
||
echo "===========> testing conddb search" | ||
conddb search 4b97f78682aac6254bbcba54cedbde468202bf5b || die 'failed conddb search' $? | ||
echo -ne '\n\n' | ||
|
||
echo "===========> testing conddb listParentTags" | ||
conddb listParentTags 4b97f78682aac6254bbcba54cedbde468202bf5b || die 'failed conddb listParentTags' $? | ||
echo -ne '\n\n' | ||
|
||
echo "===========> testing conddb list" | ||
conddb list SiPixelQuality_phase1_2021_v1 || die 'failed conddb list' $? | ||
echo -ne '\n\n' | ||
|
||
echo "===========> testing conddb copy" | ||
conddb --yes --db pro copy SiPixelQuality_phase1_2021_v1 --destdb myfile.db || die 'failed conddb copy' $? | ||
echo -ne '\n\n' | ||
|
||
echo "===========> testing conddb listTags" | ||
conddb --db BasicPayload_v0.db listTags || die 'failed conddb listTags' $? | ||
echo -ne '\n\n' | ||
|
||
echo "===========> testing conddb list on local sqlite file" | ||
conddb --db BasicPayload_v0.db list BasicPayload_v0 || die 'failed conddb list on local sqlite file' $? | ||
echo -ne '\n\n' | ||
|
||
echo "===========> testing conddb listGTsForTag" | ||
conddb listGTsForTag SiPixelQuality_phase1_2021_v1 || die 'failed conddb listGTsForTag' $? | ||
echo -ne '\n\n' | ||
|
||
echo "===========> testing conddb diff" | ||
conddb diff 120X_mcRun3_2021_realistic_v1 120X_mcRun3_2021_realistic_Candidate_2021_06_09_14_33_50 || die 'conddb diff' $? | ||
echo -ne '\n\n' | ||
|
||
echo "===========> testing conddb diffGlobalTagsAtRun" | ||
conddb diffGlobalTagsAtRun -R 120X_mcRun3_2021_realistic_v1 -T 120X_mcRun3_2021_realistic_Candidate_2021_06_09_14_33_50 --run 1 || die 'conddb diffGlobalTagsAtRun' $? | ||
echo -ne '\n\n' | ||
|
||
echo "===========> testing conddb dump" | ||
conddb dump 4b97f78682aac6254bbcba54cedbde468202bf5b || die 'failed comparing metadata with reference' $? | ||
echo -ne '\n\n' | ||
|
||
#conddb showFCSR || die 'failed conddb showFCSR' $? # the FCSR is not always a real run... |