-
Notifications
You must be signed in to change notification settings - Fork 3k
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 for nsapi_dns #11755
Unittests for nsapi_dns #11755
Conversation
@michalpasztamobica, thank you for your changes. |
bad4233
to
4d023a6
Compare
We need #11735 to go in first, otherwise tests will not compile. |
4d023a6
to
cfc3ec3
Compare
cfc3ec3
to
ad70b7b
Compare
I rebased the code on top of the preceding PR. I checked that it built and ran fine for me locally. I think this is good to go, @0xc0170 . |
CI started |
Test run: FAILEDSummary: 1 of 1 test jobs failed Failed test jobs:
|
This is valgrind failure, sorry I forgot to run it. I will investigate and fix. |
Valgrind's report was valid. It turned out we used |
@0xc0170 , would you restart the CI, please? |
CI started |
Early results - unittest failed , CI will report soon |
Test run: FAILEDSummary: 1 of 4 test jobs failed Failed test jobs:
|
00543db
to
f9237ab
Compare
I managed to reproduce after a rebase, so some other commits must have changed the compilation requirements. @0xc0170, can we try the CI again, please? |
Ci restarted |
Test run: FAILEDSummary: 1 of 4 test jobs failed Failed test jobs:
|
f9237ab
to
4e5ea38
Compare
Jenkins runs valgrind with |
CI restarted |
Test run: FAILEDSummary: 1 of 4 test jobs failed Failed test jobs:
|
@0xc0170 , this PR sure has no luck with CI... but this time the failure seems unrelated to the code:
Would you take a quick look? |
There was internal java failure, restarted |
Test run: FAILEDSummary: 1 of 4 test jobs failed Failed test jobs:
|
Still an internal error, but seems like a different one?
|
I could find again java error, restarted |
Test run: SUCCESSSummary: 11 of 11 test jobs passed |
This is sitting on top of #11735 currently targeting 6.0 |
Description (required)
Cover the
nsapi_dns.h/cpp
API with unittests.Summary of change (What the change is for and why)
nsapi_dns
is the last public API not covered with unittests (unlike all other public netsocket APIs).We are not aiming at 100% coverage, as there are some "convenience" function which basically cast between different types of interfaces. Also - we have good greentea tests in use and there is little point to duplicate them here.
Instead, these tests focus on:
getaddrinfo
interface (see PR Add Getaddrinfo interface for multiple DNS adresses #11653). Once it gets merged, the scenarios can use the new interface immediately.During the development of these tests some small adjustments had to be made and are submitted in a separate PR #11735.
Documentation (Details of any document updates required)
No need for additional documentation.
Pull request type (required)
Test results (required)
Reviewers (optional)
@AnttiKauppila
@tymoteuszblochmobica