CIRCT 23.0.0git
Loading...
Searching...
No Matches
Classes | Namespaces | Functions | Variables
pytest.py File Reference

Go to the source code of this file.

Classes

class  pytest.CosimPytestConfig
 
class  pytest._ClassCompileCache
 
class  pytest._ChildResult
 

Namespaces

namespace  pytest
 

Functions

bool pytest._get_env_bool (str var_name, bool default)
 
Optional[Path] pytest._get_env_path (str var_name)
 
str pytest._get_pytest_run_id ()
 
Optional[str] pytest._get_xdist_worker_id ()
 
str pytest._get_test_dir_name (CosimPytestConfig config)
 
 pytest._chdir (Path path)
 
bool pytest._line_matches (LogMatcher matcher, str line, str stream)
 
tuple[list[str], list[str]] pytest._scan_logs (Sequence[str] stdout_lines, Sequence[str] stderr_lines, CosimPytestConfig config)
 
list[str] pytest._render_args (Sequence[str] args, Path tmp_dir)
 
Path pytest._generate_sources (CosimPytestConfig config, Path tmp_dir)
 
Simulator pytest._create_simulator (CosimPytestConfig config, Path sources_dir, Path run_dir)
 
Path pytest._run_hw_script (Union[str, Path] script_path, CosimPytestConfig config, Path tmp_dir)
 
bool pytest._is_injected_param (str name, Any annotation)
 
Dict[str, Any] pytest._resolve_injected_params (Callable[..., Any] target, Dict[str, Any] kwargs, str host, int port, Optional[Path] sources_dir=None)
 
inspect.Signature pytest._visible_signature (Callable[..., Any] target)
 
 pytest._copy_compiled_artifacts (Optional[Path] compile_dir, Path run_dir)
 
_ClassCompileCache pytest._compile_once_for_class (CosimPytestConfig config)
 
 pytest._run_child (multiprocessing.connection.Connection result_pipe, Callable[..., Any] target, CosimPytestConfig config, Sequence[Any] args, Dict[str, Any] kwargs, Optional[_ClassCompileCache] class_cache)
 
 pytest._run_isolated (Callable[..., Any] target, CosimPytestConfig config, Sequence[Any] args, Dict[str, Any] kwargs, Optional[_ClassCompileCache] class_cache=None)
 
Callable[..., Any] pytest._decorate_function (Callable[..., Any] target, CosimPytestConfig config, Optional[Callable[[], _ClassCompileCache]] class_cache_getter=None)
 
type pytest._decorate_class (type target_cls, CosimPytestConfig config)
 
 pytest.cosim_test (SourceGeneratorArg source_generator, Sequence[str] args=("{tmp_dir}",), str simulator="verilator", str top="ESI_Cosim_Top", Optional[bool] debug=None, float timeout_s=_DEFAULT_TIMEOUT_S, Optional[LogMatcher] failure_matcher=_DEFAULT_FAILURE_PATTERN, Optional[LogMatcher] warning_matcher=_DEFAULT_WARN_PATTERN, Optional[Path] tmp_dir_root=None, Optional[bool] delete_tmp_dir=None, Optional[bool] save_waveform=None)
 

Variables

 pytest.LogMatcher = Union[str, Pattern[str], Callable[[str, str], bool]]
 
 pytest.SourceGeneratorFunc = Callable[["CosimPytestConfig", Path], Path]
 
 pytest.SourceGeneratorArg = Union[str, Path, SourceGeneratorFunc]
 
 pytest._logger = logging.getLogger("esiaccel.cosim.pytest")
 
 pytest._DEFAULT_FAILURE_PATTERN = re.compile(r"\berror\b", re.IGNORECASE)
 
 pytest._DEFAULT_WARN_PATTERN = re.compile(r"\bwarn(ing)?\b", re.IGNORECASE)
 
float pytest._DEFAULT_TIMEOUT_S = 120.0
 
dict pytest._INJECTED_NAMES
 
 pytest._INJECTED_ANNOTATIONS = frozenset({Accelerator, AcceleratorConnection})