Skip to content

Commit c4c5c23

Browse files
decsnycarlescufi
authored andcommitted
tests: Support testing fatfs on mmc
Make another project configuration in the fat_fs_api test to allow using mmc for the test Signed-off-by: Declan Snyder <[email protected]>
1 parent bb41f7d commit c4c5c23

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

tests/subsys/fs/fat_fs_api/README.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ The demo will run on native_posix and will use the on-board SPI flash.
1313
cmake -DBOARD=native_posix ..
1414
make run
1515

16+
To test fatfs on MMC, add this cmake option to your build command:
17+
-DCONF_FILE=prj_mmc.conf
1618
--------------------------------------------------------------------------------
1719

1820
Sample Output:
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
CONFIG_FILE_SYSTEM=y
2+
CONFIG_LOG=y
3+
CONFIG_FAT_FILESYSTEM_ELM=y
4+
CONFIG_SPI=y
5+
CONFIG_GPIO=y
6+
CONFIG_ZTEST=y
7+
CONFIG_ZTEST_NEW_API=y
8+
CONFIG_MMC_VOLUME_NAME="NAND"
9+
CONFIG_MAIN_STACK_SIZE=4096

tests/subsys/fs/fat_fs_api/testcase.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,6 @@ tests:
88
filesystem.fat.api.lfn:
99
extra_args: CONF_FILE="prj_lfn.conf"
1010
platform_allow: native_posix
11+
filesystem.fat.api.mmc:
12+
extra_args: CONF_FILE="prj_mmc.conf"
13+
filter: dt_compat_enabled("zephyr,mmc-disk")

0 commit comments

Comments
 (0)