Browse Source
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>pull/85809/head
8 changed files with 89 additions and 35 deletions
@ -1,3 +1,2 @@ |
|||||||
test_shell_harness: |
|
||||||
- command: "flash page_info 0" |
- command: "flash page_info 0" |
||||||
expected: "Page for address 0x0" |
expected: "Page for address 0x0" |
||||||
|
@ -1,28 +1,34 @@ |
|||||||
tests: |
common: |
||||||
sample.pytest.shell: |
|
||||||
filter: CONFIG_SERIAL and dt_chosen_enabled("zephyr,shell-uart") |
|
||||||
min_ram: 40 |
|
||||||
harness: pytest |
|
||||||
extra_configs: |
|
||||||
- arch:posix:CONFIG_NATIVE_UART_0_ON_STDINOUT=y |
|
||||||
integration_platforms: |
|
||||||
- native_sim |
|
||||||
- qemu_cortex_m3 |
|
||||||
tags: |
tags: |
||||||
- test_framework |
- test_framework |
||||||
- pytest |
- pytest |
||||||
- shell |
- shell |
||||||
sample.pytest.shell.vt100_colors_off: |
filter: CONFIG_SERIAL and not CONFIG_SMP and dt_chosen_enabled("zephyr,shell-uart") |
||||||
filter: CONFIG_SERIAL and dt_chosen_enabled("zephyr,shell-uart") |
|
||||||
min_ram: 40 |
|
||||||
harness: pytest |
|
||||||
extra_configs: |
extra_configs: |
||||||
- arch:posix:CONFIG_NATIVE_UART_0_ON_STDINOUT=y |
- arch:posix:CONFIG_NATIVE_UART_0_ON_STDINOUT=y |
||||||
- CONFIG_SHELL_VT100_COLORS=n |
min_ram: 40 |
||||||
integration_platforms: |
integration_platforms: |
||||||
- native_sim |
- native_sim |
||||||
- qemu_cortex_m3 |
- qemu_cortex_m3 |
||||||
tags: |
tests: |
||||||
- test_framework |
sample.pytest.shell: |
||||||
- pytest |
harness: pytest |
||||||
- shell |
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 |
||||||
|
Loading…
Reference in new issue