Skip to content

Commit

Permalink
Merge pull request #39 from arizzi/nano_94X_wTests
Browse files Browse the repository at this point in the history
add integration tests
  • Loading branch information
arizzi authored Oct 5, 2017
2 parents 5647425 + 4d5e095 commit 144f8b9
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
8 changes: 8 additions & 0 deletions PhysicsTools/NanoAOD/test/BuildFile.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<export>
</export>
<environment>
<bin file="runtestPhysicsToolsNanoAOD.cpp">
<flags TEST_RUNNER_ARGS=" /bin/bash PhysicsTools/NanoAOD/test runtests.sh"/>
<use name="FWCore/Utilities"/>
</bin>
</environment>
3 changes: 3 additions & 0 deletions PhysicsTools/NanoAOD/test/runtestPhysicsToolsNanoAOD.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#include "FWCore/Utilities/interface/TestHelper.h"

RUNTEST()
11 changes: 11 additions & 0 deletions PhysicsTools/NanoAOD/test/runtests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh

function die { echo $1: status $2 ; exit $2; }

#to be enabled with the right files
#cmsDriver.py test80X -s NANO --mc --eventcontent NANOAODSIM --datatier NANO --filein /store/relval/CMSSW_8_0_0/RelValTTbar_13/MINIAODSIM/PU25ns_80X_mcRun2_asymptotic_v4-v1/10000/A65CD249-BFDA-E511-813A-0025905A6066.root --conditions auto:run2_mc -n 100 --era Run2_2016,run2_miniAOD_80XLegacy || die 'Failure using cmsdriver 80X' $?
cmsDriver.py test92X -s NANO --mc --eventcontent NANOAODSIM --datatier NANO --filein /store/relval/CMSSW_9_2_12/RelValTTbar_13/MINIAODSIM/PU25ns_92X_upgrade2017_realistic_v11-v1/00000/080E2624-F59D-E711-ACEE-0CC47A7C35A4.root --conditions auto:phase1_2017_realistic -n 100 --era Run2_2017,run2_nanoAOD_92X || die 'Failure using cmsdriver 92X' $?

cmsDriver.py test94X -s NANO --mc --eventcontent NANOAODSIM --datatier NANO --filein /store/relval/CMSSW_9_4_0_pre1/RelValTTbar_13/MINIAODSIM/PU25ns_93X_mc2017_realistic_v3-v1/00000/92FD5642-509D-E711-ADAB-0025905B85C6.root --conditions auto:phase1_2017_realistic -n 100 --era Run2_2017 || die 'Failure using cmsdriver 94X' $?


0 comments on commit 144f8b9

Please sign in to comment.