Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 # Unit test configuration file for MessageLogger service: defaults and limits
0002 # testing overall defaults
0003 #   overall default of no time stamps
0004 #   overall defaults for all destinations, for unnamed categories                     -- u8_overall_unnamed
0005 #   overall defaults for all destinations, specific category                          -- u8_overall_specific
0006 # testing limits
0007 #   default limit for a destination superceding overall default                       -- u8_supercede_specific   
0008 #   default limit for a destination not superceding specific category overall default -- u8_non_supercede_common
0009 #   limit for specific category superceding both defaults                             -- u8_specific
0010 
0011 import FWCore.ParameterSet.Config as cms
0012 
0013 process = cms.Process("TEST")
0014 
0015 import FWCore.Framework.test.cmsExceptionsFatal_cff
0016 process.options = FWCore.Framework.test.cmsExceptionsFatal_cff.options
0017 
0018 process.load("FWCore.MessageService.test.Services_cff")
0019 
0020 process.MessageLogger = cms.Service("MessageLogger",
0021     cerr = cms.untracked.PSet(
0022         enable = cms.untracked.bool(False)
0023     ),
0024     default = cms.untracked.PSet(
0025         expect_specific = cms.untracked.PSet(
0026             limit = cms.untracked.int32(0)
0027         ),
0028         noTimeStamps = cms.untracked.bool(True),
0029         expect_overall_specific = cms.untracked.PSet(
0030             limit = cms.untracked.int32(0)
0031         ),
0032         lim2bycommondefault = cms.untracked.PSet(
0033             limit = cms.untracked.int32(2)
0034         ),
0035         lim0bydefaults = cms.untracked.PSet(
0036             limit = cms.untracked.int32(0)
0037         ),
0038         expect_supercede_specific = cms.untracked.PSet(
0039             limit = cms.untracked.int32(0)
0040         ),
0041         expect_non_supercede_common_specific = cms.untracked.PSet(
0042             limit = cms.untracked.int32(0)
0043         ),
0044         FwkTest = cms.untracked.PSet(
0045             limit = cms.untracked.int32(0)
0046         ),
0047         limit = cms.untracked.int32(5),
0048         expect_overall_unnamed = cms.untracked.PSet(
0049             limit = cms.untracked.int32(0)
0050         )
0051     ),
0052     files = cms.untracked.PSet(
0053         u8_non_supercede_common = cms.untracked.PSet(
0054             default = cms.untracked.PSet(
0055                 limit = cms.untracked.int32(0)
0056             ),
0057             expect_non_supercede_common_specific = cms.untracked.PSet(
0058                 limit = cms.untracked.int32(-1)
0059             ),
0060             noTimeStamps = cms.untracked.bool(True)
0061         ),
0062         u8_supercede_specific = cms.untracked.PSet(
0063             default = cms.untracked.PSet(
0064                 limit = cms.untracked.int32(0)
0065             ),
0066             lim2bycommondefault = cms.untracked.PSet(
0067                 limit = cms.untracked.int32(8)
0068             ),
0069             noTimeStamps = cms.untracked.bool(True),
0070             expect_supercede_specific = cms.untracked.PSet(
0071                 limit = cms.untracked.int32(-1)
0072             )
0073         ),
0074         u8_overall_unnamed = cms.untracked.PSet(
0075             lim3bydefault = cms.untracked.PSet(
0076                 limit = cms.untracked.int32(0)
0077             ),
0078             noTimeStamps = cms.untracked.bool(True),
0079             lim2bycommondefault = cms.untracked.PSet(
0080                 limit = cms.untracked.int32(0)
0081             ),
0082             expect_overall_unnamed = cms.untracked.PSet(
0083                 limit = cms.untracked.int32(-1)
0084             )
0085         ),
0086         u8_specific = cms.untracked.PSet(
0087             default = cms.untracked.PSet(
0088                 limit = cms.untracked.int32(0)
0089             ),
0090             expect_specific = cms.untracked.PSet(
0091                 limit = cms.untracked.int32(-1)
0092             ),
0093             noTimeStamps = cms.untracked.bool(True),
0094             lim2bycommondefault = cms.untracked.PSet(
0095                 limit = cms.untracked.int32(0)
0096             ),
0097             lim0bydefaults = cms.untracked.PSet(
0098                 limit = cms.untracked.int32(6)
0099             )
0100         ),
0101         u8_overall_specific = cms.untracked.PSet(
0102             lim3bydefault = cms.untracked.PSet(
0103                 limit = cms.untracked.int32(3)
0104             ),
0105             default = cms.untracked.PSet(
0106                 limit = cms.untracked.int32(0)
0107             ),
0108             noTimeStamps = cms.untracked.bool(True),
0109             expect_overall_specific = cms.untracked.PSet(
0110                 limit = cms.untracked.int32(-1)
0111             ),
0112             lim2bycommondefault = cms.untracked.PSet(
0113                 limit = cms.untracked.int32(0)
0114             )
0115         )
0116     )
0117 )
0118 
0119 process.maxEvents = cms.untracked.PSet(
0120     input = cms.untracked.int32(1)
0121 )
0122 
0123 process.source = cms.Source("EmptySource")
0124 
0125 process.sendSomeMessages = cms.EDAnalyzer("UnitTestClient_E")
0126 
0127 process.p = cms.Path(process.sendSomeMessages)