diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-11-08 09:08:00 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-11-08 09:08:00 +0000 |
commit | 5ed7be1a401d7f75e08623b0172f0318f2977e31 (patch) | |
tree | 200261169fef237f7606b4bd9869227339ea8cc7 /test/CMakeLists.txt | |
parent | fb4fb6ddb0f26ad0269a93f2edc8baa490984122 (diff) | |
download | llvm-5ed7be1a401d7f75e08623b0172f0318f2977e31.tar.gz llvm-5ed7be1a401d7f75e08623b0172f0318f2977e31.tar.bz2 llvm-5ed7be1a401d7f75e08623b0172f0318f2977e31.tar.xz |
Derive the right paths to use during testing instead of passing it in via make.
Also, fix a few other details of the cmake test target and rename it to
'check'. CMake tests now work for the most part, but there are a handful of
failures left due to missing site.exp bits.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86452 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CMakeLists.txt')
-rw-r--r-- | test/CMakeLists.txt | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 681e50d0a8..36572852dc 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -5,31 +5,31 @@ set(TARGETS_TO_BUILD ${TARGETS_BUILT}) include(FindPythonInterp) if(PYTHONINTERP_FOUND) - get_target_property(LLVM_TOOLS_PATH llvm-config RUNTIME_OUTPUT_DIRECTORY) - configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/site.exp.in ${CMAKE_CURRENT_BINARY_DIR}/site.exp) - add_custom_target(llvm-test + MAKE_DIRECTORY(${CMAKE_CURRENT_BINARY_DIR}/Unit) + + add_custom_target(check 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#\@LLVMGCC_DIR\@##" + -e "s#\@LLVM_TOOLS_DIR\@#${LLVM_TOOLS_BINARY_DIR}/${CMAKE_CFG_INTDIR}#" + -e "s#\@LLVMGCCDIR\@##" ${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.in > ${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg 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#\@LLVMGCC_DIR\@##" + -e "s#\@LLVM_TOOLS_DIR\@#${LLVM_TOOLS_BINARY_DIR}/${CMAKE_CFG_INTDIR}#" + -e "s#\@LLVMGCCDIR\@##" -e "s#\@LLVM_BUILD_MODE\@#${CMAKE_CFG_INTDIR}#" ${CMAKE_CURRENT_SOURCE_DIR}/Unit/lit.site.cfg.in > ${CMAKE_CURRENT_BINARY_DIR}/Unit/lit.site.cfg - COMMAND ${PYTHON_EXECUTABLE} + COMMAND ${PYTHON_EXECUTABLE} ${LLVM_SOURCE_DIR}/utils/lit/lit.py -sv ${CMAKE_CURRENT_BINARY_DIR} DEPENDS COMMENT "Running LLVM regression tests") -endif() +endif() |