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 # Uses include MessageLogger.cfi and rather little else
0003 
0004 import FWCore.ParameterSet.Config as cms
0005 
0006 process = cms.Process("TEST")
0007 
0008 import FWCore.Framework.test.cmsExceptionsFatal_cff
0009 process.options = FWCore.Framework.test.cmsExceptionsFatal_cff.options
0010 
0011 process.load("FWCore.MessageService.test.Services_cff")
0012 
0013 process.load("FWCore.MessageService.MessageLogger_cfi")
0014 
0015 process.MessageLogger.cerr.enable = False
0016 process.MessageLogger.default = cms.untracked.PSet(
0017     noTimeStamps = cms.untracked.bool(False),
0018     FwkTest = cms.untracked.PSet(
0019         limit = cms.untracked.int32(0)
0020     ),
0021     limit = cms.untracked.int32(-1)
0022 )
0023 process.MessageLogger.files.warnings = cms.untracked.PSet(
0024     threshold = cms.untracked.string('WARNING'),
0025     enableStatistics = cms.untracked.bool(True),
0026     default = cms.untracked.PSet(
0027         limit = cms.untracked.int32(3)
0028     ),
0029     noTimeStamps = cms.untracked.bool(True)
0030 )
0031 process.MessageLogger.files.infos = cms.untracked.PSet(
0032     default = cms.untracked.PSet(
0033         limit = cms.untracked.int32(2)
0034     ),
0035     noTimeStamps = cms.untracked.bool(True),
0036     enableStatistics = cms.untracked.bool(True),
0037     FwkTest = cms.untracked.PSet(
0038         limit = cms.untracked.int32(0)
0039     )
0040 )
0041 
0042 process.maxEvents = cms.untracked.PSet(
0043     input = cms.untracked.int32(1)
0044 )
0045 
0046 process.source = cms.Source("EmptySource")
0047 
0048 process.sendSomeMessages = cms.EDAnalyzer("UnitTestClient_G")
0049 
0050 process.p = cms.Path(process.sendSomeMessages)