-
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
Move connectivity netsocket stubs #14873
Conversation
@rajkan01, thank you for your changes. |
4350eb7
to
d44d119
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.
LGTM
CI started |
Jenkins CI Test : ✔️ SUCCESSBuild Number: 1 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
This PR cannot be merged due to conflicts. Please rebase to resolve them. |
Move the connectivity netsocket stubs into the connectivity/netsocket component directory. So we can avoid duplicating the mbed-os source tree in a central UNITTESTS folder.
Update netsocket and cellular unit tests to link with a mbed-stubs-netsocket library that it depends on instead of link with mbed-stubs which is a group of stubs libraries.
- Previously, all netsocket headers made as a part of the mbed-headers-connectivity library. To make it easier to separate all the netsocket headers into the separate mbed-headers-netsocket library and keep them, as part of netsocket stubs CMake. This makes the netsocket stubs more self-contained and improves the composition of the library. - Update cellular, netsocket unit tests to link only with a mbed-headers-netsocket library that it depends on instead of link with mbed-headers which is a group of headers libraries.
Previously all the netsocket stubs headers under mbed-stubs-headers, so this PR move all netsocket stubs headers under netsocket/tests/UNITTESTS/double directory and update CMake to include stubs headers into mbed-stubs-netsocket library to make netsocket stubs to be self-contained.
d44d119
to
ef0e3f9
Compare
@0xc0170 I have re-based this PR, could you review and start the CI |
Ci restarted |
Jenkins CI Test : ✔️ SUCCESSBuild Number: 2 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
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.
I thought the headers was a catch-all lib that included all the headers - otherwise looks good to me.
@@ -28,8 +28,10 @@ target_sources(${TEST_NAME} | |||
target_link_libraries(${TEST_NAME} | |||
PRIVATE | |||
mbed-headers | |||
mbed-headers-netsocket |
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.
this is not included in mbed-headers?
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.
We will fix this part of #14879 issue
Summary of changes
fixes #14839
mbed-stubs-headers
, so this PR move all netsocket stubs headers undernetsocket/tests/UNITTESTS/double
directory and update CMake to include those headers as part of mbed-stubs-netsocketImpact of changes
None.
Migration actions required
None
Documentation
To be updated
Pull request type
Test results
Reviewers