mirror of
https://github.com/YosysHQ/yosys
synced 2026-06-23 09:10:30 +00:00
Added functional tests option
This commit is contained in:
parent
247bcfed65
commit
782f9ddd24
2 changed files with 22 additions and 7 deletions
|
|
@ -76,15 +76,19 @@ If you don't have one of the :ref:`getting_started/installation:CAD suite(s)`
|
|||
installed, you should also install Z3 `following their
|
||||
instructions <https://github.com/Z3Prover/z3>`_.
|
||||
|
||||
.. TODO:: CMAKE_TODO
|
||||
Functional tests are disabled by default, to enable them use next code snippet
|
||||
and run tests as usual:
|
||||
|
||||
How does this work under CMake? Is it only via ``make -C tests
|
||||
ENABLE_FUNCTIONAL_TESTS=1`` and then manually setting ``BUILD_DIR`` and
|
||||
``PROGRAM_PREFIX``? And possibly also setting ``YOSYS`` et al if there is a
|
||||
``.exe``. Previous instructions:
|
||||
.. code:: console
|
||||
|
||||
Then, set the :makevar:`ENABLE_FUNCTIONAL_TESTS` make variable when calling
|
||||
``make test`` and the functional tests will be run as well.
|
||||
cmake -B build . -DYOSYS_ENABLE_FUNCTIONAL_TESTS=ON
|
||||
cmake --build build --target test --parallel $(nproc)
|
||||
|
||||
Or run just functional tests with:
|
||||
|
||||
.. code:: console
|
||||
|
||||
cmake --build build --target test-functional
|
||||
|
||||
Docs tests
|
||||
~~~~~~~~~~
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue