-
Notifications
You must be signed in to change notification settings - Fork 3k
Cordio Documentation: Explain how to tests and what tools are available. #7417
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
Conversation
@ARMmbed/mbed-docs As @AnotherButler is OoO this week, can anyone else review this please |
@MelindaWeed wanna meet something that isn't Mbed Cloud? |
So long as it doesn't bite. Anything I should know before review, or is this standard procedure? |
Take no prisoners? |
a02b666
to
7a8cc02
Compare
I don't have push access. Could I be granted it temporarily, or should I fork? |
What do you need push access for @MelindaWeed ? Do you have reviewing rights? |
@MelindaWeed I made sure you can push on my fork this pr branch. |
Please do not merge until docs gives the thumbs-up. Working on it now. @donatieng, I'm standing in for Amanda for docs review since she's OoO. |
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'd like to take a look at the whole file, if I may.
@@ -489,6 +489,26 @@ ble::vendor::cordio::CordioHCIDriver& ble_cordio_get_hci_driver() { | |||
} | |||
``` | |||
|
|||
### Tests | |||
|
|||
Greentea tests are bundled with the cordio port of BLE API to ensure that the transport driver works as expected as well as validate the cordio stack initialization. You can run them with the following command: |
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.
Greentea tests are bundled with the Cordio port of the BLE API to make sure the transport driver works as expected, as well as to validate Cordio stack initialization. You can run them with the following command:
We don't typically use language that implies things might not work (as per the style guide). I'm not crazy about "works as expected."
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.
Also, if the bundling is something Arm does, Arm should be the active subject of the sentence. Or "we."
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.
Cordio capitalized throughout.
mbed test -t <toolchain> -m <target> -n mbed-os-features-feature_ble-targets-target_cordio-tests-cordio_hci-driver,mbed-os-features-feature_ble-targets-target_cordio-tests-cordio_hci-transport | ||
``` | ||
|
||
* mbed-os-features-feature_ble-targets-target_cordio-tests-cordio_hci-transport: Ensure that the transport is able to send an HCI reset command and receive the corresponding HCI status event. |
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.
Rather than ensure, I'd suggest check. Or make sure.
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.
Rather than is able to, can. Reduces wordiness.
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.
Query: Why don't you like "ensure"? I usually prefer it to "make sure" because it's shorter.
|
||
The application [mbed-os-cordio-hci-passthrough](https://github.com/ARMmbed/mbed-os-cordio-hci-passthrough) can be used to _proxify_ a Bluetooth controller connected to an mbed board. | ||
|
||
Bytes sent by the host over the board serial are forwarded to the controller with the help of the `HCITransportDriver` while bytes sent by the controller are sent back to the host through the board serial. |
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.
Subject-verb disagreement in Runs the whole initialization process then ensure the cordio stack has been properly initialized by the HCI driver.
Is this a statement about what the driver does, or a command that the user must follow?
Passive -> active. Every sentence here could be streamlined by changing from passive to active.
We always do 👍 |
I was about to thumbs-up your thumbs-up, but was afraid that might be misinterpreted. :) |
So I'll need to do some pretty heavy restructuring/rewording to the rest of the file so it's compliant with our stylistic guidelines. What's the timeframe on this? |
@pan- Ping. ^^^ |
@MelindaWeed Please update this pull request. Is it ready or still to be done? |
Partially done. Update has jumped to the top of my list this sprint, sorry. |
@MelindaWeed Your timeframe question was never answered. |
@pan- How do you feel about the signature line now? |
@pan- Please review (add those tags back in) and we should be good to go ? |
@0xc0170 That's my PR so I github forbid me to approve it. I do approve @MelindaWeed changes. |
/morph build |
Build : SUCCESSBuild number : 2883 Triggering tests/morph test |
Pausing Test CI until 5.9.6 PR is merged. |
Exporter Build : SUCCESSBuild number : 2505 |
@MelindaWeed For reference, since I didn't see anyone clarify what happened with your picture. You tried to directly push changes to an Mbed OS branch, in which most people don't have access to do (by design, and to the irritation of some). You then pushed your changes to @pan-'s branch, which you did have access to, and because that branch has an active PR (this PR), your changes magically appeared! |
/morph test |
Ahhhh, got it. Thanks! Still learning the ins and outs of git, and it finds constant ways to be surprising/frustrating. |
Don't worry. I don't think that ever goes away. |
Test : SUCCESSBuild number : 2634 |
Description
Improve the cordio porting documentation by explaining how tests can be run and describe the tooling available.
Pull request type