Skip to content

Add opentitanlib-based testing#316

Open
cfrantz wants to merge 5 commits into
OpenPRoT:earlgrey-hwefrom
cfrantz:otlib-based-testing
Open

Add opentitanlib-based testing#316
cfrantz wants to merge 5 commits into
OpenPRoT:earlgrey-hwefrom
cfrantz:otlib-based-testing

Conversation

@cfrantz

@cfrantz cfrantz commented Jun 21, 2026

Copy link
Copy Markdown
Collaborator
  • earlgrey: usbdev with host-based test harness
  • earlgrey: enhance usbserial test
  • earlgrey: Add host-based usbdfu test harness
  • Add README.md to target/earlgrey/tests

@cfrantz cfrantz force-pushed the otlib-based-testing branch 2 times, most recently from 9435880 to fa26eec Compare July 8, 2026 04:30
@cfrantz cfrantz force-pushed the otlib-based-testing branch 4 times, most recently from e61982a to c759aeb Compare July 9, 2026 21:12
Signed-off-by: Chris Frantz <cfrantz@google.com>
@cfrantz cfrantz force-pushed the otlib-based-testing branch from c759aeb to ad950a4 Compare July 9, 2026 22:40
@cfrantz cfrantz requested a review from moidx July 9, 2026 22:40
@cfrantz cfrantz marked this pull request as ready for review July 9, 2026 22:40
Comment thread target/earlgrey/tests/usbdev/BUILD.bazel
Comment thread target/earlgrey/tests/usbdfu/host_usb_dfu_check.rs Outdated
cfrantz added 4 commits July 11, 2026 15:02
Signed-off-by: Chris Frantz <cfrantz@google.com>
Signed-off-by: Chris Frantz <cfrantz@google.com>
Implement a functional host-based test harness for the `usbdfu` test.
- Improve firmware to support DFU loopback (download/upload) on Alt 0.
- firmware erases 64KB starting at 0xA0000 on block 0 of download, and programs subsequent blocks.
- firmware supports upload on Alt 0 to read back programmed data.
- Implement `host_usb_dfu_check.rs` host harness which reset target, captures serial number, claims DFU interface, and performs download/upload verification loop.
- Add README.md describing the test.

TAG=agy
CONV=37898f8b-5d74-4dc6-95c2-98f7e13bd162
Document existing integration tests and provide a guide for writing new tests (both self-contained and host-harness-based).

TAG=agy
CONV=37898f8b-5d74-4dc6-95c2-98f7e13bd162
@cfrantz cfrantz force-pushed the otlib-based-testing branch from ad950a4 to 0f06d25 Compare July 11, 2026 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants