feat(precheck): add support for .gds.br compressed layouts (#87)

* feat(precheck): add support for .gds.br compressed layouts

* fix(precheck): adapt the test suite to changed klayout_checks() signature

---------

Co-authored-by: htfab <mpw@htamas.net>
This commit is contained in:
htfab
2024-12-12 11:33:38 +02:00
committed by GitHub
co-authored by htfab
parent 152a3ea3b4
commit 69b12ddf2c
4 changed files with 42 additions and 18 deletions
+4 -4
View File
@@ -341,14 +341,14 @@ 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):
@@ -356,7 +356,7 @@ def test_klayout_checks_fail_pr_boundary(gds_no_pr_boundary: str):
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):
@@ -364,7 +364,7 @@ def test_klayout_top_module_name(gds_invalid_macro_name: str):
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):