Skip to content

Commit ec086f9

Browse files
committed
[lldb][tests] Add ability to run API tests with qemu-user simulator
1 parent 7c581b5 commit ec086f9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lldb/test/API/lit.cfg.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,9 @@ def delete_module_cache(path):
162162
elif lldb_use_simulator == "tvos":
163163
lit_config.note("Running API tests on tvOS simulator")
164164
config.available_features.add("lldb-simulator-tvos")
165+
elif lldb_use_simulator == "qemu-user":
166+
lit_config.note("Running API tests on qemu-user simulator")
167+
config.available_features.add("lldb-simulator-qemu-user")
165168
else:
166169
lit_config.error("Unknown simulator id '{}'".format(lldb_use_simulator))
167170

@@ -268,6 +271,10 @@ def delete_module_cache(path):
268271
"tvos-simulator",
269272
]
270273

274+
if "lldb-simulator-qemu-user" in config.available_features:
275+
dotest_cmd += ["--platform-name",
276+
"qemu-user"]
277+
271278
if is_configured("enabled_plugins"):
272279
for plugin in config.enabled_plugins:
273280
dotest_cmd += ["--enable-plugin", plugin]

0 commit comments

Comments
 (0)