|
CIRCT 23.0.0git
|
Functions | |
| Path | get_runtime_root () |
| None | require_tool (str tool) |
| str | require_env (str var_name) |
| str | run_cmd (cmd, **kwargs) |
| None | check_lines (str stdout, list[str] expected) |
Variables | |
| _logger = logging.getLogger(__name__) | |
| ROOT_DIR = Path(__file__).resolve().parent | |
| str | HW_DIR = ROOT_DIR / "hw" |
| str | SW_DIR = ROOT_DIR / "sw" |
| None tests.integration.conftest.check_lines | ( | str | stdout, |
| list[str] | expected | ||
| ) |
Assert that every expected substring appears in stdout in order.
Definition at line 52 of file conftest.py.
| Path tests.integration.conftest.get_runtime_root | ( | ) |
Definition at line 22 of file conftest.py.
References resolve().
| str tests.integration.conftest.require_env | ( | str | var_name | ) |
Definition at line 32 of file conftest.py.
| None tests.integration.conftest.require_tool | ( | str | tool | ) |
Definition at line 27 of file conftest.py.
| str tests.integration.conftest.run_cmd | ( | cmd, | |
| ** | kwargs | ||
| ) |
Run a command, capture stdout, and return it. Raises on failure.
Definition at line 39 of file conftest.py.
|
protected |
Definition at line 15 of file conftest.py.
| str tests.integration.conftest.HW_DIR = ROOT_DIR / "hw" |
Definition at line 18 of file conftest.py.
| tests.integration.conftest.ROOT_DIR = Path(__file__).resolve().parent |
Definition at line 17 of file conftest.py.
| str tests.integration.conftest.SW_DIR = ROOT_DIR / "sw" |
Definition at line 19 of file conftest.py.