-
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
tests/periph_hwrng: add automated python test #11448
Conversation
Add the automated test for 'periph_hwrng'. It only checks that numbers are returned, not their value.
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.
@cladmi tested and passing for:
- nucleo-l073rg
- nucleo-l476rg
- pba-d-01-kw2x
Although I would like all the boards to be tested, I think this PR aims at adding a basic test. If some boards don't pass the test the problem would be with that board/cpu implementation. So ACK
NOTE: I think a porpper test on these modules will mean implementing (NIST) Statistical Test Suite (STS) or something like that, but then maybe not all hwrng pass those test suites, not because they are not properly implemented but because they aren't random enough.
I do not know why, but I missed that the |
@fjmolinas Agreed, no need to run the test on all boards, it was to at least try a few of them and the test may be adapted later in case we find an issue with one specific board.
For the It could be more in a specific test like |
The test output for @fjmolinas I let you hit merge if you accept my last change. |
@cladmi all good go! |
Thank you for the review. |
Contribution description
Add the automated test for 'periph_hwrng'. It only checks that numbers
are returned, not their value.
I did not enable 'CI: run tests' as none of the CI boards have 'hwrng' and native tests are run anyway.
Testing procedure
Run the test on one of the supported boards:
Successfull test:
Expected output
BOARD=board make -C tests/periph_hwrng flash test
Failure outputBOARD=frdm-k64f make -C tests/periph_hwrng flash test
Issues/PRs references
Written while working on: #11447 running release tests