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

Constructor & Destructor Documentation

def newFormat.timing_histos_test.Test.__init__ (   self)

Definition at line 7 of file timing_histos_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.args=["$GAUDIEXAMPLESROOT/options/TimingHistograms.py"]
13  self.reference="refs/TimingHistograms.ref"

Member Function Documentation

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

Definition at line 14 of file timing_histos_test.py.

14 
15  def validator(self,stdout,stderr, result, causes, reference, error_reference):
16  # Default validation.
18 
19  # Check the content of the ROOT file.
20  import os
21  from subprocess import Popen, PIPE
22 
23  testscript = os.path.join(os.environ['GAUDIEXAMPLESROOT'], 'tests', 'scripts', 'test_timing_histo_file.py')
24 
25  test = Popen(['python', testscript], stdout=PIPE, stderr=PIPE)
26  out, err = test.communicate()
27 
28  result['root_file_check.returncode'] = str(test.returncode)
29  if test.returncode:
30  causes.append('root file content')
31 
32  if out:
33  result['root_file_check.stdout'] = result.Quote(out)
34 
35  if err:
36  causes.append('standard error')
37  result['root_file_check.stderr'] = result.Quote(err)
def validateWithReference
Definition: BaseTest.py:330

Member Data Documentation

newFormat.timing_histos_test.Test.args

Definition at line 11 of file timing_histos_test.py.

newFormat.timing_histos_test.Test.name

Definition at line 9 of file timing_histos_test.py.

newFormat.timing_histos_test.Test.program

Definition at line 10 of file timing_histos_test.py.

newFormat.timing_histos_test.Test.reference

Definition at line 12 of file timing_histos_test.py.


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