diff --git a/llvm/docs/TestingGuide.rst b/llvm/docs/TestingGuide.rst index b6dda6a732405..3648986ac6692 100644 --- a/llvm/docs/TestingGuide.rst +++ b/llvm/docs/TestingGuide.rst @@ -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: