unittests/tests-rpl_srh: various improvements#10300
Merged
jia200x merged 6 commits intoRIOT-OS:masterfrom Nov 23, 2018
Merged
Conversation
Things like this already lead to problems in other unittests, so move them out of the stack.
Also make constants static const ;-).
Member
Author
|
Ping @cgundogan? |
Member
|
I'm not an expert in RPL :( |
Member
Author
|
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 ;-). |
jia200x
reviewed
Nov 22, 2018
Member
Author
|
Oh, this information might also be helpful to understand the unittests :-) https://tools.ietf.org/html/rfc6554#section-3 |
jia200x
reviewed
Nov 23, 2018
jia200x
reviewed
Nov 23, 2018
Member
|
|
Member
|
tested on |
Member
Author
|
Thanks for the review! :-) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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_extcan be used] are little), so here they are in a separate PR.tests-gnrc_rpl_srhTesting procedure
Run
tests/unittestseither 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 ;-)).