Skip to content

Commit

Permalink
Some sanity checks.
Browse files Browse the repository at this point in the history
  • Loading branch information
schneiml committed Dec 12, 2019
1 parent a4fff3a commit 028b31a
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions DQMServices/Demo/test/runtests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,22 @@ cmsRun run_analyzers_cfg.py numberEventsInRun=300 numberEventsInLuminosityBlock=
# Note that we pass the files in order here. In the future, this should be independent of the order of input files.
cmsRun run_harvesters_cfg.py inputFiles=part1.root inputFiles=part2.root inputFiles=part3.root legacyoutput=True
rootlist ()
{
python -c '
import uproot
for k in uproot.open("'"$1"'").allkeys(): print k'
{ python -c '
import uproot
for k in uproot.open("'"$1"'").allkeys(): print k'
}
[ 2 = $(rootlist DQM_V0001_R000000001__Harvesting__DQMTests__DQMIO.root | grep -c '<harvestingsummary>s=beginRun(1) endLumi(1,1) endLumi(1,2) endLumi(1,3) endRun(1) endJob() </harvestingsummary>') ]

# 11. Sanity checks.
# this will mess up some of the files created earlier, disable for debugging.
cmsRun run_analyzers_cfg.py outfile=empty.root nEvents=0
cmsRun run_analyzers_cfg.py outfile=empty.root howmany=0
cmsRun run_analyzers_cfg.py outfile=empty.root howmany=0 legacyoutput=True
cmsRun run_analyzers_cfg.py outfile=empty.root howmany=0 protobufoutput=True







Expand Down

0 comments on commit 028b31a

Please sign in to comment.