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})
|
|
|
|
endfunction()
|
|
|
|
|
|
|
|
add_lldb_test_executable(thread_inferior inferior/thread_inferior.cpp)
|
|
|
|
|
2017-10-18 00:28:28 +08:00
|
|
|
if (CMAKE_SYSTEM_NAME MATCHES "Darwin")
|
|
|
|
add_definitions(-DLLDB_SERVER="$<TARGET_FILE:debugserver>")
|
|
|
|
else()
|
|
|
|
add_definitions(-DLLDB_SERVER="$<TARGET_FILE:lldb-server>")
|
|
|
|
endif()
|
|
|
|
|
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_definitions(-DTHREAD_INFERIOR="${CMAKE_CURRENT_BINARY_DIR}/thread_inferior")
|
|
|
|
add_subdirectory(tests)
|
|
|
|
add_dependencies(LLDBServerTests thread_inferior)
|