samples: flash_shell: use shell harness
Use shell harness for basic testing of this sample.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
diff --git a/boards/arm/mps2/mps2_base.dtsi b/boards/arm/mps2/mps2_base.dtsi
index 7d332d7..4d8106a 100644
--- a/boards/arm/mps2/mps2_base.dtsi
+++ b/boards/arm/mps2/mps2_base.dtsi
@@ -20,6 +20,7 @@
zephyr,uart-pipe = &uart1;
zephyr,sram = &sram0;
zephyr,flash = &flash0;
+ zephyr,flash-controller = &sim_flash_controller;
};
leds {
diff --git a/samples/drivers/flash_shell/sample.yaml b/samples/drivers/flash_shell/sample.yaml
index ed75923..c22afae 100644
--- a/samples/drivers/flash_shell/sample.yaml
+++ b/samples/drivers/flash_shell/sample.yaml
@@ -10,7 +10,10 @@
platform_exclude:
- stm32h7s78_dk
- gd32f350r_eval
- harness: keyboard
+ harness: shell
+ extra_configs:
+ - arch:posix:CONFIG_NATIVE_UART_0_ON_STDINOUT=y
min_ram: 12
integration_platforms:
- qemu_x86
+ - native_sim
diff --git a/samples/drivers/flash_shell/test_shell.yml b/samples/drivers/flash_shell/test_shell.yml
new file mode 100644
index 0000000..f04555d
--- /dev/null
+++ b/samples/drivers/flash_shell/test_shell.yml
@@ -0,0 +1,3 @@
+test_shell_harness:
+- command: "flash page_info 0"
+ expected: "Page for address 0x0"