-
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 ble stubs to FEATURE_BLE lib #14912
Conversation
@rajkan01, thank you for your changes. |
This PR cannot be merged due to conflicts. Please rebase to resolve them. |
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.
Looks good to me apart from a small comment
# Copyright (c) 2020 ARM Limited. All rights reserved. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
add_subdirectory(ble) |
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 don't think we need the ble
subdirectory because this is already in the BLE component.
Maybe we can also flatten files in fakes/ble/source/ into fakes/, to be consistent with other components' stubs?
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 can't move fakes/ble/source/ into fakes as this directory structure try to replicate the actual FEATURE_BLE component source structure
For example:
https://github.com/ARMmbed/mbed-os/blob/master/connectivity/FEATURE_BLE/source/Gap.cpp#L19
I'm fine with the move however, did anyone try compiling the ble fake library? Does it compile for you? |
@paul-szczepanek-arm Good question, I assumed it was used during my review. But now having checked the CMake target mbed-fakes-ble, apparently it's not linked by any tests. Same for mbed-fakes-event-queue. @rajkan01 It's probably worth trying deleting the fakes and check that tests compile? |
I don't think they can compile. ble fakes depends on event queue but that is no longer in the dependencies and also platform headers are now separate so they're missing too. Tests in https://github.com/ARMmbed/mbed-os-experimental-ble-services/ use them and they now fail to compile because of it. I'm working on fixes but obviously I have to wait until you finish moving the files. |
@paul-szczepanek-arm If the fakes are not used by mbed-os, why not move them into mbed-os-experimental-ble-services? |
then no one else could use them |
Disregard my previous comments. The libs compile fine. What is not obvious is that you have to add the headers yourself as otherwise they are not compiled and cmake doesn't tell you that a library it depends on is missing - just blindly tries to compile and fails. I got the tests running just by manually adding the headers libs to the my cmake. |
163d2f8
to
0a8f971
Compare
CI started |
Once CI completes, we might close/open PR to retrigger Travis |
Jenkins CI Test : ✔️ SUCCESSBuild Number: 1 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
This pull request has automatically been marked as stale because it has had no recent activity. @ARMmbed/mbed-os-maintainers, please start CI to get the PR merged. |
I'll reopen in couple of minutes to restart Travis |
Guess we can reopen this PR? |
Previously ble headers are part of mbed-headers-connectivity, this PR moves ble headers into new mbed-headers-ble to make ble stubs to be more self-contained and improves the composition of the library.
Moved all the headers out of mbed-headers-connectivity, and these changes remove that headers lib reference from lorawan and cellular unit tests
Previously ble fakes as part of UNITTESTS/fakes, this PR moves ble fakes to FEATURE_BLE double directory to make ble stubs to be self-contained.
0a8f971
to
fb5b0ed
Compare
Pull request has been modified.
Ci started, labels fixed. |
Jenkins CI Test : ✔️ SUCCESSBuild Number: 2 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
Summary of changes
fixes #14857
Preceding PR #14896
to be self-contained.
Impact of changes
None.
Migration actions required
None
Documentation
To be updated
Pull request type
Test results
Reviewers