-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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 #44472 from mmusich/compileClients_14_0_X
[14.0.X] add a python compilation unit test for DQM online clients
- Loading branch information
Showing
9 changed files
with
52 additions
and
21 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
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
1 change: 1 addition & 0 deletions
1
DQM/Integration/python/clients/physics_dqm_sourceclient-live_cfg.py
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
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,37 @@ | ||
#!/bin/bash | ||
|
||
# Check if the key argument is provided | ||
if [ $# -eq 0 ]; then | ||
echo "Usage: $0 <key>" | ||
exit 1 | ||
fi | ||
|
||
# Extract the key from the command line argument | ||
key="$1" | ||
|
||
# Define a function to run the python command | ||
run_python_command() { | ||
function die { echo $1: status $2 ; exit $2; } | ||
|
||
entry="$1" | ||
key="$2" | ||
|
||
# Check conditions to skip certain combinations | ||
if [[ "$entry" == *visualization-live_cfg.py* && ( "$key" == "pp_run_stage1" || "$key" == "cosmic_run_stage1" || "$key" == "hpu_run" ) ]]; then | ||
echo "===== Skipping Test \"python3 $entry runkey=$key\" ====" | ||
return | ||
fi | ||
|
||
# Otherwise, proceed with the test | ||
echo "===== Test \"python3 $entry runkey=$key\" ====" | ||
(python3 "$entry" runkey="$key" > /dev/null) 2>&1 || die "Failure using python3 $entry" $? | ||
} | ||
|
||
# Run the tests for the specified key | ||
echo "Running tests for key: $key" | ||
for entry in "${CMSSW_BASE}/src/DQM/Integration/python/clients/"*"-live_cfg.py"; do | ||
run_python_command "$entry" "$key" | ||
done | ||
|
||
# All tests passed | ||
echo "All tests passed!" |
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