Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:28:45

0001 # Unit test configuration file for MessageLogger service:
0002 # statistics destination :  tests reset versus no reset
0003 # behavior when multiple statistics summaries are triggered
0004 
0005 import FWCore.ParameterSet.Config as cms
0006 
0007 process = cms.Process("TEST")
0008 
0009 import FWCore.Framework.test.cmsExceptionsFatal_cff
0010 process.options = FWCore.Framework.test.cmsExceptionsFatal_cff.options
0011 
0012 process.load("FWCore.MessageService.test.Services_cff")
0013 
0014 process.MessageLogger = cms.Service("MessageLogger",
0015     cerr = cms.untracked.PSet(
0016         enable = cms.untracked.bool(False)
0017     ),
0018     files = cms.untracked.PSet(
0019         u5_errors = cms.untracked.PSet(
0020             threshold = cms.untracked.string('ERROR'),
0021             noTimeStamps = cms.untracked.bool(True),
0022         ),
0023         u5_default = cms.untracked.PSet(
0024             enableStatistics = cms.untracked.bool(True),
0025             default = cms.untracked.PSet(
0026               limit = cms.untracked.int32(0)
0027             )
0028         ),
0029         u5_noreset = cms.untracked.PSet(
0030             resetStatistics = cms.untracked.bool(False),
0031             enableStatistics = cms.untracked.bool(True),
0032             default = cms.untracked.PSet(
0033               limit = cms.untracked.int32(0)
0034             )
0035         ),
0036         u5_reset = cms.untracked.PSet(
0037             resetStatistics = cms.untracked.bool(True),
0038             enableStatistics = cms.untracked.bool(True),
0039             default = cms.untracked.PSet(
0040               limit = cms.untracked.int32(0)
0041             )
0042         )
0043     )
0044 )
0045 
0046 process.maxEvents = cms.untracked.PSet(
0047     input = cms.untracked.int32(3)
0048 )
0049 
0050 process.source = cms.Source("EmptySource")
0051 
0052 process.sendSomeMessages = cms.EDAnalyzer("UnitTestClient_B")
0053 
0054 process.p = cms.Path(process.sendSomeMessages)