7#include "GaudiKernel/Bootstrap.h"
8#include "GaudiKernel/IAppMgrUI.h"
17 theApp(
Gaudi::createApplicationMgrEx(
"GaudiCoreSvc",
"ApplicationMgr" ) ),
23 EXPECT_TRUE(
theApp !=
nullptr );
24 EXPECT_TRUE(
propMgr.isValid() );
25 EXPECT_TRUE(
svcLoc.isValid() );
26 EXPECT_TRUE(
svcMgr.isValid() );
27 EXPECT_TRUE(
toolSvc.isValid() );
29 Gaudi::setInstance(
theApp );
31 EXPECT_TRUE(
propMgr->setProperty(
"OutputLevel", std::to_string( level ) ).isSuccess() );
32 if (jobOptsPath.empty()) {
33 EXPECT_TRUE(
propMgr->setProperty(
"JobOptionsType",
"NONE" ).isSuccess() );
36 EXPECT_TRUE(
propMgr->setProperty(
"JobOptionsType",
"FILE" ).isSuccess() );
37 EXPECT_TRUE(
propMgr->setProperty(
"JobOptionsPath", jobOptsPath ).isSuccess() );
39 EXPECT_TRUE(
theApp->configure().isSuccess() );
40 EXPECT_TRUE(
theApp->initialize().isSuccess() );
47 EXPECT_TRUE(
theApp->finalize().isSuccess() );
48 EXPECT_TRUE(
theApp->terminate().isSuccess() );
Gaudi initialisation fixture base class for googletest based unit tests. Test fixture classes for tes...
IAppMgrUI * theApp
public members are visible in tests
SmartIF< ISvcManager > svcMgr
SmartIF< IProperty > propMgr
SmartIF< ISvcLocator > svcLoc
InitGaudiGoogleTest(MSG::Level level=MSG::INFO)
Create GoogleTest fixture.
virtual ~InitGaudiGoogleTest()
dtor
SmartIF< IToolSvc > toolSvc
functions & macros to test the difference between floats
=============================================================================