Skip to content

Move connectivity lora stubs #14842

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

Merged
merged 6 commits into from
Jul 7, 2021
Merged

Move connectivity lora stubs #14842

merged 6 commits into from
Jul 7, 2021

Conversation

rajkan01
Copy link
Contributor

@rajkan01 rajkan01 commented Jun 29, 2021

Summary of changes

fixes #14836

  • Moved the connectivity lorawan into the connectivity/lorawan component directory and added CMake for creating a new mbed-stubs-lorawan stubs library, previously lorawan stubs sources part of mbed-stubs-connectivity lib
  • Updated lorawan unit tests that depend on lorawan stubs with mbed-stubs-lorawan a library
  • Previously all lorawan headers made as a part of the mbed-headers-connectivity library. To make it easier to separate all the lorawan headers into the separate mbed-headers-lorawan library and keep them as part of lorawan stub CMake. This makes the lorawan stubs more self-contained and improves the composition of the library.
  • Updated lorawan unit tests that depend on lorawan headers to link with the newly added mbed-headers-lorawan library
  • Previously the connectivity lorawan stub library depended on mbed-headers, which is a collection of all available headers in mbed-os. To make it easier to separate the library, only depend on the headers it uses.
  • Previously all the stubs headers under mbed-stubs-headers, so this PR move all lorawan stubs headers under lorawan/tests/UNITTESTS/double directory and updated CMake to include those headers as part of mbed-stubs-lorawan library to make lorawan stubs to be self-contained
  • Updated lorawan unit tests that depend on lorawan stubs headers to link with the newly added mbed-stubs-lorawan-headers library

Impact of changes

None.

Migration actions required

None

Documentation

To be updated


Pull request type

[x] Patch update (Bug fix / Target update / Docs update / Test update / Refactor)
[] Feature update (New feature / Functionality change / New API)
[] Major update (Breaking change E.g. Return code change / API behaviour change)

Test results

[] No Tests required for this change (E.g docs only update)
[x] Covered by existing mbed-os tests (Greentea or Unittest)
[] Tests / results supplied as part of this PR

Reviewers


@rajkan01 rajkan01 force-pushed the move_connectivity_lora_stubs branch from 93a6ffb to a62b978 Compare June 29, 2021 15:09
@ciarmcom ciarmcom added the release-type: patch Indentifies a PR as containing just a patch label Jun 29, 2021
@ciarmcom ciarmcom requested a review from a team June 29, 2021 15:30
@ciarmcom
Copy link
Member

@rajkan01, thank you for your changes.
@ARMmbed/mbed-os-maintainers please review.

@mergify
Copy link

mergify bot commented Jun 30, 2021

This PR cannot be merged due to conflicts. Please rebase to resolve them.

rajkan01 added 6 commits July 2, 2021 05:06
Move the connectivity lorawan stubs into the connectivity/lorawan
component directory. So we can avoid duplicating the mbed-os source
tree in a central UNITTESTS folder.
Update lorawan unit test to link only with a mbed-stubs-lorawan
library that it depends on instead of link with mbed-stubs
which is a group of stubs libraries.
Previously, all lorawan headers made as a part of the
mbed-headers-connectivity library. To make it easier to separate all
the lorawan headers into the separate mbed-headers-lorawan library
and keep them, as part of lorawan stubs CMake. This makes the lorawan
stubs more self-contained and improves the composition of the library.
Update lorawan unit test to link only with a mbed-headers-lorawan
library that it depends on instead of link with mbed-headers
which is a group of headers libraries.
Previously the connectivity lorawan stub library depended on
`mbed-headers`, which is a collection of all available headers
in mbed-os. To make it easier to separate the library, only depend
on the headers we're using.
…e dir

Previously all the lorawan stubs headers under mbed-stubs-headers,
so this PR move all lorawan stubs headers under
cellular/tests/UNITTESTS/double directory and update CMake to include
stubs headers into mbed-stubs-lorawan library to make lorawan stubs to be self-contained
@rajkan01 rajkan01 force-pushed the move_connectivity_lora_stubs branch from a62b978 to 46d4247 Compare July 2, 2021 12:12
@rajkan01 rajkan01 requested a review from LDong-Arm July 2, 2021 12:13
@rajkan01 rajkan01 requested a review from LDong-Arm July 5, 2021 15:56
Copy link
Contributor

@LDong-Arm LDong-Arm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mergify mergify bot added needs: CI and removed needs: work labels Jul 5, 2021
@rajkan01
Copy link
Contributor Author

rajkan01 commented Jul 6, 2021

@0xc0170 Could you review and start the CI for this PR Thanks

Copy link
Contributor

@rwalton-arm rwalton-arm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@0xc0170
Copy link
Contributor

0xc0170 commented Jul 6, 2021

CI started

@mbed-ci
Copy link

mbed-ci commented Jul 6, 2021

Jenkins CI Test : ✔️ SUCCESS

Build Number: 1 | 🔒 Jenkins CI Job | 🌐 Logs & Artifacts

CLICK for Detailed Summary

jobs Status
jenkins-ci/mbed-os-ci_unittests ✔️

@0xc0170 0xc0170 merged commit 44d5416 into master Jul 7, 2021
@mergify mergify bot removed the ready for merge label Jul 7, 2021
@mbedmain mbedmain added release-version: 6.13.0 Release-pending and removed release-type: patch Indentifies a PR as containing just a patch Release-pending labels Jul 14, 2021
@0xc0170 0xc0170 deleted the move_connectivity_lora_stubs branch October 5, 2021 08:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Move lorawan stubs to Connectivity/lorawan directory
7 participants