Skip to content

Commit

Permalink
fix(precheck): adapt the test suite to changed klayout_checks() signa…
Browse files Browse the repository at this point in the history
…ture
  • Loading branch information
htfab committed Dec 12, 2024
1 parent 12f6166 commit 6cdef3c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions precheck/test_precheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,30 +341,30 @@ def test_klayout_beol_fail(gds_fail_met1_poly: str):


def test_klayout_checks_pass(gds_valid: str):
precheck.klayout_checks(gds_valid)
precheck.klayout_checks(gds_valid, "TEST_valid")


def test_klayout_checks_fail_metal5(gds_fail_metal5_poly: str):
with pytest.raises(
precheck.PrecheckFailure, match=r"Forbidden layer met5\.drawing found in .+"
):
precheck.klayout_checks(gds_fail_metal5_poly)
precheck.klayout_checks(gds_fail_metal5_poly, "TEST_met5_error")


def test_klayout_checks_fail_pr_boundary(gds_no_pr_boundary: str):
with pytest.raises(
precheck.PrecheckFailure,
match=r"prBoundary.boundary \(235/4\) layer not found in .+",
):
precheck.klayout_checks(gds_no_pr_boundary)
precheck.klayout_checks(gds_no_pr_boundary, "TEST_no_prboundary")


def test_klayout_top_module_name(gds_invalid_macro_name: str):
with pytest.raises(
precheck.PrecheckFailure,
match="Top macro name mismatch: expected TEST_invalid_macro_name, got wrong_name",
):
precheck.klayout_checks(gds_invalid_macro_name)
precheck.klayout_checks(gds_invalid_macro_name, "TEST_invalid_macro_name")


def test_klayout_zero_area_drc_pass(gds_valid: str):
Expand Down

0 comments on commit 6cdef3c

Please sign in to comment.