-
Notifications
You must be signed in to change notification settings - Fork 12k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[lldb/test] Add test for the
scripting template list
command (#101726)
- Loading branch information
1 parent
bba491f
commit 737c387
Showing
1 changed file
with
42 additions
and
0 deletions.
There are no files selected for viewing
42 changes: 42 additions & 0 deletions
42
lldb/test/Shell/Commands/command-scripting-template-list.test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# REQUIRES: python | ||
# RUN: %lldb -s %s -o exit | FileCheck %s | ||
|
||
scripting template list | ||
# CHECK:Available scripted extension templates: | ||
|
||
# CHECK: 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: 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: 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: 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 |