summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Bieneman <beanz@apple.com>2016-10-12 20:26:13 +0000
committerChris Bieneman <beanz@apple.com>2016-10-12 20:26:13 +0000
commite549894b7d57131940bc0964d681be0eb1990104 (patch)
treeeb56d25e5ff8d1115a84751883b4d7f43463b06a
parent47df0196b834ecd1d94acf6057b783a4b5553fc2 (diff)
downloadbcm5719-llvm-e549894b7d57131940bc0964d681be0eb1990104.tar.gz
bcm5719-llvm-e549894b7d57131940bc0964d681be0eb1990104.zip
[CMake] Cleanup check-lldb targets
Summary: This patch adds the following fixes to the check-lldb targets: * Adds missing dependencies on lldb tools so they get built before tests execute * Adds Ninja USES_TERMINAL to the target so that the output streams to stdout as it executes * Uses a generator expression to find the lldb executable, this is more robust than constructing the path manually Reviewers: tfiala, zturner Subscribers: mgorny, lldb-commits Differential Revision: https://reviews.llvm.org/D25490 llvm-svn: 284046
-rw-r--r--lldb/test/CMakeLists.txt19
1 files changed, 17 insertions, 2 deletions
diff --git a/lldb/test/CMakeLists.txt b/lldb/test/CMakeLists.txt
index 5c34932b1f4..89b1c0ed857 100644
--- a/lldb/test/CMakeLists.txt
+++ b/lldb/test/CMakeLists.txt
@@ -8,9 +8,25 @@ function(add_python_test_target name test_script args comment)
add_custom_target(${name}
COMMAND ${PYTHON_TEST_COMMAND} ${ARG_DEFAULT_ARGS}
COMMENT "${comment}"
+ DEPENDS ${LLDB_TEST_DEPS}
+ USES_TERMINAL
)
endfunction()
+set(LLDB_TEST_DEPS lldb)
+
+if(TARGET lldb-server)
+ list(APPEND LLDB_TEST_DEPS lldb-server)
+endif()
+
+if(TARGET debugserver)
+ list(APPEND LLDB_TEST_DEPS debugserver)
+endif()
+
+if(TARGET lldb-mi)
+ list(APPEND LLDB_TEST_DEPS lldb-mi)
+endif()
+
if ("${LLDB_TEST_COMPILER}" STREQUAL "")
string(REGEX REPLACE ".*ccache\ +" "" LLDB_TEST_COMPILER ${CMAKE_C_COMPILER} ${CMAKE_C_COMPILER_ARG1})
endif()
@@ -34,8 +50,7 @@ set(LLDB_TEST_USER_ARGS
set(LLDB_TEST_COMMON_ARGS
--arch=${LLDB_TEST_ARCH}
- --executable
- ${CMAKE_BINARY_DIR}/bin/lldb${CMAKE_EXECUTABLE_SUFFIX}
+ --executable $<TARGET_FILE:lldb>
-s
${CMAKE_BINARY_DIR}/lldb-test-traces
-S nm
OpenPOWER on IntegriCloud