[llvm] r188097 - [docs] Update TestingGuide's note on how to run with Valgrind.

Daniel Dunbar daniel at zuster.org
Fri Aug 9 12:39:48 PDT 2013


Author: ddunbar
Date: Fri Aug  9 14:39:48 2013
New Revision: 188097

URL: http://llvm.org/viewvc/llvm-project?rev=188097&view=rev
Log:
[docs] Update TestingGuide's note on how to run with Valgrind.

Modified:
    llvm/trunk/docs/TestingGuide.rst

Modified: llvm/trunk/docs/TestingGuide.rst
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/TestingGuide.rst?rev=188097&r1=188096&r2=188097&view=diff
==============================================================================
--- llvm/trunk/docs/TestingGuide.rst (original)
+++ llvm/trunk/docs/TestingGuide.rst Fri Aug  9 14:39:48 2013
@@ -120,12 +120,14 @@ can run the LLVM and Clang tests simulta
 
     % 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





More information about the llvm-commits mailing list