-
Notifications
You must be signed in to change notification settings - Fork 170
Code Coverage: Infiniband unit tests #1817
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
base: develop
Are you sure you want to change the base?
Conversation
TEST(IbTest, UpdateGidIndex) TEST(IbTest, GidAddrPrefix) TEST(IbTest, AddrRange) TEST(IbTest, Devftl) TEST(IbTest, EnvAddrFamily) TEST(IbTest, GetGidAddrFamily) TEST(IbTest, ConfiguredGid) TEST(IbTest, LinkLocalGid) TEST(IbTest, ValidGid) TEST(IbTest, RoceVer) |
Actually, all functions used by this test have their corresponding tests in this file I'll add asserts when they are called by this function.
Function will return false if perfix does not match, we are providing dummy value such that it matches hence the assert on true. Also function does most of work while matching so that is targeted as well.
Not needed we just want the pointer to not be null, mask is based on the input.
Yes cause it just does an atomic addition operation over a struct variable.
Thanks I'll check if ipv6 is supported which most probably will be and will modify accordingly.
It just returns which prortocal we use 2 is for AF_INET IPV4 , I think we support ipv4 and ipv6 qill check that.
I don't think so, what you want to configure should be successful unless inputs are bad, and we are already using correct inps in the dummy vals.
Thanks, will do.
Thanks, will do.
If error is returned then Roce is not supported maybe. |
a4ccbf0
to
7ee529e
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.
Some of the tests seem to only validate "happy path" scenarios. We also need to add more tests to cover error paths and other edge cases to make sure the functions don't break. This can be addressed in a separate PR.
We could create another PR for the cases that @rahulvaidya20 has suggested and close this one. |
83ad37b
to
7ee529e
Compare
made changes don't want to lose the file.
Updated the tests keeping in mind the review comments
Added skip logic
7ee529e
to
66a3dd1
Compare
Details
Do not mention proprietary info or link to internal work items in this PR.
Work item: _"Internal"
What were the changes?
Adding tests for infiniband network functions.
Why were the changes made?
For improving the code coverage.
Added 12 tests for uncovered function, the functional code coverage is 97.6% (84/86) from previous 83%(72/86)
How was the outcome achieved?
Technical details behind the work. Explain any publicly-available hardware peculiarities.
Additional Documentation:
What else should the reviewer know?
Approval Checklist
Do not approve until these items are satisfied.