Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:12:47

0001 # Unit test configuration file for preconfiguration messages:
0002 #   The preconfiguration message should emerge through cerr
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.MessageLogger = cms.Service("MessageLogger",
0014     cerr = cms.untracked.PSet(
0015         enable = cms.untracked.bool(False)
0016     ),
0017     files = cms.untracked.PSet(
0018         u2_warnings = cms.untracked.PSet(
0019             threshold = cms.untracked.string('WARNING'),
0020             noTimeStamps = cms.untracked.bool(True)
0021         )
0022     ),
0023     generate_preconfiguration_message = cms.untracked.string('This tests a message generated before configuration'),
0024 )
0025 
0026 process.maxEvents = cms.untracked.PSet(
0027     input = cms.untracked.int32(2)
0028 )
0029 
0030 process.source = cms.Source("EmptySource")
0031 
0032 process.sendSomeMessages = cms.EDAnalyzer("UnitTestClient_A")
0033 
0034 process.p = cms.Path(process.sendSomeMessages)
0035 
0036