The Gaudi Framework
v25r6p1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
event_timeout_test.py
Go to the documentation of this file.
1
# -*- coding: utf-8 -*-
2
import
BaseTest
3
from
BaseTest
import
*
4
5
class
Test
(
BaseTest
):
6
7
def
__init__
(self):
8
BaseTest.__init__(self)
9
self.
name
= os.path.basename(__file__)[:-5]
10
self.
program
=
"gaudirun.py"
11
self.
options
=
"""
12
from Gaudi.Configuration import *
13
14
from Configurables import GaudiTesting__SleepyAlg as SleepyAlg
15
from Configurables import StalledEventMonitor
16
17
importOptions("Common.opts")
18
19
alg = SleepyAlg("Sleepy", SleepTime = 11)
20
sem = StalledEventMonitor(EventTimeout = 2)
21
22
app = ApplicationMgr(TopAlg = [alg],
23
EvtSel = "NONE", EvtMax = 2,
24
StalledEventMonitoring = True)
25
"""
26
27
def
validator
(self,stdout,stderr, result, causes, reference, error_reference):
28
import
re
29
stdout = re.subn(
r"size = [0-9]+(\.[0-9]*)? MB"
,
"size = # MB"
, stdout)[0]
30
31
self.
findReferenceBlock
(
"""
32
ApplicationMgr INFO Application Manager Started successfully
33
Sleepy INFO Executing event 1
34
Sleepy INFO Sleeping for 11 seconds
35
EventWatchdog WARNING More than 2s since the last BeginEvent
36
EventWatchdog INFO Current memory usage is virtual size = # MB, resident set size = # MB
37
EventWatchdog WARNING Other 2s passed
38
EventWatchdog INFO Current memory usage is virtual size = # MB, resident set size = # MB
39
EventWatchdog WARNING Other 2s passed
40
EventWatchdog INFO Current memory usage is virtual size = # MB, resident set size = # MB
41
EventWatchdog WARNING Other 2s passed
42
EventWatchdog INFO Current memory usage is virtual size = # MB, resident set size = # MB
43
EventWatchdog WARNING Other 2s passed
44
EventWatchdog INFO Current memory usage is virtual size = # MB, resident set size = # MB
45
Sleepy INFO Back from sleep
46
EventWatchdog INFO Starting a new event after ~10s
47
Sleepy INFO Executing event 2
48
Sleepy INFO Sleeping for 11 seconds
49
EventWatchdog WARNING More than 2s since the last BeginEvent
50
EventWatchdog INFO Current memory usage is virtual size = # MB, resident set size = # MB
51
EventWatchdog WARNING Other 2s passed
52
EventWatchdog INFO Current memory usage is virtual size = # MB, resident set size = # MB
53
EventWatchdog WARNING Other 2s passed
54
EventWatchdog INFO Current memory usage is virtual size = # MB, resident set size = # MB
55
EventWatchdog WARNING Other 2s passed
56
EventWatchdog INFO Current memory usage is virtual size = # MB, resident set size = # MB
57
EventWatchdog WARNING Other 2s passed
58
EventWatchdog INFO Current memory usage is virtual size = # MB, resident set size = # MB
59
Sleepy INFO Back from sleep
60
EventWatchdog INFO The last event took ~10s
61
ApplicationMgr INFO Application Manager Stopped successfully
62
"""
, stdout = stdout)
BaseTest.BaseTest.program
program
Definition:
BaseTest.py:19
BaseTest.BaseTest
Definition:
BaseTest.py:17
newFormat.event_timeout_test.Test.validator
def validator
Definition:
event_timeout_test.py:27
newFormat.event_timeout_test.Test
Definition:
event_timeout_test.py:5
newFormat.event_timeout_test.Test.__init__
def __init__
Definition:
event_timeout_test.py:7
BaseTest.BaseTest.findReferenceBlock
def findReferenceBlock
Definition:
BaseTest.py:178
BaseTest.BaseTest.options
options
Definition:
BaseTest.py:23
BaseTest.BaseTest.name
name
Definition:
BaseTest.py:34
patches
QMTProject
Code
newFormat
event_timeout_test.py
Generated on Tue Dec 9 2014 16:33:08 for The Gaudi Framework by
1.8.7