[Lldb-commits] [lldb] [lldb][tests] Add ability to run API tests with qemu-user simulator (PR #89765)

via lldb-commits lldb-commits at lists.llvm.org
Tue Apr 23 06:30:20 PDT 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-lldb

Author: None (ita-sc)

<details>
<summary>Changes</summary>



---
Full diff: https://github.com/llvm/llvm-project/pull/89765.diff


1 Files Affected:

- (modified) lldb/test/API/lit.cfg.py (+7) 


``````````diff
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]

``````````

</details>


https://github.com/llvm/llvm-project/pull/89765


More information about the lldb-commits mailing list