-
Notifications
You must be signed in to change notification settings - Fork 214
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 HIL testing #1297
Add HIL testing #1297
Conversation
2327179
to
0347722
Compare
c82bce8
to
f713d01
Compare
04e8166
to
57e058b
Compare
fead731
to
f895bf3
Compare
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 think, especially for our first iteration, this is looking really good! Thank you so much for all your work here, this is a huge win for us.
We should probably expand the section in README.md
regarding adding tests, but that is absolutely beyond this scope of this PR and can be tackled separately.
So I'll say LGTM, but let's wait for confirmation from @MabezDev and/or @bjoernQ as well :)
Just kidding I see them, I guess because the branch belongs to this repo. So I will add them as soon as I'm ready to merge! |
593a0cc
to
1e6c16f
Compare
Sorry for adding late changes.
After the pinning/alias changes, I ran the CI to verify that everything was working, here is the run https://github.com/esp-rs/esp-hal/actions/runs/8372136967 (I amended the commit and removed the |
7be1263
to
ddd4f66
Compare
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 ❤️
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.
Thank you @SergioGasquez!
ddd4f66
to
6f5bc9d
Compare
* feat: Update probe-rs/embedded-test to probe-rs#2292 * feat: Remove lib
df2758b
to
9849317
Compare
Just tested all the targets locally:
Results
Results
Results
Results
|
* Create the `hil-test` package * Add a simple integration test to verify basic GPIO functionality * WIP * feat: Update with esp-hal unification * build: Update dependencies * feat: Add a simple CI workflow test * ci: Avoid using a gh-hosted-runner to build * ci: Remove building bins in gh-hosted-runner * ci: Remove HIL Gpio CI test * ci: Test all the available tests * test: Add spi_full_duplex test * docs: Add documentation * test: Add uart test * style: Remove unused imports * docs: Update wiring, document H2 VM * ci: Enable H2 tests * ci: Add rust-cache action * docs: Document H2 vm * test: Add timeout * ci: Enable ESP32-C3 tests * feat: Add timeouts * feat: Add aes test * ci: Avoid running CI workflow when we change hil-test stuff * test: Remove warnings * feat: Address feedback * feat: Update features names and spi methods * ci: Remove rust-cache action * Update HIL to probe-rs#2292 (esp-rs#1307) * feat: Update probe-rs/embedded-test to probe-rs#2292 * feat: Remove lib * ci: Use a matrix * ci: Enable ESP32C3 * feat: Add a way to cfg away test for unsuported peripherals * ci: Update trigger conditions * feat: Update pins to make it work on s3 * feat: Changes enabling S3 * feat: Remove log feature * feat: Adapt for rebase * feat: Remove env * feat: enable S3 * chore: Remove todo * build: Pin dependencies * feat: Add target alias * docs: Update readme * fix: Fix traits imports after rebase. Use debug * build: Remove lto * feat: Build tests on release mode --------- Co-authored-by: Jesse Braham <[email protected]>
This PR adds the foundations for HIL, It's still in an early phase and might be draft for a while or get merged and get some follow-up PRs.
See the workflow runs in https://github.com/esp-rs/esp-hal/actions/workflows/hil.yml
For instructions on how the testing works, see the
hil-test
readmeCurrent board support
semihosting
andprobe-rs
Current tests
aes
,gpio
,uart
andspi_full_duplex
are partially being tested. See full list of peripherals pending in: Set up hardware-in-loop testing #809 (comment)Todo
merge_queue
and abort the merge if the CI failscfg
away tests for test for targets.required-features
, but not really an option since we cant set up multiple chips.log
anddefmt
features or use only one of them?log
feature and enableddefmt
by default: 57e058bPlease, feel free to report any feedback or input that you have!