|
Gaudi Framework, version v24r2 |
| Home | Generated: Wed Dec 4 2013 |
Classes | |
| class | TemporaryEnvironment |
| Utility Classes. More... | |
| class | TempDir |
| class | TempFile |
| class | CMT |
| class | BasicOutputValidator |
| Output Validation Classes. More... | |
| class | FilePreprocessor |
| class | FilePreprocessorSequence |
| class | LineSkipper |
| class | BlockSkipper |
| class | RegexpReplacer |
| class | LineSorter |
| Special preprocessor sorting the list of strings (whitespace separated) that follow a signature on a single line. More... | |
| class | ReferenceFileValidator |
| class | GaudiFilterExecutable |
| class | GaudiExeTest |
| class | HTMLResultStream |
Functions | |
| def | which |
| Locates an executable in the executables path ($PATH) and returns the full path to it. | |
| def | rationalizepath |
| def | findReferenceBlock |
| def | countErrorLines |
| def | _parseTTreeSummary |
| def | findTTreeSummaries |
| def | cmpTreesDicts |
| def | getCmpFailingValues |
| def | parseHistosSummary |
| def | findHistosSummaries |
Variables | |
| string | __author__ 'Marco Clemencic CERN/PH-LBC' |
| File: GaudiTest.py Author: Marco Clemencic CERN/PH-LBC. | |
| tuple | maskPointers RegexpReplacer("0x[0-9a-fA-F]{4,16}","0x########") |
| tuple | normalizeDate |
| tuple | normalizeEOL FilePreprocessor() |
| tuple | skipEmptyLines FilePreprocessor() |
| normalizeExamples maskPointers+normalizeDate | |
| tuple | h_count_re re.compile(r"^(.*)SUCCESS\s+Booked (\d+) Histogram\(s\) :\s+(.*)") |
|
private |
Parse the TTree summary table in lines, starting from pos. Returns a tuple with the dictionary with the digested informations and the position of the first line after the summary.
Definition at line 636 of file GaudiTest.py.
| def GaudiTest.cmpTreesDicts | ( | reference, | |
| to_check, | |||
ignore = None |
|||
| ) |
Check that all the keys in reference are in to_check too, with the same value. If the value is a dict, the function is called recursively. to_check can contain more keys than reference, that will not be tested. The function returns at the first difference found.
Definition at line 706 of file GaudiTest.py.
| def GaudiTest.countErrorLines | ( | expected = {'ERROR':0, |
|
| FATAL | |||
| ) |
Definition at line 600 of file GaudiTest.py.
| def GaudiTest.findHistosSummaries | ( | stdout | ) |
Scan stdout to find ROOT TTree summaries and digest them.
Definition at line 813 of file GaudiTest.py.
| def GaudiTest.findReferenceBlock | ( | reference, | |
| stdout, | |||
| result, | |||
| causes, | |||
signature_offset = 0, |
|||
signature = None, |
|||
id = None |
|||
| ) |
Given a block of text, tries to find it in the output. The block had to be identified by a signature line. By default, the first line is used as signature, or the line pointed to by signature_offset. If signature_offset points outside the block, a signature line can be passed as signature argument. Note: if 'signature' is None (the default), a negative signature_offset is interpreted as index in a list (e.g. -1 means the last line), otherwise the it is interpreted as the number of lines before the first one of the block the signature must appear. The parameter 'id' allow to distinguish between different calls to this function in the same validation code.
Definition at line 554 of file GaudiTest.py.
| def GaudiTest.findTTreeSummaries | ( | stdout | ) |
Scan stdout to find ROOT TTree summaries and digest them.
Definition at line 685 of file GaudiTest.py.
| def GaudiTest.getCmpFailingValues | ( | reference, | |
| to_check, | |||
| fail_path | |||
| ) |
Definition at line 737 of file GaudiTest.py.
| def GaudiTest.parseHistosSummary | ( | lines, | |
| pos | |||
| ) |
Extract the histograms infos from the lines starting at pos. Returns the position of the first line after the summary block.
Definition at line 750 of file GaudiTest.py.
| def GaudiTest.rationalizepath | ( | p | ) |
Definition at line 286 of file GaudiTest.py.
| def GaudiTest.which | ( | executable | ) |
Locates an executable in the executables path ($PATH) and returns the full path to it.
If the executable cannot be found, None is returned
Locates an executable in the executables path ($PATH) and returns the full path to it. An application is looked for with or without the '.exe' suffix. If the executable cannot be found, None is returned
Definition at line 266 of file GaudiTest.py.
| string GaudiTest.__author__ 'Marco Clemencic CERN/PH-LBC' |
File: GaudiTest.py Author: Marco Clemencic CERN/PH-LBC.
Definition at line 5 of file GaudiTest.py.
| tuple GaudiTest.h_count_re re.compile(r"^(.*)SUCCESS\s+Booked (\d+) Histogram\(s\) :\s+(.*)") |
Definition at line 748 of file GaudiTest.py.
| tuple GaudiTest.maskPointers RegexpReplacer("0x[0-9a-fA-F]{4,16}","0x########") |
Definition at line 421 of file GaudiTest.py.
| tuple GaudiTest.normalizeDate |
Definition at line 422 of file GaudiTest.py.
| tuple GaudiTest.normalizeEOL FilePreprocessor() |
Definition at line 424 of file GaudiTest.py.
| tuple GaudiTest.normalizeExamples maskPointers+normalizeDate |
Definition at line 447 of file GaudiTest.py.
| tuple GaudiTest.skipEmptyLines FilePreprocessor() |
Definition at line 427 of file GaudiTest.py.