samples: flash_shell: use shell harness

Use shell harness for basic testing of this sample.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2025-02-02 14:20:43 -05:00 committed by Benjamin Cabé
commit 88b5f1232d
3 changed files with 8 additions and 1 deletions

View file

@ -20,6 +20,7 @@
zephyr,uart-pipe = &uart1; zephyr,uart-pipe = &uart1;
zephyr,sram = &sram0; zephyr,sram = &sram0;
zephyr,flash = &flash0; zephyr,flash = &flash0;
zephyr,flash-controller = &sim_flash_controller;
}; };
leds { leds {

View file

@ -10,7 +10,10 @@ tests:
platform_exclude: platform_exclude:
- stm32h7s78_dk - stm32h7s78_dk
- gd32f350r_eval - gd32f350r_eval
harness: keyboard harness: shell
extra_configs:
- arch:posix:CONFIG_NATIVE_UART_0_ON_STDINOUT=y
min_ram: 12 min_ram: 12
integration_platforms: integration_platforms:
- qemu_x86 - qemu_x86
- native_sim

View file

@ -0,0 +1,3 @@
test_shell_harness:
- command: "flash page_info 0"
expected: "Page for address 0x0"