-
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
Add CMakeLists for USB greentea tests #14937
Conversation
@wernerlewis Already rob has a PR for running the greentea test using CTest as part of that, he already updated mbed-drivers-ticker CMake to use with CTest 69e3065, better to add USB test CMake similar to mbed-drivers-ticker one |
@wernerlewis, 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.
This PR needs #14902 too. Please look for [NOT_SUPPORTED]
in drivers/usb/tests/TESTS/, and add an equivalent CMake check in each CMakeLists.txt and pass TEST_SKIPPED
to mbed_greentea_add_test()
.
This pull request has automatically been marked as stale because it has had no recent activity. @wernerlewis, please carry out any necessary work to get the changes merged. Thank you for your contributions. |
The PR got in. @wernerlewis will you look at not supported and skipped now? |
Pull request has been modified.
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
|
Set back to review , please @wernerlewis review the comment above |
This works for building the USB tests, however when building |
CTest tests are declared at configuration time, so I don't think there's a way to achieve that. Now what I can think of is keeping what this PR already does, and letting users pass |
This pull request has automatically been marked as stale because it has had no recent activity. , please complete review of the changes to move the PR forward. Thank you for your contributions. |
CMake definitions are added for USB greentea tests. These are required to build and run greentea tests using CMake, and enables CTest support for use with mbed-tools. Fixes ARMmbed#14886
@ARMmbed/mbed-os-core FYI I'm taking over this PR and directly pushing to @wernerlewis's fork. Now working on my own review comment. |
@LDong-Arm Shall we close this and open a new PR? |
We are closing this pull request due to inactivity |
Summary of changes
Fixes #14886
CMake definitions are added for USB greentea tests. These are required
to build and run greentea tests using mbed-tools with CTest.
Impact of changes
Migration actions required
Documentation
None
Pull request type
Test results
All tests successfully build using
cmake
with requiredUSB_DEVICE_TESTS
macro. Greentea test binaries flash and run correctly usingmbedhtrun
.Reviewers