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