llvm-project/lldb/test
Pavel Labath 1902ffd9a4 [lldb] Generic base for testing gdb-remote behavior
Summary:
Adds new utilities that make it easier to write test cases for lldb acting as a client over a gdb-remote connection.

- A GDBRemoteTestBase class that starts a mock GDB server and provides an easy way to check client packets
- A MockGDBServer that, via MockGDBServerResponder, can be made to issue server responses that test client behavior.
- Utility functions for handling common data encoding/decoding
- Utility functions for creating dummy targets from YAML files

----

Split from the review at https://reviews.llvm.org/D42145, which was a new feature that necessitated the new testing capabilities.

Reviewers: clayborg, labath

Reviewed By: clayborg, labath

Subscribers: hintonda, davide, jingham, krytarowski, mgorny, lldb-commits

Differential Revision: https://reviews.llvm.org/D42195
Patch by Owen Shaw <llvm@owenpshaw.net>

llvm-svn: 323636
2018-01-29 10:02:40 +00:00
..
CMakeLists.txt [lldb] Generic base for testing gdb-remote behavior 2018-01-29 10:02:40 +00:00
dotest.py Add check for __main__ in dotest.py to ensure problems with multiprocessing on some Windows machines. 2015-10-28 19:59:18 +00:00
testcases Add a symbolic link from the test directory to the actual - elsewhere located - path that contains the test cases - and teach the test suite driver to resolve paths that contain symbolic links to test cases 2015-12-16 01:15:49 +00:00
use_lldb_suite.py *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00