Skip to content

[lit][docs] Mention LIT_OPTS instead of LIT_ARGS #147494

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions llvm/docs/TestingGuide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -152,15 +152,24 @@ can run the LLVM and Clang tests simultaneously using:

% make check-all

To run the tests with Valgrind (Memcheck by default), use the ``LIT_ARGS`` make
To run the tests with Valgrind (Memcheck by default), use the ``LIT_OPTS`` make
variable to pass the required options to lit. For example, you can use:

.. code-block:: bash

% make check LIT_ARGS="-v --vg --vg-leak"
% make check LIT_OPTS="-v --vg --vg-leak"

to enable testing with valgrind and with leak checking enabled.

To skip the evaluation of dependencies when iterating on tests, add suffix /fast
(automatically generated by cmake) to the make target, i.e.

.. code-block:: bash

% make check/fast LIT_OPTS="--filter <...>"

note that this way no changes to source files, besides tests, will be picked up.

To run individual tests or subsets of tests, you can use the ``llvm-lit``
script which is built as part of LLVM. For example, to run the
``Integer/BitPacked.ll`` test by itself you can run:
Expand Down
Loading