Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 # Test of a feature of PSet validation:
0002 #   No disallowed vstrings at main level 
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     ab = cms.untracked.vstring(
0015         'A', 
0016         'B'
0017     ),
0018     abc = cms.vstring(
0019         'A', 
0020         'B', 
0021         'C'
0022     ),
0023     cerr = cms.untracked.PSet(
0024         enable = cms.untracked.bool(False)
0025     ),
0026     debugModules = cms.untracked.vstring('*'),
0027     files = cms.untracked.PSet(
0028         u1_debugs = cms.untracked.PSet(
0029             FwkTest = cms.untracked.PSet(
0030                 limit = cms.untracked.int32(0)
0031             ),
0032             noTimeStamps = cms.untracked.bool(True),
0033             preEventProcessing = cms.untracked.PSet(
0034                 limit = cms.untracked.int32(0)
0035             ),
0036             threshold = cms.untracked.string('DEBUG')
0037         ),
0038         u1_default = cms.untracked.PSet(
0039             FwkTest = cms.untracked.PSet(
0040                 limit = cms.untracked.int32(0)
0041             ),
0042             enableStatistics = cms.untracked.bool(True),
0043             noTimeStamps = cms.untracked.bool(True),
0044             preEventProcessing = cms.untracked.PSet(
0045                 limit = cms.untracked.int32(0)
0046             )
0047         ),
0048         u1_errors = cms.untracked.PSet(
0049             noTimeStamps = cms.untracked.bool(True),
0050             threshold = cms.untracked.string('ERROR')
0051         ),
0052         u1_infos = cms.untracked.PSet(
0053             FwkTest = cms.untracked.PSet(
0054                 limit = cms.untracked.int32(0)
0055             ),
0056             noTimeStamps = cms.untracked.bool(True),
0057             preEventProcessing = cms.untracked.PSet(
0058                 limit = cms.untracked.int32(0)
0059             ),
0060             threshold = cms.untracked.string('INFO')
0061         ),
0062         u1_warnings = cms.untracked.PSet(
0063             enableStatistics = cms.untracked.bool(True),
0064             noTimeStamps = cms.untracked.bool(True),
0065             threshold = cms.untracked.string('WARNING')
0066         ),
0067         u1_x = cms.untracked.PSet(
0068 
0069         )
0070     )
0071 )
0072 
0073 process.maxEvents = cms.untracked.PSet(
0074     input = cms.untracked.int32(2)
0075 )
0076 
0077 process.source = cms.Source("EmptySource")
0078 
0079 process.sendSomeMessages = cms.EDAnalyzer("UnitTestClient_A")
0080 
0081 process.p = cms.Path(process.sendSomeMessages)