[cfe-commits] r118777 - /cfe/trunk/test/CMakeLists.txt
NAKAMURA Takumi
geek4civic at gmail.com
Wed Nov 10 20:09:51 PST 2010
Author: chapuni
Date: Wed Nov 10 22:09:51 2010
New Revision: 118777
URL: http://llvm.org/viewvc/llvm-project?rev=118777&view=rev
Log:
test/CMakeLists.txt: Use ${LLVM_LIT_ARGS} and remove redundant arguments "-sv" and "--no-progress-bar".
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=118777&r1=118776&r2=118777&view=diff
==============================================================================
--- cfe/trunk/test/CMakeLists.txt (original)
+++ cfe/trunk/test/CMakeLists.txt Wed Nov 10 22:09:51 2010
@@ -37,22 +37,22 @@
include(FindPythonInterp)
if(PYTHONINTERP_FOUND)
set(CLANG_TEST_EXTRA_ARGS)
- if (MSVC OR XCODE)
- 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 ()
+ set(LIT_ARGS "${CLANG_TEST_EXTRA_ARGS} ${LLVM_LIT_ARGS}")
+ separate_arguments(LIT_ARGS)
+
foreach(testdir ${CLANG_TEST_DIRECTORIES})
add_custom_target(clang-test-${testdir}
COMMAND ${PYTHON_EXECUTABLE}
${LLVM_SOURCE_DIR}/utils/lit/lit.py
--param clang_site_config=${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg
--param build_config=${CMAKE_CFG_INTDIR}
- -sv ${CLANG_TEST_EXTRA_ARGS}
+ ${LIT_ARGS}
${CMAKE_CURRENT_BINARY_DIR}/${testdir}
DEPENDS clang c-index-test FileCheck not count
COMMENT "Running Clang regression tests in ${testdir}")
@@ -63,7 +63,7 @@
${LLVM_SOURCE_DIR}/utils/lit/lit.py
--param clang_site_config=${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg
--param build_config=${CMAKE_CFG_INTDIR}
- -sv ${CLANG_TEST_EXTRA_ARGS}
+ ${LIT_ARGS}
${CMAKE_CURRENT_BINARY_DIR}
DEPENDS clang c-index-test FileCheck not count
COMMENT "Running Clang regression tests")
@@ -73,7 +73,7 @@
${LLVM_SOURCE_DIR}/utils/lit/lit.py
--param clang_site_config=${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg
--param build_config=${CMAKE_CFG_INTDIR}
- -sv ${CLANG_TEST_EXTRA_ARGS}
+ ${LIT_ARGS}
${CMAKE_CURRENT_SOURCE_DIR}/../utils/C++Tests
DEPENDS clang c-index-test FileCheck not count
COMMENT "Running Clang regression tests")
More information about the cfe-commits
mailing list