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 @@
@@ -1,3 +1,2 @@
|
||||
test_shell_harness: |
||||
- command: "flash page_info 0" |
||||
expected: "Page for address 0x0" |
||||
|
@ -1,28 +1,34 @@
@@ -1,28 +1,34 @@
|
||||
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: |
||||
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: |
||||
- test_framework |
||||
- pytest |
||||
- shell |
||||
sample.pytest.shell.vt100_colors_off: |
||||
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 |
||||
- CONFIG_SHELL_VT100_COLORS=n |
||||
integration_platforms: |
||||
- native_sim |
||||
- qemu_cortex_m3 |
||||
tags: |
||||
- test_framework |
||||
- pytest |
||||
- shell |
||||
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