2017-12-15 21:56:22 +08:00
|
|
|
set(ALL_LLDB_TEST_EXECUTABLES)
|
|
|
|
|
New framework for lldb client-server communication tests.
Summary:
This is a new C++ test framework based on Google Test, and one working
example test.
The intention is to replace the existing tests in
packages/Python/lldbsuite/test/tools/lldb-server/ with this suite
and use this framework for all new client server tests.
Reviewers: labath, beanz
Reviewed By: labath, beanz
Subscribers: beanz, emaste, zturner, tberghammer, takuto.ikuta, krytarowski, mgorny, lldb-commits
Differential Revision: https://reviews.llvm.org/D32930
Patch by Jason Majors <jmajors@google.com>
llvm-svn: 304793
2017-06-06 21:40:18 +08:00
|
|
|
function(add_lldb_test_executable test_name)
|
|
|
|
set(EXCLUDE_FROM_ALL ON)
|
|
|
|
add_llvm_executable(${test_name} NO_INSTALL_RPATH ${ARGN})
|
|
|
|
set(outdir ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR})
|
|
|
|
set_output_directory(${test_name} BINARY_DIR ${outdir} LIBRARY_DIR ${outdir})
|
2017-12-15 21:56:22 +08:00
|
|
|
list(APPEND ALL_LLDB_TEST_EXECUTABLES ${test_name})
|
|
|
|
set(ALL_LLDB_TEST_EXECUTABLES ${ALL_LLDB_TEST_EXECUTABLES} PARENT_SCOPE)
|
2019-05-28 17:29:05 +08:00
|
|
|
set_target_properties(${test_name} PROPERTIES FOLDER "lldb tests")
|
New framework for lldb client-server communication tests.
Summary:
This is a new C++ test framework based on Google Test, and one working
example test.
The intention is to replace the existing tests in
packages/Python/lldbsuite/test/tools/lldb-server/ with this suite
and use this framework for all new client server tests.
Reviewers: labath, beanz
Reviewed By: labath, beanz
Subscribers: beanz, emaste, zturner, tberghammer, takuto.ikuta, krytarowski, mgorny, lldb-commits
Differential Revision: https://reviews.llvm.org/D32930
Patch by Jason Majors <jmajors@google.com>
llvm-svn: 304793
2017-06-06 21:40:18 +08:00
|
|
|
endfunction()
|
|
|
|
|
|
|
|
add_lldb_test_executable(thread_inferior inferior/thread_inferior.cpp)
|
2017-12-18 22:31:39 +08:00
|
|
|
add_lldb_test_executable(environment_check inferior/environment_check.cpp)
|
New framework for lldb client-server communication tests.
Summary:
This is a new C++ test framework based on Google Test, and one working
example test.
The intention is to replace the existing tests in
packages/Python/lldbsuite/test/tools/lldb-server/ with this suite
and use this framework for all new client server tests.
Reviewers: labath, beanz
Reviewed By: labath, beanz
Subscribers: beanz, emaste, zturner, tberghammer, takuto.ikuta, krytarowski, mgorny, lldb-commits
Differential Revision: https://reviews.llvm.org/D32930
Patch by Jason Majors <jmajors@google.com>
llvm-svn: 304793
2017-06-06 21:40:18 +08:00
|
|
|
|
2019-09-26 01:12:59 +08:00
|
|
|
if(LLDB_CAN_USE_DEBUGSERVER AND (LLDB_TOOL_DEBUGSERVER_BUILD OR LLDB_USE_SYSTEM_DEBUGSERVER))
|
2019-07-18 21:30:37 +08:00
|
|
|
if(LLDB_USE_SYSTEM_DEBUGSERVER)
|
|
|
|
lldb_find_system_debugserver(debugserver_path)
|
|
|
|
else()
|
|
|
|
set(debugserver_path $<TARGET_FILE:debugserver>)
|
|
|
|
endif()
|
|
|
|
add_definitions(-DLLDB_SERVER="${debugserver_path}" -DLLDB_SERVER_IS_DEBUGSERVER=1)
|
2017-10-18 00:28:28 +08:00
|
|
|
else()
|
2017-12-22 19:09:21 +08:00
|
|
|
add_definitions(-DLLDB_SERVER="$<TARGET_FILE:lldb-server>" -DLLDB_SERVER_IS_DEBUGSERVER=0)
|
2017-10-18 00:28:28 +08:00
|
|
|
endif()
|
|
|
|
|
2017-12-15 21:56:22 +08:00
|
|
|
add_definitions(
|
|
|
|
-DLLDB_TEST_INFERIOR_PATH="${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}"
|
|
|
|
-DLLDB_TEST_INFERIOR_SUFFIX="${CMAKE_EXECUTABLE_SUFFIX}"
|
|
|
|
)
|
New framework for lldb client-server communication tests.
Summary:
This is a new C++ test framework based on Google Test, and one working
example test.
The intention is to replace the existing tests in
packages/Python/lldbsuite/test/tools/lldb-server/ with this suite
and use this framework for all new client server tests.
Reviewers: labath, beanz
Reviewed By: labath, beanz
Subscribers: beanz, emaste, zturner, tberghammer, takuto.ikuta, krytarowski, mgorny, lldb-commits
Differential Revision: https://reviews.llvm.org/D32930
Patch by Jason Majors <jmajors@google.com>
llvm-svn: 304793
2017-06-06 21:40:18 +08:00
|
|
|
add_subdirectory(tests)
|