Skip to content
Snippets Groups Projects
Commit afc9c0e9 authored by Frank Winklmeier's avatar Frank Winklmeier
Browse files

Merge branch 'test_controltest' into 'master'

ControlTest: unit test cleanup

See merge request atlas/athena!38519
parents 8ac9f030 10392396
No related branches found
No related tags found
No related merge requests found
Showing
with 7 additions and 3697 deletions
...@@ -79,31 +79,31 @@ else() ...@@ -79,31 +79,31 @@ else()
endif() endif()
atlas_add_test( StoreGateReentrant atlas_add_test( StoreGateReentrant
SCRIPT test/StoreGateReentrant.sh SCRIPT athena.py AthExStoreGateExample/StoreGateExample_Reentrant_jobOptions.py
PROPERTIES TIMEOUT 300 PROPERTIES TIMEOUT 300
LOG_IGNORE_PATTERN "Retrieved const handle to default|type EventInfo|^StoreGateSvc +DEBUG|^ of type|object modifiable when retrieved" ) LOG_IGNORE_PATTERN "Retrieved const handle to default|type EventInfo|^StoreGateSvc +DEBUG|^ of type|object modifiable when retrieved" )
atlas_add_test( StoreGateGen atlas_add_test( StoreGateGen
SCRIPT test/StoreGateGen.sh SCRIPT athena.py AthExStoreGateExample/StoreGateExample_Gen_jobOptions.py
PROPERTIES TIMEOUT 300 PROPERTIES TIMEOUT 300
LOG_IGNORE_PATTERN "Retrieved const handle to default|type EventInfo|^StoreGateSvc +DEBUG|^ of type|object modifiable when retrieved" ) LOG_IGNORE_PATTERN "Retrieved const handle to default|type EventInfo|^StoreGateSvc +DEBUG|^ of type|object modifiable when retrieved" )
atlas_add_test( StoreGateDFlow atlas_add_test( StoreGateDFlow
SCRIPT test/StoreGateDFlow.sh SCRIPT athena.py AthExStoreGateExample/dflow_jobo.py
PROPERTIES TIMEOUT 300 ) PROPERTIES TIMEOUT 300 )
atlas_add_test( test_interactive_athena atlas_add_test( test_interactive_athena
SCRIPT test/test_interactive_athena.sh SCRIPT athena.py ControlTest/test_interactive_athena.py
PROPERTIES TIMEOUT 300 ) PROPERTIES TIMEOUT 300 )
atlas_add_test( test_cfgItemList atlas_add_test( test_cfgItemList
SCRIPT test/test_cfgItemList.sh ) SCRIPT python -m ControlTest.test_cfgItemList )
atlas_add_test( test_keyStore atlas_add_test( test_keyStore
SCRIPT test/test_keyStore.sh ) SCRIPT python -m ControlTest.test_keyStore )
atlas_add_test( test_handleTest atlas_add_test( test_handleTest
SCRIPT test/test_handleTest.sh ) SCRIPT athena.py AthExStoreGateExample/HandleTest_jobOptions.py )
# Install files from the package: # Install files from the package:
atlas_install_python_modules( python/*.py POST_BUILD_CMD ${ATLAS_FLAKE8} ) atlas_install_python_modules( python/*.py POST_BUILD_CMD ${ATLAS_FLAKE8} )
......
JobOptionsSvc INFO
//##############################################################
//
// Job options file
//
//==============================================================
//no EventSelector
ApplicationMgr.Dlls += { "AthenaServices" };
ApplicationMgr.EventLoop = "AthenaEventLoopMgr";
//--------------------------------------------------------------
// StoreGate services configuration
//--------------------------------------------------------------
// --> Including file StoreGate/StoreGate_jobOptions.txt
ApplicationMgr.Dlls += { "StoreGate", "CLIDSvc" };
ApplicationMgr.ExtSvc += { "ClassIDSvc" };
ApplicationMgr.ExtSvc += { "StoreGateSvc", "StoreGateSvc/DetectorStore", "StoreGateSvc/ConditionStore" };
ApplicationMgr.ExtSvc += { "ActiveStoreSvc" };
//FIXME uncomment to verify that your CLIDs are good!
//ClassIDSvc.CLIDDBFiles += { "$CLIDSVCROOT/share/clid.db" };
// --> Including file IOVSvc/IOVSvc.txt
//------------------------------------------------------------------------
//
// Load the Interval of Validity Service
//
//------------------------------------------------------------------------
ApplicationMgr.Dlls += { "IOVSvc" };
ApplicationMgr.ExtSvc += { "IOVSvc" };
// <-- End of including file IOVSvc/IOVSvc.txt
// <-- End of including file StoreGate/StoreGate_jobOptions.txt
ApplicationMgr.ExtSvc += { "EvtPersistencySvc/EventPersistencySvc",
"HistogramSvc/HistogramDataSvc"
};
//--------------------------------------------------------------
// Private Application Configuration options
//--------------------------------------------------------------
//load relevant libraries
ApplicationMgr.Dlls += { "AthExHelloWorld" };
//top algorithms to be run
ApplicationMgr.TopAlg = { "HelloWorld" };
//--------------------------------------------------------------
// Uncomment the following line for tests of statically built applications
//--------------------------------------------------------------
////ApplicationMgr.Dlls = { };
//--------------------------------------------------------------
// Set output level threshold (2=DEBUG, 3=INFO, 4=WARNING, 5=ERROR, 6=FATAL )
//--------------------------------------------------------------
MessageSvc.OutputLevel = 2;
MessageSvc.useColors = true;
//--------------------------------------------------------------
// Event related parameters
//--------------------------------------------------------------
// dummy event loop
ApplicationMgr.EvtSel = "NONE";
// Number of events to be processed (default is 10)
ApplicationMgr.EvtMax = 10;
//--------------------------------------------------------------
// Algorithms Private Options
//--------------------------------------------------------------
// For the HelloWorld algorithm
HelloWorld.MyInt = 42;
HelloWorld.MyBool = true;
HelloWorld.MyDouble = 3.14159;
HelloWorld.MyStringVec = { "Welcome", "to", "Athena", "Framework", "Tutorial" };
//==============================================================
//
// End of job options file
//
//##############################################################
Job options successfully read in from AthExHelloWorld/HelloWorldOptions.txt
ApplicationMgr DEBUG Getting my own properties
DllClassManager DEBUG Found factory Algorithm AthenaOutputStream
DllClassManager DEBUG Found factory Algorithm AthenaConditionStream
DllClassManager DEBUG Found factory AlgContextAuditor
ObjectManager DEBUG Added object factory for class:AlgContextAuditor
DllClassManager DEBUG Found factory Service AlgContextSvc
DllClassManager DEBUG Found factory Service AtRndmGenSvc
DllClassManager DEBUG Found factory Service AthenaEventLoopMgr
DllClassManager DEBUG Found factory Service SimplePOSIXTimeKeeperSvc
DllClassManager DEBUG Loaded 7 factories from module AthenaServices
DllClassManager DEBUG Found factory Service ActiveStoreSvc
DllClassManager DEBUG Found factory Service ProxyProviderSvc
DllClassManager DEBUG Found factory Service StoreGateSvc
DllClassManager DEBUG Loaded 3 factories from module StoreGate
DllClassManager DEBUG Found factory Service ClassIDSvc
DllClassManager DEBUG Loaded 1 factories from module CLIDSvc
DllClassManager DEBUG Found factory Service IOVSvc
DllClassManager DEBUG Found factory Service IOVSvc
ServiceManager WARNING Service factory for type IOVSvc already declared
DllClassManager DEBUG Loaded 2 factories from module IOVSvc
DllClassManager DEBUG Found factory Algorithm HelloWorld
DllClassManager DEBUG Loaded 1 factories from module AthExHelloWorld
ApplicationMgr INFO Successfully loaded modules: AthenaServices, StoreGate, CLIDSvc, IOVSvc, AthExHelloWorld
ApplicationMgr INFO Application Manager Configured successfully
ServiceManager DEBUG Initializing service ClassIDSvc
ClassIDSvc INFO Initializing ClassIDSvc - package version CLIDSvc-00-00-08
ClassIDSvc DEBUG Service base class initialized successfully
ClassIDSvc DEBUG setTypeNameForID: type name <SG::Folder> already set for CLID 77641104
ClassIDSvc DEBUG setTypeNameForID: CLID <77641104> already set for type name SG::Folder
ClassIDSvc DEBUG setTypeNameForID: type name <EventInfo> already set for CLID 2101
ClassIDSvc DEBUG setTypeNameForID: CLID <2101> already set for type name EventInfo
ClassIDSvc DEBUG setTypeNameForID: type name <SG::Folder> already set for CLID 77641104
ClassIDSvc DEBUG setTypeNameForID: CLID <77641104> already set for type name SG::Folder
ClassIDSvc DEBUG setTypeNameForID: type name <EventInfo> already set for CLID 2101
ClassIDSvc DEBUG setTypeNameForID: CLID <2101> already set for type name EventInfo
ClassIDSvc DEBUG setTypeNameForID: type name <EventInfo> already set for CLID 2101
ClassIDSvc DEBUG setTypeNameForID: CLID <2101> already set for type name EventInfo
ClassIDSvc DEBUG setTypeNameForID: type name <EventInfo> already set for CLID 2101
ClassIDSvc DEBUG setTypeNameForID: CLID <2101> already set for type name EventInfo
ClassIDSvc INFO ClassIDSvc Initialized successfully
ServiceManager DEBUG Initializing service StoreGateSvc
StoreGateSvc DEBUG Service base class initialized successfully
StoreGateSvc INFO Initializing StoreGateSvc - package version StoreGate-02-12-08
IncidentSvc DEBUG Service base class initialized successfully
ProxyProviderSvc DEBUG Service base class initialized successfully
ProxyProviderSvc INFO Initializing ProxyProviderSvc - package version StoreGate-02-12-08
ServiceManager DEBUG Initializing service DetectorStore
DetectorStore DEBUG Service base class initialized successfully
DetectorStore INFO Initializing DetectorStore - package version StoreGate-02-12-08
ServiceManager DEBUG Initializing service ConditionStore
ConditionStore DEBUG Service base class initialized successfully
ConditionStore INFO Initializing ConditionStore - package version StoreGate-02-12-08
ServiceManager DEBUG Initializing service ActiveStoreSvc
ActiveStoreSvc DEBUG Service base class initialized successfully
ActiveStoreSvc INFO Initializing ActiveStoreSvc - package version StoreGate-02-12-08
ServiceManager DEBUG Initializing service IOVSvc
IOVSvc DEBUG Initializing IOVSvc version IOVSvc-00-03-05
IOVSvc DEBUG Service base class initialized successfully
IOVSvc DEBUG Service initialized
ServiceManager DEBUG Initializing service EventPersistencySvc
EventPersistenc... DEBUG Service base class initialized successfully
ServiceManager DEBUG Initializing service HistogramDataSvc
HistogramDataSvc DEBUG Service base class initialized successfully
HistogramPersis... INFO "CnvServices": ["HbookHistSvc", "RootHistSvc"]
HistogramPersis... DEBUG Service base class initialized successfully
HistogramPersis...WARNING Histograms saving not required.
ServiceManager DEBUG Service IncidentSvc already initialized
ServiceManager DEBUG Service ProxyProviderSvc already initialized
ServiceManager DEBUG Service HistogramPersistencySvc already initialized
ServiceManager DEBUG Initializing service AppMgrRunable
AppMgrRunable DEBUG Service base class initialized successfully
ServiceManager DEBUG Initializing service AthenaEventLoopMgr
AthenaEventLoopMgr DEBUG Service base class initialized successfully
AthenaEventLoopMgr DEBUG Creating Top Algorithm HelloWorld with name HelloWorld
HelloWorld INFO initialize()
HelloWorld INFO MyInt = 42
HelloWorld INFO MyBool = 1
HelloWorld INFO MyDouble = 3.14159
HelloWorld INFO MyStringVec[0] = Welcome
HelloWorld INFO MyStringVec[1] = to
HelloWorld INFO MyStringVec[2] = Athena
HelloWorld INFO MyStringVec[3] = Framework
HelloWorld INFO MyStringVec[4] = Tutorial
AthenaEventLoopMgrWARNING Histograms saving not required.
AthenaEventLoopMgrWARNING No EventSelector selected
No events will be processed from external input.
AthenaEventLoopMgr INFO No TimeKeeper selected. No time limit control on event loop.
ApplicationMgr INFO Application Manager Initialized successfully
StoreGateSvc DEBUG Recorded object
of type EventInfo(CLID 2101)
object not modifiable when retrieved
------------------------------ IOVSvc Proxy Map ------------------------------
-------------------------------------------------------------------------------
IOVSvc DEBUG preLoadProxies()
StoreGateSvc DEBUG retrieve(default): Retrieved const handle to default object
of type EventInfo(CLID 2101)
IOVSvc DEBUG Begin Event: [R/E] = [0,1]
IOVSvc DEBUG start set:

IOVSvc DEBUG stop set:

IOVSvc DEBUG --> start set:

IOVSvc DEBUG --> stop set:

AuditorSvc DEBUG Service base class initialized successfully
HelloWorld INFO execute()
HelloWorld DEBUG A DEBUG message
HelloWorld INFO An INFO message
HelloWorld WARNING A WARNING message
HelloWorld ERROR An ERROR message
HelloWorld FATAL A FATAL error message
StoreGateSvc DEBUG Recorded object
of type EventInfo(CLID 2101)
object not modifiable when retrieved
StoreGateSvc DEBUG retrieve(default): Retrieved const handle to default object
of type EventInfo(CLID 2101)
IOVSvc DEBUG Begin Event: [R/E] = [0,2]
IOVSvc DEBUG start set:

IOVSvc DEBUG stop set:

IOVSvc DEBUG --> start set:

IOVSvc DEBUG --> stop set:

HelloWorld INFO execute()
HelloWorld DEBUG A DEBUG message
HelloWorld INFO An INFO message
HelloWorld WARNING A WARNING message
HelloWorld ERROR An ERROR message
HelloWorld FATAL A FATAL error message
StoreGateSvc DEBUG Recorded object
of type EventInfo(CLID 2101)
object not modifiable when retrieved
StoreGateSvc DEBUG retrieve(default): Retrieved const handle to default object
of type EventInfo(CLID 2101)
IOVSvc DEBUG Begin Event: [R/E] = [0,3]
IOVSvc DEBUG start set:

IOVSvc DEBUG stop set:

IOVSvc DEBUG --> start set:

IOVSvc DEBUG --> stop set:

HelloWorld INFO execute()
HelloWorld DEBUG A DEBUG message
HelloWorld INFO An INFO message
HelloWorld WARNING A WARNING message
HelloWorld ERROR An ERROR message
HelloWorld FATAL A FATAL error message
StoreGateSvc DEBUG Recorded object
of type EventInfo(CLID 2101)
object not modifiable when retrieved
StoreGateSvc DEBUG retrieve(default): Retrieved const handle to default object
of type EventInfo(CLID 2101)
IOVSvc DEBUG Begin Event: [R/E] = [0,4]
IOVSvc DEBUG start set:

IOVSvc DEBUG stop set:

IOVSvc DEBUG --> start set:

IOVSvc DEBUG --> stop set:

HelloWorld INFO execute()
HelloWorld DEBUG A DEBUG message
HelloWorld INFO An INFO message
HelloWorld WARNING A WARNING message
HelloWorld ERROR An ERROR message
HelloWorld FATAL A FATAL error message
StoreGateSvc DEBUG Recorded object
of type EventInfo(CLID 2101)
object not modifiable when retrieved
StoreGateSvc DEBUG retrieve(default): Retrieved const handle to default object
of type EventInfo(CLID 2101)
IOVSvc DEBUG Begin Event: [R/E] = [0,5]
IOVSvc DEBUG start set:

IOVSvc DEBUG stop set:

IOVSvc DEBUG --> start set:

IOVSvc DEBUG --> stop set:

HelloWorld INFO execute()
HelloWorld DEBUG A DEBUG message
HelloWorld INFO An INFO message
HelloWorld WARNING A WARNING message
HelloWorld ERROR An ERROR message
HelloWorld FATAL A FATAL error message
StoreGateSvc DEBUG Recorded object
of type EventInfo(CLID 2101)
object not modifiable when retrieved
StoreGateSvc DEBUG retrieve(default): Retrieved const handle to default object
of type EventInfo(CLID 2101)
IOVSvc DEBUG Begin Event: [R/E] = [0,6]
IOVSvc DEBUG start set:

IOVSvc DEBUG stop set:

IOVSvc DEBUG --> start set:

IOVSvc DEBUG --> stop set:

HelloWorld INFO execute()
HelloWorld DEBUG A DEBUG message
HelloWorld INFO An INFO message
HelloWorld WARNING A WARNING message
HelloWorld ERROR An ERROR message
HelloWorld FATAL A FATAL error message
StoreGateSvc DEBUG Recorded object
of type EventInfo(CLID 2101)
object not modifiable when retrieved
StoreGateSvc DEBUG retrieve(default): Retrieved const handle to default object
of type EventInfo(CLID 2101)
IOVSvc DEBUG Begin Event: [R/E] = [0,7]
IOVSvc DEBUG start set:

IOVSvc DEBUG stop set:

IOVSvc DEBUG --> start set:

IOVSvc DEBUG --> stop set:

HelloWorld INFO execute()
HelloWorld DEBUG A DEBUG message
HelloWorld INFO An INFO message
HelloWorld WARNING A WARNING message
HelloWorld ERROR An ERROR message
HelloWorld FATAL A FATAL error message
StoreGateSvc DEBUG Recorded object
of type EventInfo(CLID 2101)
object not modifiable when retrieved
StoreGateSvc DEBUG retrieve(default): Retrieved const handle to default object
of type EventInfo(CLID 2101)
IOVSvc DEBUG Begin Event: [R/E] = [0,8]
IOVSvc DEBUG start set:

IOVSvc DEBUG stop set:

IOVSvc DEBUG --> start set:

IOVSvc DEBUG --> stop set:

HelloWorld INFO execute()
HelloWorld DEBUG A DEBUG message
HelloWorld INFO An INFO message
HelloWorld WARNING A WARNING message
HelloWorld ERROR An ERROR message
HelloWorld FATAL A FATAL error message
StoreGateSvc DEBUG Recorded object
of type EventInfo(CLID 2101)
object not modifiable when retrieved
StoreGateSvc DEBUG retrieve(default): Retrieved const handle to default object
of type EventInfo(CLID 2101)
IOVSvc DEBUG Begin Event: [R/E] = [0,9]
IOVSvc DEBUG start set:

IOVSvc DEBUG stop set:

IOVSvc DEBUG --> start set:

IOVSvc DEBUG --> stop set:

HelloWorld INFO execute()
HelloWorld DEBUG A DEBUG message
HelloWorld INFO An INFO message
HelloWorld WARNING A WARNING message
HelloWorld ERROR An ERROR message
HelloWorld FATAL A FATAL error message
StoreGateSvc DEBUG Recorded object
of type EventInfo(CLID 2101)
object not modifiable when retrieved
StoreGateSvc DEBUG retrieve(default): Retrieved const handle to default object
of type EventInfo(CLID 2101)
IOVSvc DEBUG Begin Event: [R/E] = [0,10]
IOVSvc DEBUG start set:

IOVSvc DEBUG stop set:

IOVSvc DEBUG --> start set:

IOVSvc DEBUG --> stop set:

HelloWorld INFO execute()
HelloWorld DEBUG A DEBUG message
HelloWorld INFO An INFO message
HelloWorld WARNING A WARNING message
HelloWorld ERROR An ERROR message
HelloWorld FATAL A FATAL error message
HelloWorld INFO finalize()
IOVSvc INFO Service finalised successfully
ClassIDSvc DEBUG finalize: wrote 3 entries to output CLIDDB file: ./CLIDDBout.txt
ApplicationMgr INFO Application Manager Finalized successfully
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
source ../cmt/setup.sh
#!/bin/bash
#
# $Id: StoreGateDFlow.sh 729263 2016-03-11 17:34:05Z krasznaa $
#
# Script running the StoreGateDFlow intergration test.
#
# Transmit errors:
set -e
# Run the job:
athena.py AthExStoreGateExample/dflow_jobo.py
#!/bin/bash
#
# $Id: StoreGateGen.sh 729263 2016-03-11 17:34:05Z krasznaa $
#
# Script running the StoreGateGen intergration test.
#
# Transmit errors:
set -e
# Run the job:
athena.py AthExStoreGateExample/StoreGateExample_Gen_jobOptions.py
#!/bin/bash
#
# $Id: StoreGateReentrant.sh 729263 2016-03-11 17:34:05Z krasznaa $
#
# Script running the StoreGateReentrant intergration test.
#
# Transmit errors:
set -e
# Run the job:
athena.py AthExStoreGateExample/StoreGateExample_Reentrant_jobOptions.py
<?xml version="1.0"?>
<atn>
<TEST name="ControlTest" type="makecheck" suite="Examples">
<package>AtlasTest/ControlTest</package>
<timelimit>20</timelimit>
<author> Paolo Calafiura </author>
<mailto> pcalafiura@lbl.gov </mailto>
<expectations>
<errorMessage> Athena exited abnormally </errorMessage>
<errorMessage> Terminating event processing loop due to errors </errorMessage>
<successMessage>check ok.</successMessage>
<returnValue>0</returnValue>
</expectations>
</TEST>
</atn>
#!/bin/bash
# Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration.
#
# Script for test_cfgItemList.
#
# Return the correct code:
set -e
# Run the test:
python -c'import ControlTest.test_cfgItemList'
#!/bin/bash
# Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration.
#
# Script for test_handleTest
#
# Return the correct code:
set -e
# Run the test:
athena.py AthExStoreGateExample/HandleTest_jobOptions.py
#!/bin/bash
#
# $Id: test_interactive_athena.sh 729263 2016-03-11 17:34:05Z krasznaa $
#
# Script running the test_interactive_athena intergration test.
#
# Transmit errors:
set -e
# Run the job:
athena.py ControlTest/test_interactive_athena.py
#!/bin/bash
# Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration.
#
# Script for test_keyStore.
#
# Return the correct code:
set -e
# Run the test:
python -c'import ControlTest.test_keyStore'
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