https://github.com/ita-sc created https://github.com/llvm/llvm-project/pull/89765
None >From ec086f99bb6cb48cae02f77e621a51cb29c751d1 Mon Sep 17 00:00:00 2001 From: Ivan Tetyushkin <ivan.tetyush...@syntacore.com> Date: Thu, 11 Apr 2024 12:22:19 +0300 Subject: [PATCH] [lldb][tests] Add ability to run API tests with qemu-user simulator --- lldb/test/API/lit.cfg.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lldb/test/API/lit.cfg.py b/lldb/test/API/lit.cfg.py index 9d6775917e1370..5e5fc750f529d5 100644 --- a/lldb/test/API/lit.cfg.py +++ b/lldb/test/API/lit.cfg.py @@ -162,6 +162,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)) @@ -268,6 +271,10 @@ 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] _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits