All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
particlepropsvc_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 from Configurables import Gaudi__ParticlePropertySvc as ParticlePropertySvc
14 from Configurables import GaudiExamples__GaudiPPS as GaudiPPS
15 
16 importOptions("Common.opts")
17 
18 ParticlePropertySvc( ParticlePropertiesFile = "../data/ParticleTable.txt" )
19 
20 ApplicationMgr( EvtMax = 1,
21  EvtSel = 'NONE',
22  TopAlg = [GaudiPPS()] )
23 """
24 
25  def validator(self,stdout,stderr, result, causes, reference, error_reference):
26  expected = "Opened particle properties file : ../data/ParticleTable.txt"
27  if not expected in stdout:
28  causes.append("missing signature")
29  result["GaudiTest.expected_line"] = result.Quote(expected)
30  if 'ERROR' in stdout or 'FATAL' in stdout:
31  causes.append("error")