As a part of Linux host testing, we have created a mock of USB component in the esp-idf, which will be used for testing of Class drivers within this (esp-usb) repository using Cmock test cases.
This MR adds Linux target build for:
HID Host
UVC Host
Already buildable Class drivers for linux:
CDC ACM Host
Not buildable Class drivers for linux:
MSC Host - vfs not buildable for linux
UAC Host - Ringbuffer support missing in Freerots Cmock
esp_tinyusb - vfs not buildable for linux
As discussed, rather than adding new supported target into the idf_component.yml file, (linux in this case, and other targets in future) the target list was removed from (those class drivers buildable for linux) and a target compatibility will be handled during build.
Changes
HID Host linux build + simple cmock unit test
UVC Host linux build + simple cmock unit test
CDC ACM simple cmock unit test
Related
IDF-10351 - USB host testing: CMock on Linux
Testing
For each class driver buildable on Linux a simple cmock host test has been added
Checklist
Before submitting a Pull Request, please ensure the following:
[x] 🚨 This PR does not introduce breaking changes.
[x] All CI checks (GH Actions) pass.
[x] Documentation is updated as needed.
[x] Tests are updated or added as necessary.
[x] Code is well-commented, especially in complex areas.
[x] Git history is clean — commits are squashed to the minimum necessary.
Description
As a part of Linux host testing, we have created a mock of USB component in the esp-idf, which will be used for testing of Class drivers within this (esp-usb) repository using Cmock test cases.
This MR adds Linux target build for:
Already buildable Class drivers for linux:
Not buildable Class drivers for linux:
vfs
not buildable for linuxvfs
not buildable for linuxAs discussed, rather than adding new supported target into the
idf_component.yml
file, (linux
in this case, and other targets in future) the target list was removed from (those class drivers buildable for linux) and a target compatibility will be handled during build.Changes
Related
Testing
Checklist
Before submitting a Pull Request, please ensure the following: