diff options
author | Daniel Dunbar <daniel@zuster.org> | 2013-08-09 19:39:48 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2013-08-09 19:39:48 +0000 |
commit | 22c6ccf839ff151d53eaacf7759ab9e93c8a1dff (patch) | |
tree | 87baa335b81e377fc8aed81195ab3ce1b31fada9 /docs/TestingGuide.rst | |
parent | efdcf800fe45e9e9eefaf05fc075c68e1ee50fd3 (diff) | |
download | external_llvm-22c6ccf839ff151d53eaacf7759ab9e93c8a1dff.zip external_llvm-22c6ccf839ff151d53eaacf7759ab9e93c8a1dff.tar.gz external_llvm-22c6ccf839ff151d53eaacf7759ab9e93c8a1dff.tar.bz2 |
[docs] Update TestingGuide's note on how to run with Valgrind.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188097 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/TestingGuide.rst')
-rw-r--r-- | docs/TestingGuide.rst | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/docs/TestingGuide.rst b/docs/TestingGuide.rst index 3cfbb21..c74f520 100644 --- a/docs/TestingGuide.rst +++ b/docs/TestingGuide.rst @@ -120,12 +120,14 @@ can run the LLVM and Clang tests simultaneously using: % make check-all -To run the tests with Valgrind (Memcheck by default), just append -``VG=1`` to the commands above, e.g.: +To run the tests with Valgrind (Memcheck by default), use the ``LIT_ARGS`` make +variable to pass the required options to lit. For example, you can use: .. code-block:: bash - % make check VG=1 + % make check LIT_ARGS="-v --vg --vg-leak" + +to enable testing with valgrind and with leak checking enabled. 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 |