Skip to content
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

test: add embedded-test integration (WIP) #361

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

kaspar030
Copy link
Collaborator

@kaspar030 kaspar030 commented Jul 11, 2024

Description

This PR intents to provide a seamless integration of embedded-test.

This is very WIP, basically I'm in the experimentation phase.
This is taking shape. Still waiting on a probe-rs release, though.

This can be tested with probe-rs-tools from git (not 0.24.0) as follows:

#  laze -Cexamples/testing b -v -b nrf52840dk -s executor-thread cargo-test

Issues/PRs references

Fixes #331.
Depends on #506, #509.

Open Questions

  • needs probe-rs from git due to Fix semihosting command caching for arm probe-rs/probe-rs#2604
  • embedded-test allows both async and sync tests. this integration starts a thread, and inside the thread, a thread executor. that means the test cannot use non-Send stuff from the system executor (e.g., network stack).
    so, we need a way to re-use the system executor.
  • integration is hacked into embedded-test fork, needs cleanup (& upstream PR)
  • document ...

Change checklist

  • I have cleaned up my commit history and squashed fixup commits.
  • I have followed the Coding Conventions.
  • I have performed a self-review of my own code.
  • I have made corresponding changes to the documentation.

@ROMemories ROMemories changed the title feat(testing): add embedded-test integration (WIP) test: add embedded-test integration (WIP) Jul 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

integrate embedded-test
2 participants