zephyr/samples/subsys/testsuite/pytest/shell/testcase.yaml
Grzegorz Chwierut df40aa5574 twister: shell harness with commands alongside the harness_config
Allow user to add shell commands in testcase/sample yaml file
alongside the harness_config like in the console harness.

Signed-off-by: Grzegorz Chwierut <grzegorz.chwierut@nordicsemi.no>
2025-02-14 19:14:38 +00:00

35 lines
927 B
YAML

common:
tags:
- test_framework
- pytest
- shell
filter: CONFIG_SERIAL and not CONFIG_SMP and dt_chosen_enabled("zephyr,shell-uart")
extra_configs:
- arch:posix:CONFIG_NATIVE_UART_0_ON_STDINOUT=y
min_ram: 40
integration_platforms:
- native_sim
- qemu_cortex_m3
tests:
sample.pytest.shell:
harness: pytest
sample.pytest.shell.vt100_colors_off:
harness: pytest
extra_configs:
- CONFIG_SHELL_VT100_COLORS=n
sample.harness.shell:
harness: shell
harness_config:
shell_commands: &kernel_commands
- command: "kernel cycles"
expected: "cycles: .* hw cycles"
- command: "kernel version"
expected: "Zephyr version .*"
- command: "kernel sleep 100"
sample.harness.shell.vt100_colors_off:
harness: shell
extra_configs:
- CONFIG_SHELL_VT100_COLORS=n
harness_config:
shell_commands: *kernel_commands