-
Notifications
You must be signed in to change notification settings - Fork 9
Added explicit way to forward self app name to Ragger/Speculos if it is not readable in the elf file #263
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
Conversation
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.
Pull request overview
This PR adds support for explicitly specifying the application name when it cannot be read from the ELF file, particularly useful for Rust applications in swap tests using the modern test framework.
- Added a new optional configuration parameter
SELF_APP_NAMEto explicitly set the library name - Modified the Speculos argument preparation logic to prepend the custom app name to the library path when configured
- Updated the changelog to document this new feature
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| src/ragger/conftest/configuration.py | Added SELF_APP_NAME optional configuration parameter to the OptionalOptions dataclass with a default value of None |
| src/ragger/conftest/base_conftest.py | Updated prepare_speculos_args to use SELF_APP_NAME when building the library load argument for Speculos |
| CHANGELOG.md | Documented the new feature in version 1.42.0 release notes |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #263 +/- ##
==========================================
- Coverage 77.94% 77.94% -0.01%
==========================================
Files 36 36
Lines 2145 2149 +4
==========================================
+ Hits 1672 1675 +3
- Misses 473 474 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
fc82f31 to
7649dda
Compare
…is not readable in the elf file
7649dda to
d7c2aaf
Compare
|



Used notably but the swap tests of rust applications on modern test framework