Skip to content

Commit 8eec3d7

Browse files
authored
[lldb][tests] Add ability to run API tests with qemu-user simulator (#89765)
1 parent 6e57326 commit 8eec3d7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lldb/test/API/lit.cfg.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,9 @@ def delete_module_cache(path):
179179
elif lldb_use_simulator == "tvos":
180180
lit_config.note("Running API tests on tvOS simulator")
181181
config.available_features.add("lldb-simulator-tvos")
182+
elif lldb_use_simulator == "qemu-user":
183+
lit_config.note("Running API tests on qemu-user simulator")
184+
config.available_features.add("lldb-simulator-qemu-user")
182185
else:
183186
lit_config.error("Unknown simulator id '{}'".format(lldb_use_simulator))
184187

@@ -285,6 +288,9 @@ def delete_module_cache(path):
285288
"tvos-simulator",
286289
]
287290

291+
if "lldb-simulator-qemu-user" in config.available_features:
292+
dotest_cmd += ["--platform-name", "qemu-user"]
293+
288294
if is_configured("enabled_plugins"):
289295
for plugin in config.enabled_plugins:
290296
dotest_cmd += ["--enable-plugin", plugin]

0 commit comments

Comments
 (0)