All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
newFormat.event_timeout_test.Test Class Reference
Inheritance diagram for newFormat.event_timeout_test.Test:
Collaboration diagram for newFormat.event_timeout_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
 
 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 event_timeout_test.py.

Constructor & Destructor Documentation

def newFormat.event_timeout_test.Test.__init__ (   self)

Definition at line 7 of file event_timeout_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.options="""
13 from Gaudi.Configuration import *
14 
15 from Configurables import GaudiTesting__SleepyAlg as SleepyAlg
16 from Configurables import StalledEventMonitor
17 
18 importOptions("Common.opts")
19 
20 alg = SleepyAlg("Sleepy", SleepTime = 11)
21 sem = StalledEventMonitor(EventTimeout = 2)
22 
23 app = ApplicationMgr(TopAlg = [alg],
24  EvtSel = "NONE", EvtMax = 2,
25  StalledEventMonitoring = True)
26 """

Member Function Documentation

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

Definition at line 27 of file event_timeout_test.py.

27 
28  def validator(self,stdout,stderr, result, causes, reference, error_reference):
29  import re
30  stdout = re.subn(r"size = [0-9]+(\.[0-9]*)? MB", "size = # MB", stdout)[0]
31 
32  self.findReferenceBlock("""
33 ApplicationMgr INFO Application Manager Started successfully
34 Sleepy INFO Executing event 1
35 Sleepy INFO Sleeping for 11 seconds
36 EventWatchdog WARNING More than 2s since the last BeginEvent
37 EventWatchdog INFO Current memory usage is virtual size = # MB, resident set size = # MB
38 EventWatchdog WARNING Other 2s passed
39 EventWatchdog INFO Current memory usage is virtual size = # MB, resident set size = # MB
40 EventWatchdog WARNING Other 2s passed
41 EventWatchdog INFO Current memory usage is virtual size = # MB, resident set size = # MB
42 EventWatchdog WARNING Other 2s passed
43 EventWatchdog INFO Current memory usage is virtual size = # MB, resident set size = # MB
44 EventWatchdog WARNING Other 2s passed
45 EventWatchdog INFO Current memory usage is virtual size = # MB, resident set size = # MB
46 Sleepy INFO Back from sleep
47 EventWatchdog INFO Starting a new event after ~10s
48 Sleepy INFO Executing event 2
49 Sleepy INFO Sleeping for 11 seconds
50 EventWatchdog WARNING More than 2s since the last BeginEvent
51 EventWatchdog INFO Current memory usage is virtual size = # MB, resident set size = # MB
52 EventWatchdog WARNING Other 2s passed
53 EventWatchdog INFO Current memory usage is virtual size = # MB, resident set size = # MB
54 EventWatchdog WARNING Other 2s passed
55 EventWatchdog INFO Current memory usage is virtual size = # MB, resident set size = # MB
56 EventWatchdog WARNING Other 2s passed
57 EventWatchdog INFO Current memory usage is virtual size = # MB, resident set size = # MB
58 EventWatchdog WARNING Other 2s passed
59 EventWatchdog INFO Current memory usage is virtual size = # MB, resident set size = # MB
60 Sleepy INFO Back from sleep
61 EventWatchdog INFO The last event took ~10s
62 ApplicationMgr INFO Application Manager Stopped successfully
""", stdout = stdout)
def findReferenceBlock
Definition: BaseTest.py:178

Member Data Documentation

newFormat.event_timeout_test.Test.name

Definition at line 9 of file event_timeout_test.py.

newFormat.event_timeout_test.Test.options

Definition at line 11 of file event_timeout_test.py.

newFormat.event_timeout_test.Test.program

Definition at line 10 of file event_timeout_test.py.


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