3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-08-03 18:00:24 +00:00
yosys/tests/functional
Krystine Sherwin 108a4ed496
tests/functional: Reduce CI to 100 steps
Takes approx half the time, at least when testing locally.
2025-07-07 10:45:51 +12:00
..
.gitignore smtr: Add rkt to functional tests 2024-09-03 11:32:02 +01:00
conftest.py tests/functional: Auto parallelize 2025-07-07 10:38:32 +12:00
picorv32.v add picorv test to functional backend 2024-08-21 11:04:11 +01:00
picorv32_tb.v add picorv test to functional backend 2024-08-21 11:04:11 +01:00
README.md rewrite functional backend test code in python 2024-08-21 11:03:29 +01:00
rkt_vcd.py Add option for using assoc list helpers in tests 2025-06-26 17:44:12 -07:00
rtlil_cells.py tests/functional: Auto parallelize 2025-07-07 10:38:32 +12:00
run-test.sh tests/functional: Reduce CI to 100 steps 2025-07-07 10:45:51 +12:00
simulate_rosette.py Start adding Rosette simulation facilties 2025-05-26 21:47:59 -07:00
smt_vcd.py add support for initializing registers and memories to the functional backend 2024-08-21 11:03:29 +01:00
smtio.py rewrite functional backend test code in python 2024-08-21 11:03:29 +01:00
test_functional.py tests/functional: Auto parallelize 2025-07-07 10:38:32 +12:00
vcd_harness.cc functional backend: missing includes for stl containers 2024-08-22 11:13:58 +01:00

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.