-
Notifications
You must be signed in to change notification settings - Fork 2.1k
unittests/tests-rpl_srh: various improvements #10300
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
unittests/tests-rpl_srh: various improvements #10300
Conversation
Things like this already lead to problems in other unittests, so move them out of the stack.
Also make constants static const ;-).
Ping @cgundogan? |
I'm not an expert in RPL :( |
You don't have to be an expert on RPL to read the API documentation of that function and see if the tests test all cases ;-). |
Oh, this information might also be helpful to understand the unittests :-) https://tools.ietf.org/html/rfc6554#section-3 |
|
tested on |
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.
ACK
Thanks for the review! :-) |
Contribution description
During my refactoring work of IPv6 reception I also improved upon the unittests for the RPL SRH handler, but I didn't find any other way to include them (also their usefulness, except for compile tests [but there also
tests/gnrc_ipv6_ext
can be used] are little), so here they are in a separate PR.tests-gnrc_rpl_srh
Testing procedure
Run
tests/unittests
either as a whole, or justtests-gnrc_rpl_srh
.Issues/PRs references
Related to my refactoring work (see project, but not a dependency of it nor dependent on any PRs in it (but helpful for testing #10227 ;-)).