All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
aida2root_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__)[:-3]
10  self.args=["$GAUDIEXAMPLESROOT/options/Aida2Root.opts"]
11  self.reference = "refs/Aida2Root.ref"
12  self.options="""from Gaudi.Configuration import *
13 from Configurables import HelloWorld, AbortEventAlg
14 
15 importOptions("Common.opts")
16 
17 h1 = HelloWorld("HelloWorld1")
18 h2 = HelloWorld("HelloWorld2")
19 
20 alg = AbortEventAlg(AbortedEventNumber = 3)
21 
22 app = ApplicationMgr(TopAlg = [h1,alg,h2],
23  EvtSel = "NONE", EvtMax = 5)
24 
25 MessageSvc().setDebug.append("EventLoopMgr") """
26 
27  def validator(self,stdout,stderr, result, causes, reference, error_reference):
28  preprocessor = normalizeExamples + RegexpReplacer(when = "^Aida2Root",orig = r"(INFO.*'(skewness|kurtosis)(Err)?'.*)\|([0-9.e+\- ]*\|){2}",repl = r"\1| ### | ### |")
29  self.validateWithReference(preproc = preprocessor)
def validateWithReference
Definition: BaseTest.py:330