Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-03-17 11:03:13

0001 # Unit test configuration file for MessageLogger service: reportEverys
0002 # testing overall defaults regarding reportEverys
0003 #   overall defaults for all destinations, for unnamed categories                     -- u11_overall_unnamed
0004 #   overall defaults for all destinations, specific category                          -- u11_overall_specific
0005 # testing reportEverys
0006 #   default reportEvery for a destination superceding overall default                       -- u11_supercede_specific   
0007 #   default reportEvery for a destination not superceding specific category overall default -- u11_non_supercede_common
0008 #   reportEvery for specific category superceding both defaults                             -- u11_specific
0009 # In the course of this, these cases also test reportEverys and limits interacting with each other
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         FwkReport = cms.untracked.PSet(
0030             limit = cms.untracked.int32(0)
0031         ),
0032         reportEvery = cms.untracked.int32(5),
0033         expect_supercede_specific = cms.untracked.PSet(
0034             limit = cms.untracked.int32(0)
0035         ),
0036         int7bycommondefault = cms.untracked.PSet(
0037             reportEvery = cms.untracked.int32(7),
0038             limit = cms.untracked.int32(-1)
0039         ),
0040         expect_non_supercede_common_specific = cms.untracked.PSet(
0041             limit = cms.untracked.int32(0)
0042         ),
0043         FwkTest = cms.untracked.PSet(
0044             limit = cms.untracked.int32(0)
0045         ),
0046         int25bydefaults = cms.untracked.PSet(
0047             reportEvery = cms.untracked.int32(25),
0048             limit = cms.untracked.int32(-1)
0049         ),
0050         expect_overall_unnamed = cms.untracked.PSet(
0051             limit = cms.untracked.int32(0)
0052         ),
0053         expect_overall_specific = cms.untracked.PSet(
0054             limit = cms.untracked.int32(0)
0055         )
0056     ),
0057     files = cms.untracked.PSet(
0058         u11_supercede_specific = cms.untracked.PSet(
0059             default = cms.untracked.PSet(
0060                 limit = cms.untracked.int32(0)
0061             ),
0062             int4bydefault = cms.untracked.PSet(
0063                 reportEvery = cms.untracked.int32(10),
0064                 limit = cms.untracked.int32(-1)
0065             ),
0066             expect_supercede_specific = cms.untracked.PSet(
0067                 reportEvery = cms.untracked.int32(1),
0068                 limit = cms.untracked.int32(-1)
0069             ),
0070             int25bydefaults = cms.untracked.PSet(
0071                 limit = cms.untracked.int32(0)
0072             ),
0073             int7bycommondefault = cms.untracked.PSet(
0074                 limit = cms.untracked.int32(0)
0075             )
0076         ),
0077         u11_overall_specific = cms.untracked.PSet(
0078             default = cms.untracked.PSet(
0079                 limit = cms.untracked.int32(0)
0080             ),
0081             int4bydefault = cms.untracked.PSet(
0082                 limit = cms.untracked.int32(0)
0083             ),
0084             expect_overall_specific = cms.untracked.PSet(
0085                 reportEvery = cms.untracked.int32(1),
0086                 limit = cms.untracked.int32(-1)
0087             ),
0088             int25bydefaults = cms.untracked.PSet(
0089                 limit = cms.untracked.int32(0)
0090             )
0091         ),
0092         u11_non_supercede_common = cms.untracked.PSet(
0093             int4bydefault = cms.untracked.PSet(
0094                 limit = cms.untracked.int32(0)
0095             ),
0096             expect_non_supercede_common_specific = cms.untracked.PSet(
0097                 reportEvery = cms.untracked.int32(1),
0098                 limit = cms.untracked.int32(-1)
0099             ),
0100             default = cms.untracked.PSet(
0101                 reportEvery = cms.untracked.int32(18),
0102                 limit = cms.untracked.int32(3)
0103             ),
0104             int25bydefaults = cms.untracked.PSet(
0105                 limit = cms.untracked.int32(0)
0106             )
0107         ),
0108         u11_specific = cms.untracked.PSet(
0109             int4bydefault = cms.untracked.PSet(
0110                 limit = cms.untracked.int32(0)
0111             ),
0112             expect_specific = cms.untracked.PSet(
0113                 reportEvery = cms.untracked.int32(1),
0114                 limit = cms.untracked.int32(-1)
0115             ),
0116             noTimeStamps = cms.untracked.bool(True),
0117             default = cms.untracked.PSet(
0118                 reportEvery = cms.untracked.int32(30)
0119             ),
0120             int25bydefaults = cms.untracked.PSet(
0121                 reportEvery = cms.untracked.int32(12)
0122             ),
0123             int7bycommondefault = cms.untracked.PSet(
0124                 limit = cms.untracked.int32(0)
0125             )
0126         ),
0127         u11_overall_unnamed = cms.untracked.PSet(
0128             int4bydefault = cms.untracked.PSet(
0129                 limit = cms.untracked.int32(0)
0130             ),
0131             int25bydefaults = cms.untracked.PSet(
0132                 limit = cms.untracked.int32(0)
0133             ),
0134             int7bycommondefault = cms.untracked.PSet(
0135                 limit = cms.untracked.int32(0)
0136             ),
0137             expect_overall_unnamed = cms.untracked.PSet(
0138                 reportEvery = cms.untracked.int32(1),
0139                 limit = cms.untracked.int32(-1)
0140             )
0141         )
0142     )
0143 )
0144 
0145 process.maxEvents = cms.untracked.PSet(
0146     input = cms.untracked.int32(1)
0147 )
0148 
0149 process.source = cms.Source("EmptySource")
0150 
0151 process.sendSomeMessages = cms.EDAnalyzer("UnitTestClient_F")
0152 
0153 process.p = cms.Path(process.sendSomeMessages)