[cfe-commits] r89625 - /cfe/trunk/test/CMakeLists.txt
Daniel Dunbar
daniel at zuster.org
Sun Nov 22 13:55:23 PST 2009
Author: ddunbar
Date: Sun Nov 22 15:55:22 2009
New Revision: 89625
URL: http://llvm.org/viewvc/llvm-project?rev=89625&view=rev
Log:
CMake: Add support for running tests with valgrind.
Modified:
cfe/trunk/test/CMakeLists.txt
Modified: cfe/trunk/test/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CMakeLists.txt?rev=89625&r1=89624&r2=89625&view=diff
==============================================================================
--- cfe/trunk/test/CMakeLists.txt (original)
+++ cfe/trunk/test/CMakeLists.txt Sun Nov 22 15:55:22 2009
@@ -40,6 +40,11 @@
set(CLANG_TEST_EXTRA_ARGS "--no-progress-bar")
endif()
+ option(CLANG_TEST_USE_VG "Run Clang tests under Valgrind" OFF)
+ if(CLANG_TEST_USE_VG)
+ set(CLANG_TEST_EXTRA_ARGS ${CLANG_TEST_EXTRA_ARGS} "--vg")
+ endif ()
+
foreach(testdir ${CLANG_TEST_DIRECTORIES})
add_custom_target(clang-test-${testdir}
COMMAND ${PYTHON_EXECUTABLE}
More information about the cfe-commits
mailing list