scripts: add armv7r5f-zynqmp-qemu-test.sh#1583
Conversation
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request introduces a dedicated test script for the Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request introduces a new test script for running Phoenix-RTOS on QEMU with GDB enabled. The new script is a near-exact copy of an existing script, which introduces significant code duplication. My review provides a detailed suggestion on how to refactor the scripts to eliminate this duplication, improving long-term maintainability.
5918134 to
d9aaad4
Compare
This allows scripts with slightly different configuration to source this file and extend, reuse or modify QEMU_ARGS without duplicating the basic configuration. JIRA: CI-652
d9aaad4 to
ae9b7d7
Compare
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request refactors the armv7r5f-zynqmp-qemu.sh script to be sourceable, allowing its QEMU arguments to be reused, and introduces a new armv7r5f-zynqmp-qemu-test.sh script which leverages this to add a GDB server for testing. The refactoring is well-executed. My feedback focuses on improving the robustness of the scripts by adding error handling for the source command and ensuring file paths in QEMU arguments can handle spaces correctly.
ae9b7d7 to
9fc1e75
Compare
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request introduces a new test script armv7r5f-zynqmp-qemu-test.sh which enables a GDB server for debugging, and refactors the existing armv7r5f-zynqmp-qemu.sh script to be sourceable, improving modularity and reuse. The changes are well-structured and improve the scripting infrastructure. I have one suggestion to make the GDB port in the new test script configurable for better flexibility.
Base script extended with GDB TCP port exposure for uploading test binaries to the image. On dummyfs targets the most convenient way of providing test binaries is dynamically loading them before system startup. JIRA: CI-652
9fc1e75 to
1acbe36
Compare
mateusz-bloch
left a comment
There was a problem hiding this comment.
LGTM, avoiding script duplication is good idea, and we could consider apply this to other test scripts.
Not directly related to this PR, just something that came to mind, if want to handle adding qemu arguments that are already defined in base script. Does qemu follow someting like last argument is only valid, or would we need to explicitly remove the original options from the base script.
Probably depends on the specific argument |
Description
Motivation and Context
Needed for phoenix-rtos/phoenix-rtos-tests#465
Types of changes
How Has This Been Tested?
)
Checklist:
Special treatment