![]() |
The Gaudi Framework
v41r0 (bdbe7744)
|


Public Member Functions | |
| None | validate_with_reference (cls, bytes data, str key, dict reference, Callable[[str, str], None] record_property) |
| validate_json_with_reference (cls, str output_file, str reference_file, detailed=True) | |
| find_reference_block (cls, str reference_block, Callable preprocessor=None, str signature=None, int signature_offset=0) | |
| test_count_messages (self, reference, stdout, record_property) | |
| None | test_stdout (self, bytes stdout, Callable record_property, dict reference) |
| None | test_ttrees (self, bytes stdout, Callable record_property, dict reference) |
| None | test_histos (self, bytes stdout, Callable record_property, dict reference) |
| None | test_stderr (self, bytes stderr, Callable record_property, dict reference) |
| test_record_options (self, Callable record_property) | |
| Public Member Functions inherited from GaudiTesting.SubprocessBaseTest.SubprocessBaseTest | |
| Path|None | cwd (self) |
| str | resolve_path (cls, Path|str path) |
| None | update_env (cls, dict[str, str] env) |
| FixtureResult | run_program (cls, tmp_path=None) |
| run_program_for_dbg (cls, tmp_path) | |
| None | test_fixture_setup (self, Callable[[str, str], None] record_property, FixtureResult fixture_result, Path|None reference_path) |
| None | test_returncode (self, int returncode) |
Static Public Attributes | |
| Callable | options = None |
| options_code = None | |
| Callable | preprocessor = normalizeTestSuite |
| Static Public Attributes inherited from GaudiTesting.SubprocessBaseTest.SubprocessBaseTest | |
| list | command = None |
| str | reference = None |
| list | environment = None |
| int | timeout = 600 |
| int | returncode = 0 |
| dict | popen_kwargs = {} |
| list | env_to_record |
Protected Member Functions | |
| list[str] | _prepare_command (cls, tmp_path=Path()) |
| Protected Member Functions inherited from GaudiTesting.SubprocessBaseTest.SubprocessBaseTest | |
| dict[str, str] | _prepare_environment (cls) |
| str | _determine_program (cls, str prog) |
| str | _handle_timeout (cls, subprocess.Popen proc) |
| _prepare_execution (cls, tmp_path=None) | |
Static Protected Member Functions | |
| str | _output_diff (dict reference_data, str output, Callable[[str], str] preprocessor=lambda x:x) |
| Static Protected Member Functions inherited from GaudiTesting.SubprocessBaseTest.SubprocessBaseTest | |
| str | _collect_stack_trace (subprocess.Popen proc) |
| None | _terminate_process (subprocess.Popen proc) |
Additional Inherited Members | |
| Static Public Member Functions inherited from GaudiTesting.SubprocessBaseTest.SubprocessBaseTest | |
| str | expand_vars_from (str value, dict[str, str] env) |
| None | unset_vars (dict[str, str] env, list[str] vars_to_unset) |
An extension of SubprocessBaseTest tailored to the Gaudi/LHCb workflow. It includes additional functionalities for handling options, preprocessing output, and validating against platform-specific reference files.
Definition at line 35 of file GaudiExeTest.py.
|
staticprotected |
Compute the difference between the reference data and the current output.
Definition at line 95 of file GaudiExeTest.py.
|
protected |
Override the base class to include options.
Reimplemented from GaudiTesting.SubprocessBaseTest.SubprocessBaseTest.
Definition at line 47 of file GaudiExeTest.py.
| GaudiTesting.GaudiExeTest.GaudiExeTest.find_reference_block | ( | cls, | |
| str | reference_block, | ||
| Callable | preprocessor = None, | ||
| str | signature = None, | ||
| int | signature_offset = 0 ) |
Definition at line 194 of file GaudiExeTest.py.
| GaudiTesting.GaudiExeTest.GaudiExeTest.test_count_messages | ( | self, | |
| reference, | |||
| stdout, | |||
| record_property ) |
Test the count of error messages in the stdout against expected values.
Definition at line 249 of file GaudiExeTest.py.
| None GaudiTesting.GaudiExeTest.GaudiExeTest.test_histos | ( | self, | |
| bytes | stdout, | ||
| Callable | record_property, | ||
| dict | reference ) |
Test the histogram summaries against the reference.
Definition at line 321 of file GaudiExeTest.py.
| GaudiTesting.GaudiExeTest.GaudiExeTest.test_record_options | ( | self, | |
| Callable | record_property ) |
Definition at line 357 of file GaudiExeTest.py.
| None GaudiTesting.GaudiExeTest.GaudiExeTest.test_stderr | ( | self, | |
| bytes | stderr, | ||
| Callable | record_property, | ||
| dict | reference ) |
Test the standard error output against the reference.
Definition at line 343 of file GaudiExeTest.py.
| None GaudiTesting.GaudiExeTest.GaudiExeTest.test_stdout | ( | self, | |
| bytes | stdout, | ||
| Callable | record_property, | ||
| dict | reference ) |
Test the standard output against the reference.
Definition at line 286 of file GaudiExeTest.py.
| None GaudiTesting.GaudiExeTest.GaudiExeTest.test_ttrees | ( | self, | |
| bytes | stdout, | ||
| Callable | record_property, | ||
| dict | reference ) |
Test the TTree summaries against the reference.
Definition at line 299 of file GaudiExeTest.py.
| GaudiTesting.GaudiExeTest.GaudiExeTest.validate_json_with_reference | ( | cls, | |
| str | output_file, | ||
| str | reference_file, | ||
| detailed = True ) |
Validate the JSON output against a reference JSON file.
Definition at line 162 of file GaudiExeTest.py.
| None GaudiTesting.GaudiExeTest.GaudiExeTest.validate_with_reference | ( | cls, | |
| bytes | data, | ||
| str | key, | ||
| dict | reference, | ||
| Callable[[str, str], None] | record_property ) |
Validate the given data against a reference file for the specified key.
Definition at line 120 of file GaudiExeTest.py.
|
static |
Definition at line 42 of file GaudiExeTest.py.
|
static |
Definition at line 43 of file GaudiExeTest.py.
|
static |
Definition at line 44 of file GaudiExeTest.py.