![]() |
The Gaudi Framework
v33r0 (d5ea422b)
|
Classes | |
| class | BasicOutputValidator |
| Output Validation Classes. More... | |
| class | BlockSkipper |
| class | CMT |
| class | FilePreprocessor |
| class | FilePreprocessorSequence |
| class | GaudiExeTest |
| class | GaudiFilterExecutable |
| class | HTMLResultStream |
| class | LineSkipper |
| class | LineSorter |
| class | ReferenceFileValidator |
| class | RegexpReplacer |
| class | TempDir |
| class | TempFile |
| class | TemporaryEnvironment |
| Utility Classes. More... | |
| class | XMLResultStream |
Functions | |
| def | ROOT6WorkAroundEnabled (id=None) |
| def | total_seconds_replacement (timedelta) |
| def | which (executable) |
| def | rationalizepath (p) |
| def | hexreplace (match) |
| def | hexConvert (char) |
| def | convert_xml_illegal_chars (val) |
| def | escape_xml_illegal_chars (val, replacement='?') |
| def | findReferenceBlock (reference, stdout, result, causes, signature_offset=0, signature=None, id=None) |
| def | countErrorLines (expected={ 'ERROR':0, 'FATAL':0}, **kwargs) |
| def | _parseTTreeSummary (lines, pos) |
| def | findTTreeSummaries (stdout) |
| def | cmpTreesDicts (reference, to_check, ignore=None) |
| def | getCmpFailingValues (reference, to_check, fail_path) |
| def | parseHistosSummary (lines, pos) |
| def | findHistosSummaries (stdout) |
Variables | |
| string | __author__ = 'Marco Clemencic CERN/PH-LBC' |
| File: GaudiTest.py Author: Marco Clemencic CERN/PH-LBC. More... | |
| _illegal_xml_chars_RE | |
| maskPointers = RegexpReplacer("0x[0-9a-fA-F]{4,16}", "0x########") | |
| normalizeDate | |
| normalizeEOL = FilePreprocessor() | |
| __processLine__ | |
| skipEmptyLines = FilePreprocessor() | |
| normalizeExamples = maskPointers + normalizeDate | |
| lineSkipper | |
| regexps | |
| 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 812 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 886 of file GaudiTest.py.
| def GaudiTest.convert_xml_illegal_chars | ( | val | ) |
Definition at line 375 of file GaudiTest.py.
| def GaudiTest.countErrorLines | ( | expected = {'ERROR': 0, 'FATAL': 0}, |
|
| ** | kwargs | ||
| ) |
Count the number of messages with required severity (by default ERROR and FATAL) and check if their numbers match the expected ones (0 by default). The dictionary "expected" can be used to tune the number of errors and fatals allowed, or to limit the number of expected warnings etc.
Definition at line 774 of file GaudiTest.py.
| def GaudiTest.escape_xml_illegal_chars | ( | val, | |
replacement = '?' |
|||
| ) |
Filter out characters that are illegal in XML.
Looks for any character in val that is not allowed in XML
and replaces it with replacement ('?' by default).
Definition at line 379 of file GaudiTest.py.
| def GaudiTest.findHistosSummaries | ( | stdout | ) |
Scan stdout to find ROOT TTree summaries and digest them.
Definition at line 1004 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 720 of file GaudiTest.py.
| def GaudiTest.findTTreeSummaries | ( | stdout | ) |
Scan stdout to find ROOT TTree summaries and digest them.
Definition at line 864 of file GaudiTest.py.
| def GaudiTest.getCmpFailingValues | ( | reference, | |
| to_check, | |||
| fail_path | |||
| ) |
Definition at line 919 of file GaudiTest.py.
| def GaudiTest.hexConvert | ( | char | ) |
Definition at line 371 of file GaudiTest.py.
| def GaudiTest.hexreplace | ( | match | ) |
Definition at line 366 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 934 of file GaudiTest.py.
| def GaudiTest.rationalizepath | ( | p | ) |
Definition at line 341 of file GaudiTest.py.
| def GaudiTest.ROOT6WorkAroundEnabled | ( | id = None | ) |
Definition at line 37 of file GaudiTest.py.
| def GaudiTest.total_seconds_replacement | ( | timedelta | ) |
Definition at line 54 of file GaudiTest.py.
| def GaudiTest.which | ( | executable | ) |
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 320 of file GaudiTest.py.
|
private |
File: GaudiTest.py Author: Marco Clemencic CERN/PH-LBC.
Definition at line 16 of file GaudiTest.py.
|
private |
Definition at line 554 of file GaudiTest.py.
|
private |
Definition at line 362 of file GaudiTest.py.
| GaudiTest.h_count_re = re.compile(r"^(.*)SUCCESS\s+Booked (\d+) Histogram\(s\) :\s+(.*)") |
Definition at line 931 of file GaudiTest.py.
| GaudiTest.lineSkipper |
Definition at line 607 of file GaudiTest.py.
| GaudiTest.maskPointers = RegexpReplacer("0x[0-9a-fA-F]{4,16}", "0x########") |
Definition at line 549 of file GaudiTest.py.
| GaudiTest.normalizeDate |
Definition at line 550 of file GaudiTest.py.
| GaudiTest.normalizeEOL = FilePreprocessor() |
Definition at line 553 of file GaudiTest.py.
| tuple GaudiTest.normalizeExamples = maskPointers + normalizeDate |
Definition at line 580 of file GaudiTest.py.
| GaudiTest.regexps |
Definition at line 672 of file GaudiTest.py.
| GaudiTest.skipEmptyLines = FilePreprocessor() |
Definition at line 556 of file GaudiTest.py.