Skip to content

Commit

Permalink
adapt DQM/Integration unit test infrastructure to run on GPUvsCPU str…
Browse files Browse the repository at this point in the history
…eamer files
  • Loading branch information
mmusich committed Aug 11, 2023
1 parent 8ad77f4 commit 56c6da4
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
### Load cfis ###

if unitTest:
process.load("DQM.Integration.config.unittestinputsource_cfi")
from DQM.Integration.config.unittestinputsource_cfi import options
process.load("DQM.Integration.config.unitteststreamerinputsource_cfi")
from DQM.Integration.config.unitteststreamerinputsource_cfi import options
else:
process.load("DQM.Integration.config.inputsource_cfi")
from DQM.Integration.config.inputsource_cfi import options
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
else:
process.load('DQM.Integration.config.FrontierCondition_GT_cfi')
if unitTest:
process.load("DQM.Integration.config.unittestinputsource_cfi")
from DQM.Integration.config.unittestinputsource_cfi import options
process.load("DQM.Integration.config.unitteststreamerinputsource_cfi")
from DQM.Integration.config.unitteststreamerinputsource_cfi import options
elif useFileInput:
process.load("DQM.Integration.config.fileinputsource_cfi")
from DQM.Integration.config.fileinputsource_cfi import options
Expand Down
3 changes: 3 additions & 0 deletions DQM/Integration/test/BuildFile.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
<test name="TestDQMOnlineClient-scal_dqm_sourceclient" command="runtest.sh scal_dqm_sourceclient-live_cfg.py"/>
<test name="TestDQMOnlineClient-sistrip_dqm_sourceclient" command="runtest.sh sistrip_dqm_sourceclient-live_cfg.py"/>
<test name="TestDQMOnlineClient-onlinebeammonitor_dqm_sourceclient" command="runtest.sh onlinebeammonitor_dqm_sourceclient-live_cfg.py"/>
<test name="TestDQMOnlineClient-ecalgpu_dqm_sourceclient" command="runtest.sh ecalgpu_dqm_sourceclient-live_cfg.py 369956"/>
<test name="TestDQMOnlineClient-hcalgpu_dqm_sourceclient" command="runtest.sh hcalgpu_dqm_sourceclient-live_cfg.py 369956"/>
<test name="TestDQMOnlineClient-pixelgpu_dqm_sourceclient" command="runtest.sh pixelgpu_dqm_sourceclient-live_cfg.py 369956"/>
<!-- streamDQMCalibration is required -->
<!-- <test name="TestDQMOnlineClient-ecalcalib_dqm_sourceclient" command="runtest.sh ecalcalib_dqm_sourceclient-live_cfg.py" /> -->
<!-- streamDQMCalibration is required -->
Expand Down
8 changes: 7 additions & 1 deletion DQM/Integration/test/runtest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,10 @@ if [[ -z ${CLIENTS_DIR} ]]; then
fi

mkdir -p $LOCAL_TEST_DIR/upload
cmsRun $CLIENTS_DIR/$1 unitTest=True

if [[ $# -eq 1 ]]; then
cmsRun $CLIENTS_DIR/$1 unitTest=True
else
echo "Will use streamers files for run $2"
cmsRun $CLIENTS_DIR/$1 unitTest=True runNumber=$2
fi

0 comments on commit 56c6da4

Please sign in to comment.