Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #include "FWCore/TestProcessor/interface/TestProcessor.h"
0002 
0003 #define CATCH_CONFIG_MAIN
0004 #include "catch.hpp"
0005 
0006 TEST_CASE("AlcaBeamMonitor tests", "[AlcaBeamMonitor]") {
0007   //The python configuration
0008   edm::test::TestProcessor::Config config{
0009       R"_(from FWCore.TestProcessor.TestProcess import *
0010 from DQM.BeamMonitor.AlcaBeamMonitor_cfi import AlcaBeamMonitor
0011 process = TestProcess()
0012 process.beamMonitor = AlcaBeamMonitor
0013 process.moduleToTest(process.beamMonitor)
0014 process.add_(cms.Service("DQMStore"))
0015 )_"};
0016 
0017   SECTION("Run with no Lumis") {
0018     edm::test::TestProcessor tester{config};
0019     tester.testRunWithNoLuminosityBlocks();
0020     //get here without an exception or crashing
0021     REQUIRE(true);
0022   };
0023 }