[cfe-commits] r82541 - /cfe/trunk/test/CMakeLists.txt
Daniel Dunbar
daniel at zuster.org
Tue Sep 22 03:07:55 PDT 2009
Author: ddunbar
Date: Tue Sep 22 05:07:55 2009
New Revision: 82541
URL: http://llvm.org/viewvc/llvm-project?rev=82541&view=rev
Log:
CMake: Add a clang-c++tests target for running the experimental C++ header
-fsyntax-only'ing tests.
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=82541&r1=82540&r2=82541&view=diff
==============================================================================
--- cfe/trunk/test/CMakeLists.txt (original)
+++ cfe/trunk/test/CMakeLists.txt Tue Sep 22 05:07:55 2009
@@ -61,4 +61,19 @@
${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()
More information about the cfe-commits
mailing list