|
CIRCT 23.0.0git
|
Functions | |
| Path | _build (Path sources_dir) |
| _make_probe_test (str probe) | |
| _make_codegen_class (str name, bsp_args) | |
Variables | |
| list | PROBES |
| TestCodegen = _make_codegen_class("TestCodegen", ("{tmp_dir}",)) | |
| TestCodegenDma | |
Pytest harness for the codegen + port-kind coverage tests. Where ``test_serialization_probes`` exercises wire-format invariants, this suite exercises the *port-kind* surface area of the ESI runtime + facade codegen end-to-end. It builds the C++ driver under ``sw/test_codegen.cpp`` against generated ESI facade headers and runs each probe individually against a cosim-driven instance of ``hw/test_codegen.py``. Two test classes are generated — one for the default ``cosim`` BSP and one for ``cosim_dma`` — so every probe is exercised through both channel transport paths.
|
protected |
Definition at line 50 of file test_codegen_cpp.py.
|
protected |
Build a test class with one method per probe, decorated with cosim_test.
Definition at line 65 of file test_codegen_cpp.py.
References tests.integration.test_codegen_cpp._make_probe_test().
|
protected |
Create a test method that runs a single probe.
Definition at line 54 of file test_codegen_cpp.py.
Referenced by tests.integration.test_codegen_cpp._make_codegen_class().
| list tests.integration.test_codegen_cpp.PROBES |
Definition at line 27 of file test_codegen_cpp.py.
| tests.integration.test_codegen_cpp.TestCodegen = _make_codegen_class("TestCodegen", ("{tmp_dir}",)) |
Definition at line 72 of file test_codegen_cpp.py.
| tests.integration.test_codegen_cpp.TestCodegenDma |
Definition at line 73 of file test_codegen_cpp.py.