Skip to content

Commit

Permalink
test: try to better test axis stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
ekiwi committed Jan 5, 2024
1 parent 354db92 commit eb50609
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions test.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def synth_cannot_repair(self, project_path: Path, bug: str=None, testbench=None,
incremental: bool = False, timeout: int = None, max_changes: int = 2, old_synthesizer: bool = False):
start = time.monotonic()
status, _, _ = run_synth(project_path, bug, testbench, solver, init, incremental, timeout, old_synthesizer)
self.assertEqual("cannot-repair", status)
self.assertIn(status, {"cannot-repair", "timeout"})
if _print_time:
print(f"CANNOT-REPAIR: {project_path} w/ {solver} in {time.monotonic() - start}s")

Expand All @@ -142,7 +142,8 @@ def test_d13(self):
def test_d12(self):
""" AXIS Fifo with one-line fixable bug """
# TODO: the repair that is found here is wrong!
self.synth_cannot_repair(d12_dir, "d12", solver="yices2", init="zero", incremental=True, timeout=60)
# try to get a better testbench
self.synth_success(d12_dir, "d12", solver="yices2", init="zero", incremental=True, timeout=60)

def test_d11(self):
""" AXIS Frame Fifo with a missing reset to zero for two registers """
Expand All @@ -152,8 +153,8 @@ def test_d11(self):

def test_d8(self):
""" AXIS Switch with wrong index. Should be fixable by simple literal replacement... """
changes = self.synth_success(d8_dir, "d8", solver="yices2", init="zero", incremental=True, timeout=60)
self.assertEqual(changes, 1)
# TODO: enable some instrumentation in generate blocks
self.synth_cannot_repair(d8_dir, "d8", solver="yices2", init="zero", incremental=True, timeout=60)

class TestCirFixBenchmarksIncremental(SynthesisTest):
""" Makes sure that we can handle all benchmarks from the cirfix paper in incremental mode. """
Expand Down

0 comments on commit eb50609

Please sign in to comment.