-
Notifications
You must be signed in to change notification settings - Fork 2.1k
tests/riotboot: add automatic test #11707
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.
Tested locally, it works after slot1 is compiled separetly (see comment below). Sticking to the changes of this PR related to the tests it looks good, just need to address my single comment. Commits might need to be fixed by there is still much noise from the other PR's, so let's wait for them.
837bec4
to
fbdfffe
Compare
b31accb
to
55bf6af
Compare
55bf6af
to
1d73c87
Compare
@kaspar030 please rebase so I can give a fresh round of testing on monday. |
fee339f
to
dc33043
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.
@kaspar030 tested locally and it is working fine, please squash so we can re-lunch the ci, and I will check the output.
This enables "make test" and "make test-murdock" to rely on both images being present and thus execute without re-compiling.
dc33043
to
aaa187e
Compare
@kaspar030 how can I view the same outputs for the new build? |
I've triggered a re-build with "disable test cache", that should produce the output. |
@kaspar030 out of this PR topic, but does the CI progression bar take into account the time taken to run the tests? |
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.
I was able to tests locally and verified it ran correctly in the CI on hardware. I think the tests scripts could all be implemented in python, but I leave this for another PR. ACK!
Thanks for reviewing! |
Contribution description
This PR adds a script that automatically tests riotboot's image selection.
It expects slot0, APP_VER=0 be pre-flashed on the device (and verifies that). This is what happens when "make flash" is run, and also happens on the CI.
A following "make test" will:
Testing procedure
make -Ctests/riotboot flash test
Issues/PRs references
Needs
#11697and#11690.