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 | 04388afd4123e118881113d59957b112d3e3c42d (patch) | |
tree | 7928ab9b134f9c8de42705e5731583f5192bbbe6 /llvm/docs/TestingGuide.rst | |
parent | 2fc495370af8beaf471f2c9127cd99c4177af44d (diff) | |
download | bcm5719-llvm-04388afd4123e118881113d59957b112d3e3c42d.tar.gz bcm5719-llvm-04388afd4123e118881113d59957b112d3e3c42d.zip |
[docs] Update TestingGuide's note on how to run with Valgrind.
llvm-svn: 188097
Diffstat (limited to 'llvm/docs/TestingGuide.rst')
-rw-r--r-- | llvm/docs/TestingGuide.rst | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/llvm/docs/TestingGuide.rst b/llvm/docs/TestingGuide.rst index 3cfbb219e65..c74f5208892 100644 --- a/llvm/docs/TestingGuide.rst +++ b/llvm/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 |