[Lldb-commits] [PATCH] D31357: Support Unit Testing debugserver
Chris Bieneman via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Fri Mar 24 15:00:06 PDT 2017
beanz created this revision.
Herald added a subscriber: mgorny.
This patch refactors the CMake build system's support for building debugserver to allow us to build the majority of debugserver's sources into the debugserverCommon library which can then be reused by unit tests.
The first unit test I've written tests debug server's ability to accept incoming connections from LLDB. The test forks the process, and one side creates a listening socket using debugserver's socket API, the other side creates a transmitting socket using LLDB's TCPSocket class.
I have no clue where to even start getting this connected into the LLDB Xcode project, so for now these tests are CMake-only.
https://reviews.llvm.org/D31357
Files:
tools/debugserver/source/CMakeLists.txt
tools/debugserver/source/MacOSX/CMakeLists.txt
unittests/CMakeLists.txt
unittests/debugserver/CMakeLists.txt
unittests/debugserver/RNBSocketTest.cpp
unittests/debugserver/debugserver_LogCallback.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31357.93013.patch
Type: text/x-patch
Size: 9809 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20170324/dd1c8485/attachment.bin>
More information about the lldb-commits
mailing list