3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-09-02 00:00:44 +00:00

rewrite functional backend test code in python

This commit is contained in:
Emily Schmidt 2024-07-12 11:07:33 +01:00
parent 9ad859fc0a
commit 674e6d201d
57 changed files with 554 additions and 1238 deletions

View file

@ -0,0 +1,19 @@
Tests for the functional backend use pytest as a testrunner.
Run with `pytest -v`
Pytest options you might want:
- `-v`: More progress indication.
- `--basetemp tmp`: Store test files (including vcd results) in tmp.
CAREFUL: contents of tmp will be deleted
- `-k <pattern>`: Run only tests that contain the pattern, e.g.
`-k cxx` or `-k smt` or `-k demux` or `-k 'cxx[demux`
- `-s`: Don't hide stdout/stderr from the test code.
Custom options for functional backend tests:
- `--per-cell N`: Run only N tests for each cell.