https://github.com/medismailben created https://github.com/llvm/llvm-project/pull/101726
This patch adds a shell test to verify the output of the `scripting template list` command. >From 52c63b228e903e1a4850f8cc172c9a7c929f7e40 Mon Sep 17 00:00:00 2001 From: Med Ismail Bennani <ism...@bennani.ma> Date: Fri, 2 Aug 2024 11:00:13 -0700 Subject: [PATCH] [lldb/test] Add test for the `scripting template list` command This patch adds a shell test to verify the output of the `scripting template list` command. Signed-off-by: Med Ismail Bennani <ism...@bennani.ma> --- .../command-scripting-template-list.test | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 lldb/test/Shell/Commands/command-scripting-template-list.test diff --git a/lldb/test/Shell/Commands/command-scripting-template-list.test b/lldb/test/Shell/Commands/command-scripting-template-list.test new file mode 100644 index 0000000000000..906f012618443 --- /dev/null +++ b/lldb/test/Shell/Commands/command-scripting-template-list.test @@ -0,0 +1,38 @@ +# REQUIRES: python +# RUN: %lldb -s %s -o exit | FileCheck %s + +scripting template list +# CHECK:Available scripted extension templates: +# CHECK-NEXT: Name: OperatingSystemPythonInterface +# CHECK-NEXT: Language: Python +# CHECK-NEXT: Description: Mock thread state +# CHECK-NEXT: API Usages: None +# CHECK-NEXT: Command Interpreter Usages: +# CHECK-NEXT: settings set target.process.python-os-plugin-path <script-path> +# CHECK-NEXT: settings set process.experimental.os-plugin-reports-all-threads [0/1] +# CHECK-NEXT: Name: ScriptedPlatformPythonInterface +# CHECK-NEXT: Language: Python +# CHECK-NEXT: Description: Mock platform and interact with its processes. +# CHECK-NEXT: API Usages: None +# CHECK-NEXT: Command Interpreter Usages: None +# CHECK-NEXT: Name: ScriptedProcessPythonInterface +# CHECK-NEXT: Language: Python +# CHECK-NEXT: Description: Mock process state +# CHECK-NEXT: API Usages: +# CHECK-NEXT: SBAttachInfo.SetScriptedProcessClassName +# CHECK-NEXT: SBAttachInfo.SetScriptedProcessDictionary +# CHECK-NEXT: SBTarget.Attach +# CHECK-NEXT: SBLaunchInfo.SetScriptedProcessClassName +# CHECK-NEXT: SBLaunchInfo.SetScriptedProcessDictionary +# CHECK-NEXT: SBTarget.Launch +# CHECK-NEXT: Command Interpreter Usages: +# CHECK-NEXT: process attach -C <script-name> [-k key -v value ...] +# CHECK-NEXT: process launch -C <script-name> [-k key -v value ...] +# CHECK-NEXT: Name: ScriptedThreadPlanPythonInterface +# CHECK-NEXT: Language: Python +# CHECK-NEXT: Description: Alter thread stepping logic and stop reason +# CHECK-NEXT: API Usages: SBThread.StepUsingScriptedThreadPlan +# CHECK-NEXT: Command Interpreter Usages: thread step-scripted -C <script-name> [-k key -v value ...] + +scripting template list -l lua +# CHECK: Available scripted extension templates: None _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits