Skip to content

[lldb][tests] Add ability to run API tests with qemu-user simulator #89765

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 6, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions lldb/test/API/lit.cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,9 @@ def delete_module_cache(path):
elif lldb_use_simulator == "tvos":
lit_config.note("Running API tests on tvOS simulator")
config.available_features.add("lldb-simulator-tvos")
elif lldb_use_simulator == "qemu-user":
lit_config.note("Running API tests on qemu-user simulator")
config.available_features.add("lldb-simulator-qemu-user")
else:
lit_config.error("Unknown simulator id '{}'".format(lldb_use_simulator))

Expand Down Expand Up @@ -285,6 +288,9 @@ def delete_module_cache(path):
"tvos-simulator",
]

if "lldb-simulator-qemu-user" in config.available_features:
dotest_cmd += ["--platform-name", "qemu-user"]

if is_configured("enabled_plugins"):
for plugin in config.enabled_plugins:
dotest_cmd += ["--enable-plugin", plugin]
Expand Down
Loading