aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-09-22 10:07:55 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-09-22 10:07:55 +0000
commitcceef8b89ee2c26aa85d8d2c2a34ce2d75f85fd2 (patch)
treeb3cb91435ac3e4dd861e6b998151931265b5864b
parent932eb6dd3fcb3dc2d43ed3e042d12d4c9172ac71 (diff)
CMake: Add a clang-c++tests target for running the experimental C++ header
-fsyntax-only'ing tests. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82541 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/CMakeLists.txt15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index cb2b80a160..a557ff66e2 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -61,4 +61,19 @@ if(PYTHONINTERP_FOUND)
${CMAKE_CURRENT_BINARY_DIR}
DEPENDS clang clang-cc index-test
COMMENT "Running Clang regression tests")
+
+ add_custom_target(clang-c++tests
+ COMMAND sed -e "s#\@LLVM_SOURCE_DIR\@#${LLVM_MAIN_SRC_DIR}#"
+ -e "s#\@LLVM_BINARY_DIR\@#${LLVM_BINARY_DIR}#"
+ -e "s#\@LLVM_TOOLS_DIR\@#${LLVM_TOOLS_PATH}/${CMAKE_CFG_INTDIR}#"
+ -e "s#\@CLANG_SOURCE_DIR\@#${CMAKE_CURRENT_SOURCE_DIR}/..#"
+ -e "s#\@CLANG_BINARY_DIR\@#${CMAKE_CURRENT_BINARY_DIR}/..#"
+ ${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.in >
+ ${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg
+ COMMAND ${PYTHON_EXECUTABLE}
+ ${LLVM_SOURCE_DIR}/utils/lit/lit.py
+ -s ${CLANG_TEST_EXTRA_ARGS}
+ ${CMAKE_CURRENT_SOURCE_DIR}/../utils/C++Tests
+ DEPENDS clang clang-cc index-test
+ COMMENT "Running Clang regression tests")
endif()