All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
newFormat.signal_handler_test.Test Class Reference
Inheritance diagram for newFormat.signal_handler_test.Test:
Collaboration diagram for newFormat.signal_handler_test.Test:

Public Member Functions

def __init__
 
def validator
 
- Public Member Functions inherited from BaseTest.BaseTest
def __init__
 
def validator
 
def runTest
 
def ValidateOutput
 
def findReferenceBlock
 
def countErrorLines
 
def CheckTTreesSummaries
 
def CheckHistosSummaries
 
def validateWithReference
 

Public Attributes

 name
 
 program
 
 exit_code
 
 options
 
- Public Attributes inherited from BaseTest.BaseTest
 program
 
 args
 
 reference
 
 error_reference
 
 options
 
 stderr
 
 timeout
 
 exit_code
 
 environment
 
 target
 
 traceback
 
 unsupported_platforms
 
 signal
 
 status
 
 name
 
 causes
 
 timeOut
 
 result
 
 returnedCode
 
 out
 
 err
 
 proc
 

Detailed Description

Definition at line 5 of file signal_handler_test.py.

Constructor & Destructor Documentation

def newFormat.signal_handler_test.Test.__init__ (   self)

Definition at line 7 of file signal_handler_test.py.

7 
8  def __init__(self):
9  BaseTest.__init__(self)
10  self.name = os.path.basename(__file__)[:-5]
11  self.program="gaudirun.py"
12  self.exit_code=130
13  self.options="""
14 from Gaudi.Configuration import *
15 
16 from Configurables import GaudiTesting__SignallingAlg as SignallingAlg
17 from Configurables import Gaudi__Utils__StopSignalHandler as StopSignalHandler
18 
19 importOptions("Common.opts")
20 alg = SignallingAlg(Signal = 2) # SIGINT
21 #StopSignalHandler(Signals = ["SIGINT", "SIGXCPU"]) # this is the default
22 
23 app = ApplicationMgr(TopAlg = [alg],
24  EvtSel = "NONE", EvtMax = 5,
25  StopOnSignal = True)
26 
27 MessageSvc().setDebug.append("EventLoopMgr")"""

Member Function Documentation

def newFormat.signal_handler_test.Test.validator (   self,
  stdout,
  stderr,
  result,
  causes,
  reference,
  error_reference 
)

Definition at line 28 of file signal_handler_test.py.

28 
29  def validator(self,stdout,stderr, result, causes, reference, error_reference):
30  self.findReferenceBlock("""
31 GaudiTesting::S... INFO 3 events to go
32 GaudiTesting::S... INFO 2 events to go
33 GaudiTesting::S... INFO 1 events to go
34 GaudiTesting::S... INFO Raising signal now
35 Gaudi::Utils::S...WARNING Received signal 'SIGINT' (2, Interrupt)
36 Gaudi::Utils::S...WARNING Scheduling a stop
37 EventLoopMgr SUCCESS Terminating event processing loop due to a stop scheduled by an incident listener
38 ApplicationMgr INFO Application Manager Stopped successfully
""")
def findReferenceBlock
Definition: BaseTest.py:178

Member Data Documentation

newFormat.signal_handler_test.Test.exit_code

Definition at line 11 of file signal_handler_test.py.

newFormat.signal_handler_test.Test.name

Definition at line 9 of file signal_handler_test.py.

newFormat.signal_handler_test.Test.options

Definition at line 12 of file signal_handler_test.py.

newFormat.signal_handler_test.Test.program

Definition at line 10 of file signal_handler_test.py.


The documentation for this class was generated from the following file: