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
auditors_user_timing_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.
args
=[
"-v"
]
12
self.
options
=
"""
13
from Gaudi.Configuration import *
14
15
from Configurables import AuditorTestAlg, GaudiExamples__LoggingAuditor as LoggingAuditor
16
17
importOptions("Common.opts")
18
19
AuditorSvc().Auditors += [ TimingAuditor("TIMER"),
20
LoggingAuditor("LoggingAuditor") ]
21
22
app = ApplicationMgr(TopAlg = [AuditorTestAlg()],
23
EvtSel = "NONE", EvtMax = 5)
24
25
app.ExtSvc += [ ToolSvc(), AuditorSvc() ]
26
app.AuditAlgorithms = True
27
28
MessageSvc().setDebug.append("EventLoopMgr") """
29
30
def
validator
(self,stdout,stderr, result, causes, reference, error_reference):
31
import
re
32
if
not
re.search(
"TIMER.TIMER *INFO AuditorTestAlg:loop"
,stdout):
33
causes.append(
"missing timing reoprt"
)
34
result[
"GaudiTest.expected"
] = result.Quote(
"timing report for timer 'AuditorTestAlg:loop'"
)
BaseTest.BaseTest.program
program
Definition:
BaseTest.py:19
BaseTest.BaseTest
Definition:
BaseTest.py:17
newFormat.auditors_user_timing_test.Test.__init__
def __init__
Definition:
auditors_user_timing_test.py:7
BaseTest.BaseTest.args
args
Definition:
BaseTest.py:20
newFormat.auditors_user_timing_test.Test.validator
def validator
Definition:
auditors_user_timing_test.py:30
newFormat.auditors_user_timing_test.Test
Definition:
auditors_user_timing_test.py:5
BaseTest.BaseTest.options
options
Definition:
BaseTest.py:23
BaseTest.BaseTest.name
name
Definition:
BaseTest.py:34
patches
QMTProject
Code
newFormat
auditors_user_timing_test.py
Generated on Tue Dec 9 2014 16:33:08 for The Gaudi Framework by
1.8.7