-
Notifications
You must be signed in to change notification settings - Fork 2k
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
sys/shell: add support for running a batch of commands from a file #20651
Conversation
0603255
to
fc0b58a
Compare
90287a8
to
c86095e
Compare
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.
Awesome feature.
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.
Please squash. I think it is good. Only think about if you want to keep or drop vfs_file_exists()
. It is not used here anymore, but could still be useful.
Contribution description
This was requested for easier integration testing: It allows to provide a fixed (
native
) binary that is able to execute shell commands provided by a file and terminate when it finished executing the commands (with an error code indicating success).Testing procedure
A simple test application is provided in
tests/sys/shell_scripting
.Issues/PRs references