llvm-project/lldb/unittests
Chris Bieneman efd065e6a0 Support Unit Testing debugserver
Summary:
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.

Reviewers: zturner, labath, jasonmolenda

Subscribers: lldb-commits, mgorny

Differential Revision: https://reviews.llvm.org/D31357

llvm-svn: 300111
2017-04-12 21:56:29 +00:00
..
Breakpoint Move classes from Core -> Utility. 2017-02-02 21:39:50 +00:00
Core Fix build failure in unit test. 2017-04-06 21:57:39 +00:00
Editline Move StringList from Core -> Utility. 2017-03-21 18:25:04 +00:00
Expression [Windows] Remove the #include <eh.h> hack. 2017-03-03 20:21:59 +00:00
Host Update unittests/Host/SocketTest.cpp to also use the new 2017-04-06 03:16:44 +00:00
Interpreter Resubmit "Delete the remainder of platform specific code in FileSpec." 2017-03-22 17:33:23 +00:00
Language Add more tests for ExtractContextAndIdentifier 2017-04-06 23:12:43 +00:00
ObjectFile Move DataBuffer / DataExtractor and friends from Core -> Utility. 2017-03-04 01:30:05 +00:00
Platform [CMake] Update unit tests with accurate dependencies 2017-02-01 22:17:00 +00:00
Process Verify memory address range validity in GDBRemoteCommunicationClient 2017-03-31 18:00:48 +00:00
ScriptInterpreter [CMake] Update unit tests with accurate dependencies 2017-02-01 22:17:00 +00:00
Signals Make LLDB skip server-client roundtrip for signals that don't require any actions 2017-03-07 21:34:40 +00:00
Symbol [CMake] Update unit tests with accurate dependencies 2017-02-01 22:17:00 +00:00
SymbolFile Move FileSpec from Host -> Utility. 2017-03-22 18:40:07 +00:00
Target Add format_provider for the MemoryRegionInfo::OptionalBool enum 2017-02-22 10:37:57 +00:00
UnwindAssembly [CMake] Update unit tests with accurate dependencies 2017-02-01 22:17:00 +00:00
Utility Resubmit "Delete the remainder of platform specific code in FileSpec." 2017-03-22 17:33:23 +00:00
debugserver Support Unit Testing debugserver 2017-04-12 21:56:29 +00:00
CMakeLists.txt Support Unit Testing debugserver 2017-04-12 21:56:29 +00:00
gtest_common.h [Windows] Remove the #include <eh.h> hack. 2017-03-03 20:21:59 +00:00