google / globalfoundries-pdk-libs-gf180mcu_fd_pv

Apache License 2.0
12 stars 5 forks source link

Check the possibility of using pytest in the drc unit testing if possible #8

Open atorkmabrains opened 1 year ago

atorkmabrains commented 1 year ago

Check the possibility of using pytest in the drc unit testing if possible.

Example:

One possible way to implement this could be to have a single pytest test case that can run an arbitrary drc rule, similar to what you already have with run_test_case in

globalfoundries-pdk-libs-gf180mcu_fd_pv/klayout/drc/testing/run_regression.py

Line 186 in e318be6

def run_test_case(

and populate the DRC deck/gds usinga parameterized test data:

Resources: https://docs.pytest.org/en/7.1.x/example/pythoncollection.html