Skip to content

Commit 3c3ed4f

Browse files
committed
[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 as discussed in #101672. Signed-off-by: Med Ismail Bennani <[email protected]>
1 parent 301db3d commit 3c3ed4f

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# REQUIRES: python
2+
# RUN: %lldb -s %s -o exit | FileCheck %s
3+
4+
scripting template list
5+
# CHECK:Available scripted extension templates:
6+
7+
# CHECK: Name: OperatingSystemPythonInterface
8+
# CHECK-NEXT: Language: Python
9+
# CHECK-NEXT: Description: Mock thread state
10+
# CHECK-NEXT: API Usages: None
11+
# CHECK-NEXT: Command Interpreter Usages:
12+
# CHECK-NEXT: settings set target.process.python-os-plugin-path <script-path>
13+
# CHECK-NEXT: settings set process.experimental.os-plugin-reports-all-threads [0/1]
14+
15+
# CHECK: Name: ScriptedPlatformPythonInterface
16+
# CHECK-NEXT: Language: Python
17+
# CHECK-NEXT: Description: Mock platform and interact with its processes.
18+
# CHECK-NEXT: API Usages: None
19+
# CHECK-NEXT: Command Interpreter Usages: None
20+
21+
# CHECK: Name: ScriptedProcessPythonInterface
22+
# CHECK-NEXT: Language: Python
23+
# CHECK-NEXT: Description: Mock process state
24+
# CHECK-NEXT: API Usages:
25+
# CHECK-NEXT: SBAttachInfo.SetScriptedProcessClassName
26+
# CHECK-NEXT: SBAttachInfo.SetScriptedProcessDictionary
27+
# CHECK-NEXT: SBTarget.Attach
28+
# CHECK-NEXT: SBLaunchInfo.SetScriptedProcessClassName
29+
# CHECK-NEXT: SBLaunchInfo.SetScriptedProcessDictionary
30+
# CHECK-NEXT: SBTarget.Launch
31+
# CHECK-NEXT: Command Interpreter Usages:
32+
# CHECK-NEXT: process attach -C <script-name> [-k key -v value ...]
33+
# CHECK-NEXT: process launch -C <script-name> [-k key -v value ...]
34+
35+
# CHECK: Name: ScriptedThreadPlanPythonInterface
36+
# CHECK-NEXT: Language: Python
37+
# CHECK-NEXT: Description: Alter thread stepping logic and stop reason
38+
# CHECK-NEXT: API Usages: SBThread.StepUsingScriptedThreadPlan
39+
# CHECK-NEXT: Command Interpreter Usages: thread step-scripted -C <script-name> [-k key -v value ...]
40+
41+
scripting template list -l lua
42+
# CHECK: Available scripted extension templates: None

0 commit comments

Comments
 (0)