Skip to content

Commit

Permalink
samples: shell: use shell harness
Browse files Browse the repository at this point in the history
Use shell harness for basic testing of this sample.

Signed-off-by: Anas Nashif <[email protected]>
  • Loading branch information
nashif committed Feb 2, 2025
1 parent e11a5f7 commit 6b040a8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion samples/subsys/shell/shell_module/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ tests:
sample.shell.shell_module:
filter: CONFIG_SERIAL and dt_chosen_enabled("zephyr,shell-uart")
tags: shell
harness: keyboard
harness: shell
min_ram: 40
integration_platforms:
- native_sim
Expand Down
5 changes: 5 additions & 0 deletions samples/subsys/shell/shell_module/test_shell.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
test_shell_harness:
- command: "kernel cycles"
expected: "cycles: .* hw cycles"
- command: "kernel version"
expected: "Zephyr version .*"

0 comments on commit 6b040a8

Please sign in to comment.