Add a reproducible upstream GDSII corpus check
Pin 30 layouts from five upstream repositories and verify downloads and license files by SHA-256. Exercise full reads, scans, selected reads, and CLI self-comparisons with a per-layout JSON report. Cache the inputs locally for offline reruns. The baseline exposes a CLI rejection of KLayout's padded-name fixture. The gzip fixture passes directly through the CLI.
This commit is contained in:
parent
6e4b371046
commit
d95c378690
1 changed files with 252 additions and 0 deletions
|
|
@ -24,6 +24,20 @@ built library without reinstalling, set `PHEON_LIBRARY` to its absolute
|
|||
path and run `python -m unittest discover -s tests/python` from the checkout.
|
||||
Unset this override when checking installed artifacts with `check_installed.py`.
|
||||
|
||||
## Check upstream layouts
|
||||
|
||||
The [GDSII corpus](../contrib/gds-corpus.toml) pins open-source fixtures and cell
|
||||
libraries. After installing `.[arrow]` and building the release CLI, run:
|
||||
|
||||
```sh
|
||||
python -I tools/check_gds_corpus.py --fetch
|
||||
```
|
||||
|
||||
The checker uses `curl` to cache layouts and license files in `.cache/gds-corpus/`
|
||||
and verifies their SHA-256 digests. Omit `--fetch` to rerun offline. It checks
|
||||
full reads, scans, selected reads, and CLI self-comparisons. It writes diagnostics
|
||||
to `.cache/gds-corpus/report.json` and exits with status 1 if a check fails.
|
||||
|
||||
## Interfaces and reports
|
||||
|
||||
The CFFI declarations live in [pheon/_ffi.h](https://mpxd.net/code/jan/pheon/src/branch/master/pheon/_ffi.h). Keep them aligned
|
||||
|
|
|
|||
Loading…
Reference in a new issue