Skip to content

Commit 88b5f12

Browse files
nashifkartben
authored andcommitted
samples: flash_shell: use shell harness
Use shell harness for basic testing of this sample. Signed-off-by: Anas Nashif <[email protected]>
1 parent f92ae6d commit 88b5f12

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

boards/arm/mps2/mps2_base.dtsi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
zephyr,uart-pipe = &uart1;
2121
zephyr,sram = &sram0;
2222
zephyr,flash = &flash0;
23+
zephyr,flash-controller = &sim_flash_controller;
2324
};
2425

2526
leds {

samples/drivers/flash_shell/sample.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ tests:
1010
platform_exclude:
1111
- stm32h7s78_dk
1212
- gd32f350r_eval
13-
harness: keyboard
13+
harness: shell
14+
extra_configs:
15+
- arch:posix:CONFIG_NATIVE_UART_0_ON_STDINOUT=y
1416
min_ram: 12
1517
integration_platforms:
1618
- qemu_x86
19+
- native_sim
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
test_shell_harness:
2+
- command: "flash page_info 0"
3+
expected: "Page for address 0x0"

0 commit comments

Comments
 (0)