summaryrefslogtreecommitdiffstats
path: root/llvm/docs/TestingGuide.rst
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2013-08-09 19:39:48 +0000
committerDaniel Dunbar <daniel@zuster.org>2013-08-09 19:39:48 +0000
commit04388afd4123e118881113d59957b112d3e3c42d (patch)
tree7928ab9b134f9c8de42705e5731583f5192bbbe6 /llvm/docs/TestingGuide.rst
parent2fc495370af8beaf471f2c9127cd99c4177af44d (diff)
downloadbcm5719-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.rst8
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
OpenPOWER on IntegriCloud