llvm-project/lldb/packages/Python/lldbsuite/test
Pavel Labath 3ca7b2d03c Reapply "[lldb/test] Automatically find debug servers to test"
This reapplies 7df4eaaa93/D96202, which was reverted due to issues on
windows. These were caused by problems in the computation of the liblldb
directory, which was fixed by D96779.

The original commit message was:
Our test configuration logic assumes that the tests can be run either
with debugserver or with lldb-server. This is not entirely correct,
since lldb server has two "personalities" (platform server and debug
server) and debugserver is only a replacement for the latter.

A consequence of this is that it's not possible to test the platform
behavior of lldb-server on macos, as it is not possible to get a hold of
the lldb-server binary.

One solution to that would be to duplicate the server configuration
logic to be able to specify both executables. However, that seems
excessively redundant.

A well-behaved lldb should be able to find the debug server on its own,
and testing lldb with a different (lldb-|debug)server does not seem very
useful (even in the out-of-tree debugserver setup, we copy the server
into the build tree to make it appear "real").

Therefore, this patch deletes the configuration altogether and changes
the low-level server retrieval functions to be able to both lldb-server
and debugserver paths. They do this by consulting the "support
executable" directory of the lldb under test.

Differential Revision: https://reviews.llvm.org/D96202
2021-02-21 20:47:47 +01:00
..
builders [lldb] Use `foo is None` instead of `not foo` in darwin.py 2021-01-28 20:03:44 -08:00
make [lldb] Add -Wl,-rpath to make tests run with fresh built libc++ 2021-01-24 20:21:57 +00:00
test_runner [lldb] NFC: Fix trivial typo in comments, documents, and messages 2020-04-07 01:06:16 +09:00
tools Reapply "[lldb/test] Automatically find debug servers to test" 2021-02-21 20:47:47 +01:00
README-TestSuite
__init__.py
bench.py [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
concurrent_base.py [lldb][NFC] Remove 'from __future__ import print_function' from all tests that don't actually call 'print()' 2019-12-13 12:23:04 +01:00
configuration.py [lldb] Remove LLDB session dir and just store test traces in the respective test build directory 2020-12-04 11:43:10 +01:00
darwin_log.py [lldb][NFC] Remove unused imports in python tests 2019-08-02 08:06:22 +00:00
decorators.py Revert "Make sure the interpreter module was loaded before making checks against it" 2021-02-21 10:38:25 -08:00
dotest.py Reapply "[lldb/test] Automatically find debug servers to test" 2021-02-21 20:47:47 +01:00
dotest_args.py Reapply "[lldb/test] Automatically find debug servers to test" 2021-02-21 20:47:47 +01:00
lldb_pylint_helper.py Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
lldbbench.py
lldbdwarf.py
lldbinline.py [lldb] lldbinline and lldbtest gardening (NFC) 2020-07-14 10:41:45 -07:00
lldbpexpect.py [lldb] Let TestPExpectTest test the right test class 2021-02-12 09:56:43 +01:00
lldbplatform.py [lldb] Add Apple simulator platforms to lldbplatform.py 2020-11-05 15:34:42 +01:00
lldbplatformutil.py [lldb/test] Ensure launched processes are ready to be attached 2021-01-14 12:07:04 +01:00
lldbtest.py [lldb/test] Ensure launched processes are ready to be attached 2021-01-14 12:07:04 +01:00
lldbtest_config.py [dotest] Add the ability to set environment variables for the inferior. 2019-06-26 16:12:08 +00:00
lldbutil.py [lldb] Move Xcode SDK helper functions into lldbutil 2020-08-19 13:30:27 -07:00
test_categories.py [lldb/test] Replace ad-hoc server test choice with test categories 2020-12-10 16:21:28 +01:00
test_result.py [lldb] [test] Rename '.categories' to 'categories' 2020-11-10 12:02:38 +01:00