CMake: Add support for running tests with valgrind.

llvm-svn: 89625
This commit is contained in:
Daniel Dunbar 2009-11-22 21:55:22 +00:00
parent dc7b6079eb
commit 7b8fcadf68
1 changed files with 5 additions and 0 deletions

View File

@ -40,6 +40,11 @@ if(PYTHONINTERP_FOUND)
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}