Skip to content
Discussion options

You must be logged in to vote

As Hake says, pytest is the way to go. Here are docs. Also links to several samples https://docs.zephyrproject.org/latest/develop/test/pytest.html
To elaborate:

"Are these samples tested automatically in CI, or is manual verification required?"
Yes. Zephyr CI is running interactive tests using native_sim and qemus. The same automated tests can be run on hw. No need for manual input (linked by Hake).

"Is there a recommended approach or framework for automating the testing of such interactive samples?"
You would get the best milage with twister and pytest harness.

"How does Zephyr ensure correctness for samples where the output depends on user interaction (e.g., verifying that UART output m…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@NamrataGagare-eaton
Comment options

Answer selected by kartben
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants