-
Notifications
You must be signed in to change notification settings - Fork 12k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[lldb/test] Add test for the scripting template list
command
#101726
Merged
medismailben
merged 1 commit into
llvm:main
from
medismailben:scripting-template-list-test
Aug 2, 2024
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you get the same output regardless of whether you're building with or without lua support? If so then this is fine, otherwise this would have to go into a separate test that contains
REQUIRES: lua
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I tested locally without Lua support.