[all-commits] [llvm/llvm-project] 7df4ea: [lldb/test] Automatically find debug servers to test
Pavel Labath via All-commits
all-commits at lists.llvm.org
Thu Feb 11 05:44:27 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 7df4eaaa937332c0617aa665080533966e2c98a0
https://github.com/llvm/llvm-project/commit/7df4eaaa937332c0617aa665080533966e2c98a0
Author: Pavel Labath <pavel at labath.sk>
Date: 2021-02-11 (Thu, 11 Feb 2021)
Changed paths:
M lldb/packages/Python/lldbsuite/test/dotest.py
M lldb/packages/Python/lldbsuite/test/dotest_args.py
M lldb/packages/Python/lldbsuite/test/tools/lldb-server/lldbgdbserverutils.py
M lldb/test/API/CMakeLists.txt
M lldb/test/API/commands/platform/sdk/TestPlatformSDK.py
M lldb/test/API/lit.site.cfg.py.in
M lldb/utils/lldb-dotest/CMakeLists.txt
M lldb/utils/lldb-dotest/lldb-dotest.in
Log Message:
-----------
[lldb/test] Automatically find debug servers to test
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
More information about the All-commits
mailing list