tests: fs: nvs: add `mps2/an385` support
Add support for running the test with the simulated `mps2/an385` board.
Signed-off-by: Jordan Yates <jordan@embeint.com>
diff --git a/tests/subsys/fs/nvs/src/main.c b/tests/subsys/fs/nvs/src/main.c
index 3a9a41c..85aaf9f 100644
--- a/tests/subsys/fs/nvs/src/main.c
+++ b/tests/subsys/fs/nvs/src/main.c
@@ -8,11 +8,12 @@
* This test is designed to be run using flash-simulator which provide
* functionality for flash property customization and emulating errors in
* flash operation in parallel to regular flash API.
- * Test should be run on qemu_x86 or native_sim target.
+ * Test should be run on qemu_x86, mps2_an385 or native_sim target.
*/
-#if !defined(CONFIG_BOARD_QEMU_X86) && !defined(CONFIG_ARCH_POSIX)
-#error "Run only on qemu_x86 or a posix architecture based target (for ex. native_sim)"
+#if !defined(CONFIG_BOARD_QEMU_X86) && !defined(CONFIG_ARCH_POSIX) && \
+ !defined(CONFIG_BOARD_MPS2_AN385)
+#error "Run only on qemu_x86, mps2_an385, or a posix architecture based target (for ex. native_sim)"
#endif
#include <stdio.h>
diff --git a/tests/subsys/fs/nvs/testcase.yaml b/tests/subsys/fs/nvs/testcase.yaml
index 708fa28..c796cda 100644
--- a/tests/subsys/fs/nvs/testcase.yaml
+++ b/tests/subsys/fs/nvs/testcase.yaml
@@ -2,7 +2,9 @@
tags: nvs
tests:
filesystem.nvs:
- platform_allow: qemu_x86
+ platform_allow:
+ - qemu_x86
+ - mps2/an385
filesystem.nvs.0x00:
extra_args: DTC_OVERLAY_FILE=boards/qemu_x86_ev_0x00.overlay
platform_allow: qemu_x86