[Lldb-commits] [lldb] [LLDB][Accelerators][1/M] Scaffold a basic Mock plugin for testing accelerator flows (PR #186535)

Greg Clayton via lldb-commits lldb-commits at lists.llvm.org
Fri Mar 20 14:00:09 PDT 2026


================
@@ -0,0 +1,69 @@
+"""
+Tests for the lldb-server Mock Accelerator Plugin.
+"""
+
+import os
+
+import lldb
+from lldbsuite.test.decorators import *
+from lldbsuite.test.lldbtest import *
+from lldbsuite.test import lldbutil
+
+"""This will go away once the mock plugin starts creating a target."""
+_PLUGIN_OUTPUT_PATH = "/tmp/accelerator_plugin_test.txt"
+
+
+class MockAcceleratorPluginTestCase(TestBase):
+    NO_DEBUG_INFO_TESTCASE = True
+
+    def clean_expected_output_file(self):
+        try:
+            os.remove(_PLUGIN_OUTPUT_PATH)
----------------
clayborg wrote:

Need to pass in the value of:
```
plugin_output_path = self.getBuildArtifact("accelerator_plugin_test.txt")
```
as an argument to this function

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


More information about the lldb-commits mailing list