Skip to content
Snippets Groups Projects
Commit c1d4d918 authored by scott snyder's avatar scott snyder Committed by scott snyder
Browse files

IOVDbSvc: Test updates.

Add test reference files.
Use JO search path to find test txt JO file.
parent 266fd3cf
No related branches found
No related tags found
No related merge requests found
Showing
with 142 additions and 11 deletions
...@@ -68,9 +68,7 @@ atlas_add_test( IOVDbSvc_Boost_test ...@@ -68,9 +68,7 @@ atlas_add_test( IOVDbSvc_Boost_test
test/IOVDbSvc_Boost_test.cxx test/IOVDbSvc_Boost_test.cxx
INCLUDE_DIRS ${COOL_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS} INCLUDE_DIRS ${COOL_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS}
LINK_LIBRARIES ${Boost_LIBRARIES} AthenaBaseComps AthenaKernel SGTools StoreGateLib SGtests GaudiKernel TestTools EventInfo IOVSvcLib xAODEventInfo PersistentDataModel ${COOL_LIBRARIES} LINK_LIBRARIES ${Boost_LIBRARIES} AthenaBaseComps AthenaKernel SGTools StoreGateLib SGtests GaudiKernel TestTools EventInfo IOVSvcLib xAODEventInfo PersistentDataModel ${COOL_LIBRARIES}
EXTRA_PATTERNS "^HistogramPersis.* INFO|^IOVSvc +DEBUG|^IOVSvcTool +DEBUG" EXTRA_PATTERNS "^HistogramPersis.* INFO|^IOVSvc +DEBUG|^IOVSvcTool +DEBUG" )
ENVIRONMENT "JOBOPTSEARCHPATH=${CMAKE_CURRENT_SOURCE_DIR}/share"
)
set_target_properties( IOVDbSvc_IOVDbSvc_Boost_test PROPERTIES ENABLE_EXPORTS True ) set_target_properties( IOVDbSvc_IOVDbSvc_Boost_test PROPERTIES ENABLE_EXPORTS True )
...@@ -78,9 +76,7 @@ atlas_add_test( IOVDbConn_test ...@@ -78,9 +76,7 @@ atlas_add_test( IOVDbConn_test
SOURCES SOURCES
test/IOVDbConn_test.cxx src/IOVDbConn.cxx test/IOVDbConn_test.cxx src/IOVDbConn.cxx
INCLUDE_DIRS ${COOL_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS} INCLUDE_DIRS ${COOL_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS}
LINK_LIBRARIES ${Boost_LIBRARIES} AthenaBaseComps AthenaKernel SGTools StoreGateLib SGtests GaudiKernel TestTools EventInfo IOVSvcLib xAODEventInfo PersistentDataModel ${COOL_LIBRARIES} CoraCool LINK_LIBRARIES ${Boost_LIBRARIES} AthenaBaseComps AthenaKernel SGTools StoreGateLib SGtests GaudiKernel TestTools EventInfo IOVSvcLib xAODEventInfo PersistentDataModel ${COOL_LIBRARIES} CoraCool )
ENVIRONMENT "JOBOPTSEARCHPATH=${CMAKE_CURRENT_SOURCE_DIR}/share"
)
atlas_add_test( IOVDbStringFunctions_test atlas_add_test( IOVDbStringFunctions_test
SOURCES SOURCES
...@@ -122,9 +118,7 @@ atlas_add_test( IOVDbFolder_test ...@@ -122,9 +118,7 @@ atlas_add_test( IOVDbFolder_test
test/IOVDbFolder_test.cxx src/IOVDbFolder.cxx src/IOVDbConn.cxx src/IOVDbParser.cxx src/FolderTypes.cxx src/IOVDbCoolFunctions.cxx src/IOVDbStringFunctions.cxx src/ReadFromFileMetaData.cxx test/IOVDbFolder_test.cxx src/IOVDbFolder.cxx src/IOVDbConn.cxx src/IOVDbParser.cxx src/FolderTypes.cxx src/IOVDbCoolFunctions.cxx src/IOVDbStringFunctions.cxx src/ReadFromFileMetaData.cxx
INCLUDE_DIRS ${COOL_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS} INCLUDE_DIRS ${COOL_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS}
LINK_LIBRARIES ${Boost_LIBRARIES} AthenaBaseComps AthenaKernel SGTools StoreGateLib SGtests GaudiKernel TestTools EventInfo IOVSvcLib xAODEventInfo PersistentDataModel ${COOL_LIBRARIES} CoraCool LINK_LIBRARIES ${Boost_LIBRARIES} AthenaBaseComps AthenaKernel SGTools StoreGateLib SGtests GaudiKernel TestTools EventInfo IOVSvcLib xAODEventInfo PersistentDataModel ${COOL_LIBRARIES} CoraCool
EXTRA_PATTERNS "^HistogramPersis.* INFO|^IOVSvc +DEBUG|^IOVSvcTool +DEBUG" EXTRA_PATTERNS "^HistogramPersis.* INFO|^IOVSvc +DEBUG|^IOVSvcTool +DEBUG" )
ENVIRONMENT "JOBOPTSEARCHPATH=${CMAKE_CURRENT_SOURCE_DIR}/share"
)
if( NOT SIMULATIONBASE ) if( NOT SIMULATIONBASE )
......
Running 2 test cases...
Initializing Gaudi ApplicationMgr using job opts /home/sss/atlas/dvtest/build/joboptions/IOVDbSvc/IOVDbSvc_BoostTest.txt
JobOptionsSvc INFO # =======> /home/sss/atlas/dvtest/build/joboptions/IOVDbSvc/IOVDbSvc_BoostTest.txt
JobOptionsSvc INFO # (1,1): ApplicationMgr.OutputLevel = 5
JobOptionsSvc INFO # (2,1): ApplicationMgr.CreateSvc += ["StoreGateSvc/DetectorStore"]
JobOptionsSvc INFO # (3,1): IOVDbSvc.Folders = ["/key1"]
JobOptionsSvc INFO # (4,1): EventPersistencySvc.CnvServices += ["AthenaPoolCnvSvc"]
JobOptionsSvc INFO # (5,1): MessageSvc.OutputLevel = 5
JobOptionsSvc INFO Job options successfully read in from /home/sss/atlas/dvtest/build/joboptions/IOVDbSvc/IOVDbSvc_BoostTest.txt
ApplicationMgr SUCCESS
====================================================================================================================================
Welcome to ApplicationMgr (GaudiCoreSvc v27r1p99)
running on karma on Sun Mar 3 18:21:01 2019
====================================================================================================================================
ApplicationMgr Ready
*** No errors detected
Running 2 test cases...
Initializing Gaudi ApplicationMgr using job opts /home/sss/atlas/dvtest/build/joboptions/IOVDbSvc/IOVDbSvc_BoostTest.txt
JobOptionsSvc INFO # =======> /home/sss/atlas/dvtest/build/joboptions/IOVDbSvc/IOVDbSvc_BoostTest.txt
JobOptionsSvc INFO # (1,1): ApplicationMgr.OutputLevel = 5
JobOptionsSvc INFO # (2,1): ApplicationMgr.CreateSvc += ["StoreGateSvc/DetectorStore"]
JobOptionsSvc INFO # (3,1): IOVDbSvc.Folders = ["/key1"]
JobOptionsSvc INFO # (4,1): EventPersistencySvc.CnvServices += ["AthenaPoolCnvSvc"]
JobOptionsSvc INFO # (5,1): MessageSvc.OutputLevel = 5
JobOptionsSvc INFO Job options successfully read in from /home/sss/atlas/dvtest/build/joboptions/IOVDbSvc/IOVDbSvc_BoostTest.txt
ApplicationMgr SUCCESS
====================================================================================================================================
Welcome to ApplicationMgr (GaudiCoreSvc v27r1p99)
running on karma on Mon Mar 4 16:55:46 2019
====================================================================================================================================
ApplicationMgr Ready
IOVDbConn_Boost... INFO Opening COOL connection for sqlite://;schema=IOVDbConnTest.db;dbname=OFLP200
IOVDbConn_Boost... INFO *** COOL exception caught: Connection on "sqlite_file:IOVDbConnTest.db" cannot be established ( CORAL : "ConnectionPool::getSessionFromNewConnection" from "CORAL/Services/ConnectionService" )
IOVDbConn_Boost... INFO Create a new conditions database: sqlite://;schema=IOVDbConnTest.db;dbname=OFLP200
*** No errors detected
Running 7 test cases...
*** No errors detected
Running 2 test cases...
Initializing Gaudi ApplicationMgr using job opts /afs/cern.ch/user/s/ssnyder/atlas-work3/build-x86_64-centos7-gcc8-dbg/x86_64-centos7-gcc8-dbg/jobOptions/IOVDbSvc/IOVDbSvc_BoostTest.txt
JobOptionsSvc INFO # =======> /afs/cern.ch/user/s/ssnyder/atlas-work3/build-x86_64-centos7-gcc8-dbg/x86_64-centos7-gcc8-dbg/jobOptions/IOVDbSvc/IOVDbSvc_BoostTest.txt
JobOptionsSvc INFO # (1,1): ApplicationMgr.OutputLevel = 5
JobOptionsSvc INFO # (2,1): ApplicationMgr.CreateSvc += ["StoreGateSvc/DetectorStore"]
JobOptionsSvc INFO # (3,1): IOVDbSvc.Folders = ["/key1"]
JobOptionsSvc INFO # (4,1): EventPersistencySvc.CnvServices += ["AthenaPoolCnvSvc"]
JobOptionsSvc INFO # (5,1): MessageSvc.OutputLevel = 5
JobOptionsSvc INFO Job options successfully read in from /afs/cern.ch/user/s/ssnyder/atlas-work3/build-x86_64-centos7-gcc8-dbg/x86_64-centos7-gcc8-dbg/jobOptions/IOVDbSvc/IOVDbSvc_BoostTest.txt
ApplicationMgr SUCCESS
====================================================================================================================================
Welcome to ApplicationMgr (GaudiCoreSvc v31r0)
running on lxplus089.cern.ch on Thu Mar 14 17:14:44 2019
====================================================================================================================================
ApplicationMgr Ready
IOVDbFolder_test INFO Opening COOL connection for sqlite://;schema=IOVDbFolderTest.db;dbname=OFLP200
*** No errors detected

\ No newline at end of file
Running 2 test cases...
Initializing Gaudi ApplicationMgr using job opts /home/sss/atlas/dvtest/build/joboptions/IOVDbSvc/IOVDbSvc_BoostTest.txt
JobOptionsSvc INFO # =======> /home/sss/atlas/dvtest/build/joboptions/IOVDbSvc/IOVDbSvc_BoostTest.txt
JobOptionsSvc INFO # (1,1): ApplicationMgr.OutputLevel = 5
JobOptionsSvc INFO # (2,1): ApplicationMgr.CreateSvc += ["StoreGateSvc/DetectorStore"]
JobOptionsSvc INFO # (3,1): IOVDbSvc.Folders = ["/key1"]
JobOptionsSvc INFO # (4,1): EventPersistencySvc.CnvServices += ["AthenaPoolCnvSvc"]
JobOptionsSvc INFO # (5,1): MessageSvc.OutputLevel = 5
JobOptionsSvc INFO Job options successfully read in from /home/sss/atlas/dvtest/build/joboptions/IOVDbSvc/IOVDbSvc_BoostTest.txt
ApplicationMgr SUCCESS
====================================================================================================================================
Welcome to ApplicationMgr (GaudiCoreSvc v27r1p99)
running on karma on Sun Mar 3 18:21:30 2019
====================================================================================================================================
ApplicationMgr Ready
IOVDbParser_test INFO Folder extraText, Key: addrHeaderOverriding existing value <address_header service_type="71" clid="40774348" /> to new value <address_header service_type="71" clid="40774348" />
IOVDbParser_test INFO Folder extraText, Key: keyOverriding existing value /PIXEL/CablingMap to new value /PIXEL/CablingMap
IOVDbParser_test INFO Folder extraText, Key: timeStampOverriding existing value run-lumi to new value time
IOVDbParser_test INFO Folder extraText, Key: typeNameOverriding existing value AthenaAttributeList to new value AthenaAttributeList
*** No errors detected
Running 16 test cases...
*** No errors detected
ApplicationMgr.OutputLevel = 5;
ApplicationMgr.CreateSvc += { "StoreGateSvc/DetectorStore" };
IOVDbSvc.Folders = { "/key1"};
EventPersistencySvc.CnvServices += { "AthenaPoolCnvSvc" };
MessageSvc.OutputLevel = 5;
\ No newline at end of file
Initializing Gaudi ApplicationMgr using job opts /afs/cern.ch/user/s/ssnyder/atlas-work3/build-x86_64-centos7-gcc8-dbg/x86_64-centos7-gcc8-dbg/jobOptions/IOVDbSvc/IOVDbSvc_BoostTest.txt
JobOptionsSvc INFO # =======> /afs/cern.ch/user/s/ssnyder/atlas-work3/build-x86_64-centos7-gcc8-dbg/x86_64-centos7-gcc8-dbg/jobOptions/IOVDbSvc/IOVDbSvc_BoostTest.txt
JobOptionsSvc INFO # (1,1): ApplicationMgr.OutputLevel = 5
JobOptionsSvc INFO # (2,1): ApplicationMgr.CreateSvc += ["StoreGateSvc/DetectorStore"]
JobOptionsSvc INFO # (3,1): IOVDbSvc.Folders = ["/key1"]
JobOptionsSvc INFO # (4,1): EventPersistencySvc.CnvServices += ["AthenaPoolCnvSvc"]
JobOptionsSvc INFO # (5,1): MessageSvc.OutputLevel = 5
JobOptionsSvc INFO Job options successfully read in from /afs/cern.ch/user/s/ssnyder/atlas-work3/build-x86_64-centos7-gcc8-dbg/x86_64-centos7-gcc8-dbg/jobOptions/IOVDbSvc/IOVDbSvc_BoostTest.txt
ApplicationMgr SUCCESS
====================================================================================================================================
Welcome to ApplicationMgr (GaudiCoreSvc v31r0)
running on lxplus089.cern.ch on Thu Mar 14 17:14:43 2019
====================================================================================================================================
ApplicationMgr Ready
Running 10 test cases...
*** No errors detected

\ No newline at end of file
Running 2 test cases...
Initializing Gaudi ApplicationMgr using job opts /home/sss/atlas/dvtest/build/joboptions/IOVDbSvc/IOVDbSvc_BoostTest.txt
JobOptionsSvc INFO # =======> /home/sss/atlas/dvtest/build/joboptions/IOVDbSvc/IOVDbSvc_BoostTest.txt
JobOptionsSvc INFO # (1,1): ApplicationMgr.OutputLevel = 5
JobOptionsSvc INFO # (2,1): ApplicationMgr.CreateSvc += ["StoreGateSvc/DetectorStore"]
JobOptionsSvc INFO # (3,1): IOVDbSvc.Folders = ["/key1"]
JobOptionsSvc INFO # (4,1): EventPersistencySvc.CnvServices += ["AthenaPoolCnvSvc"]
JobOptionsSvc INFO # (5,1): MessageSvc.OutputLevel = 5
JobOptionsSvc INFO Job options successfully read in from /home/sss/atlas/dvtest/build/joboptions/IOVDbSvc/IOVDbSvc_BoostTest.txt
ApplicationMgr SUCCESS
====================================================================================================================================
Welcome to ApplicationMgr (GaudiCoreSvc v27r1p99)
running on karma on Sun Mar 3 18:19:37 2019
====================================================================================================================================
ApplicationMgr Ready
*** No errors detected
...@@ -32,7 +32,7 @@ struct GaudiKernelFixtureBase{ ...@@ -32,7 +32,7 @@ struct GaudiKernelFixtureBase{
// //
CxxUtils::ubsan_suppress ([]() { TInterpreter::Instance(); } ); CxxUtils::ubsan_suppress ([]() { TInterpreter::Instance(); } );
if (not gaudiIsInitialised){ if (not gaudiIsInitialised){
gaudiIsInitialised=Athena_test::initGaudi(searchPath+"IOVDbSvc_BoostTest.txt", svcLoc); gaudiIsInitialised=Athena_test::initGaudi("IOVDbSvc/IOVDbSvc_BoostTest.txt", svcLoc);
} }
} }
}; };
......
...@@ -40,7 +40,9 @@ struct IOVDbConnFixture{ ...@@ -40,7 +40,9 @@ struct IOVDbConnFixture{
IOVDbConnFixture():msgSvc("msgSvc","test"), IOVDbConnFixture():msgSvc("msgSvc","test"),
connectionString("sqlite://;schema=IOVDbConnTest.db;dbname=OFLP200"), connectionString("sqlite://;schema=IOVDbConnTest.db;dbname=OFLP200"),
log(msgSvc.get(), "IOVDbConn_Boost_test"), log(msgSvc.get(), "IOVDbConn_Boost_test"),
connection(connectionString, true, log){ connection(connectionString, true, log)
{
(void)unlink ("IOVDbConnTest.db");
} }
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment