CIRCT 23.0.0git
Loading...
Searching...
No Matches
Functions | Variables
tests.integration.conftest Namespace Reference

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"
 

Function Documentation

◆ check_lines()

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.

◆ get_runtime_root()

Path tests.integration.conftest.get_runtime_root ( )

Definition at line 22 of file conftest.py.

References resolve().

◆ require_env()

str tests.integration.conftest.require_env ( str  var_name)

Definition at line 32 of file conftest.py.

◆ require_tool()

None tests.integration.conftest.require_tool ( str  tool)

Definition at line 27 of file conftest.py.

◆ run_cmd()

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.

Variable Documentation

◆ _logger

tests.integration.conftest._logger = logging.getLogger(__name__)
protected

Definition at line 15 of file conftest.py.

◆ HW_DIR

str tests.integration.conftest.HW_DIR = ROOT_DIR / "hw"

Definition at line 18 of file conftest.py.

◆ ROOT_DIR

tests.integration.conftest.ROOT_DIR = Path(__file__).resolve().parent

Definition at line 17 of file conftest.py.

◆ SW_DIR

str tests.integration.conftest.SW_DIR = ROOT_DIR / "sw"

Definition at line 19 of file conftest.py.