![]() |
The Gaudi Framework
v32r2 (46d42edc)
|
Classes | |
| class | BaseTest |
| class | BasicOutputValidator |
| class | BlockSkipper |
| class | FilePreprocessor |
| class | FilePreprocessorSequence |
| class | LineSkipper |
| class | LineSorter |
| class | ReferenceFileValidator |
| class | RegexpReplacer |
| class | Result |
| class | SortGroupOfLines |
Functions | |
| def | _new_backslashreplace_errors (exc) |
| def | sanitize_for_xml (data) |
| def | dumpProcs (name) |
| def | kill_tree (ppid, sig) |
| def | ROOT6WorkAroundEnabled (id=None) |
| def | RationalizePath (p) |
| def | which (executable) |
| def | findTTreeSummaries (stdout) |
| def | cmpTreesDicts (reference, to_check, ignore=None) |
| def | getCmpFailingValues (reference, to_check, fail_path) |
| def | _parseTTreeSummary (lines, pos) |
| def | parseHistosSummary (lines, pos) |
| def | findHistosSummaries (stdout) |
| def | PlatformIsNotSupported (self, context, result) |
| def | GetPlatform (self) |
| def | isWinPlatform (self) |
Variables | |
| maskPointers = RegexpReplacer("0x[0-9a-fA-F]{4,16}", "0x########") | |
| normalizeDate | |
| normalizeEOL = FilePreprocessor() | |
| __processLine__ | |
| skipEmptyLines = FilePreprocessor() | |
| normalizeExamples = maskPointers + normalizeDate | |
| lineSkipper | |
| regexps | |
| h_count_re | |
|
private |
Definition at line 23 of file BaseTest.py.
|
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 1160 of file BaseTest.py.
| def GaudiTesting.BaseTest.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 1110 of file BaseTest.py.
| def GaudiTesting.BaseTest.dumpProcs | ( | name | ) |
| def GaudiTesting.BaseTest.findHistosSummaries | ( | stdout | ) |
Scan stdout to find ROOT TTree summaries and digest them.
Definition at line 1282 of file BaseTest.py.
| def GaudiTesting.BaseTest.findTTreeSummaries | ( | stdout | ) |
Scan stdout to find ROOT TTree summaries and digest them.
Definition at line 1088 of file BaseTest.py.
| def GaudiTesting.BaseTest.getCmpFailingValues | ( | reference, | |
| to_check, | |||
| fail_path | |||
| ) |
Definition at line 1144 of file BaseTest.py.
| def GaudiTesting.BaseTest.GetPlatform | ( | self | ) |
Return the platform Id defined in CMTCONFIG or SCRAM_ARCH.
Definition at line 1319 of file BaseTest.py.
| def GaudiTesting.BaseTest.isWinPlatform | ( | self | ) |
Return True if the current platform is Windows.
This function was needed because of the change in the CMTCONFIG format,
from win32_vc71_dbg to i686-winxp-vc9-dbg.
Definition at line 1334 of file BaseTest.py.
| def GaudiTesting.BaseTest.kill_tree | ( | ppid, | |
| sig | |||
| ) |
Send a signal to a process and all its child processes (starting from the leaves).
Definition at line 63 of file BaseTest.py.
| def GaudiTesting.BaseTest.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 1212 of file BaseTest.py.
| def GaudiTesting.BaseTest.PlatformIsNotSupported | ( | self, | |
| context, | |||
| result | |||
| ) |
Definition at line 1305 of file BaseTest.py.
| def GaudiTesting.BaseTest.RationalizePath | ( | p | ) |
| def GaudiTesting.BaseTest.ROOT6WorkAroundEnabled | ( | id = None | ) |
Definition at line 637 of file BaseTest.py.
| def GaudiTesting.BaseTest.sanitize_for_xml | ( | data | ) |
Take a string with invalid ASCII/UTF characters and quote them so that the
string can be used in an XML text.
>>> sanitize_for_xml('this is \x1b')
'this is [NON-XML-CHAR-0x1B]'
Definition at line 36 of file BaseTest.py.
| def GaudiTesting.BaseTest.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 655 of file BaseTest.py.
|
private |
Definition at line 878 of file BaseTest.py.
| GaudiTesting.BaseTest.h_count_re |
Definition at line 1156 of file BaseTest.py.
| GaudiTesting.BaseTest.lineSkipper |
Definition at line 957 of file BaseTest.py.
| GaudiTesting.BaseTest.maskPointers = RegexpReplacer("0x[0-9a-fA-F]{4,16}", "0x########") |
Definition at line 873 of file BaseTest.py.
| GaudiTesting.BaseTest.normalizeDate |
Definition at line 874 of file BaseTest.py.
| GaudiTesting.BaseTest.normalizeEOL = FilePreprocessor() |
Definition at line 877 of file BaseTest.py.
| tuple GaudiTesting.BaseTest.normalizeExamples = maskPointers + normalizeDate |
Definition at line 928 of file BaseTest.py.
| GaudiTesting.BaseTest.regexps |
Definition at line 1040 of file BaseTest.py.
| GaudiTesting.BaseTest.skipEmptyLines = FilePreprocessor() |
Definition at line 880 of file BaseTest.py.