-
Notifications
You must be signed in to change notification settings - Fork 3k
Add cmake unittest fakes for BLE and events #14515
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
Add cmake unittest fakes for BLE and events #14515
Conversation
- Add a new MbedOS project in mbed os root CMake which can be used along with BUILD_TESTING conditional check for enabling the unittest build - Update UNITTEST CMake for setting the CMake configuration like c, cxx flags etc., - Add if CMAKE_CROSSCOMPILING conditional check wherever target configuration check and toolchain configuration to avoid such configuration gets included for unittest build.
- add every libraries unittest directory into respective CMake which allows to include unittest source into build based on MBED_BUILD_UNITTESTS flag
- Remove the readme as it is a duplicate content of official document https://os.mbed.com/docs/mbed-os/v6.9/debug-test/unit-testing.html
@paul-szczepanek-arm, thank you for your changes. |
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.
The mocks are correct and setting default roles in the absence of configuration for unit test necessary.
Thanks for the changes @paul-szczepanek-arm
efd2180
to
32cd073
Compare
This PR cannot be merged due to conflicts. Please rebase to resolve them. |
300f135
to
8944fc4
Compare
a610d79
to
3ed97b1
Compare
This pull request has automatically been marked as stale because it has had no recent activity. @paul-szczepanek-arm, please carry out any necessary work to get the changes merged. Thank you for your contributions. |
960b2c6
to
10625b3
Compare
replaced by #14737 |
Summary of changes
This adds fakes for unittests for BLE and events. This requires a change in roles configurations for the roles to default to on so that unittests don't need to manually set the configs.
Impact of changes
Migration actions required
Documentation
none
Pull request type
Test results
Reviewers