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

twister: introduce shell harness based on pytest #85033

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

Conversation

nashif
Copy link
Member

@nashif nashif commented Feb 2, 2025

  • twister: harness: introduce shell harness
  • samples: mpu: use shell harness
  • samples: flash_shell: use shell harness
  • samples: shell: use shell harness

Introduce a new harness based on pytest that does basic shell command
handling. The harness is enabeld using:

harness: shell

and expects a file with parameters in the form:

test_shell_harness:
- command: "kernel version"
  expected: "Zephyr version .*"
- ...

Multiple commands and their expected output can be tested.

Signed-off-by: Anas Nashif <[email protected]>
Verify sample using shell harness instead of just building the sample.

Signed-off-by: Anas Nashif <[email protected]>
Use shell harness for basic testing of this sample.

Signed-off-by: Anas Nashif <[email protected]>
Use shell harness for basic testing of this sample.

Signed-off-by: Anas Nashif <[email protected]>
@nashif nashif force-pushed the topic/twister/misc_harness_stuff branch from 93da1db to 6b040a8 Compare February 2, 2025 20: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.

1 participant