-
Notifications
You must be signed in to change notification settings - Fork 7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]>
- Loading branch information
Showing
8 changed files
with
89 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
test_shell_harness: | ||
- command: "mpu mtest 1" | ||
expected: "The value is: 0x.*" | ||
- command: "mpu mtest 2" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
test_shell_harness: | ||
- command: "flash page_info 0" | ||
expected: "Page for address 0x0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
test_shell_harness: | ||
- command: "kernel cycles" | ||
expected: "cycles: .* hw cycles" | ||
- command: "kernel version" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters