tests/riotboot: add automatic test#11707
Conversation
fjmolinas
left a comment
There was a problem hiding this comment.
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
|
fjmolinas
left a comment
There was a problem hiding this comment.
@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
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? |
fjmolinas
left a comment
There was a problem hiding this comment.
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 testIssues/PRs references
Needs
#11697and#11690.