"""pytest wrapper: build muladd_pipe.sv with Icarus and run the cocotb tests in cocotb_muladd.py.""" from sim_runner import run_cocotb def test_muladd() -> None: n_tests, n_failed = run_cocotb(["muladd_pipe.sv"], toplevel="muladd_pipe", test_module="cocotb_muladd") assert n_tests > 0 and n_failed == 0, f"{n_failed} of {n_tests} cocotb tests failed"