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 <declan.snyder@nxp.com>
This commit is contained in:
Declan Snyder 2022-09-20 16:05:04 -05:00 committed by Carles Cufí
commit c4c5c239c7
3 changed files with 14 additions and 0 deletions

View file

@ -13,6 +13,8 @@ The demo will run on native_posix and will use the on-board SPI flash.
cmake -DBOARD=native_posix ..
make run
To test fatfs on MMC, add this cmake option to your build command:
-DCONF_FILE=prj_mmc.conf
--------------------------------------------------------------------------------
Sample Output:

View file

@ -0,0 +1,9 @@
CONFIG_FILE_SYSTEM=y
CONFIG_LOG=y
CONFIG_FAT_FILESYSTEM_ELM=y
CONFIG_SPI=y
CONFIG_GPIO=y
CONFIG_ZTEST=y
CONFIG_ZTEST_NEW_API=y
CONFIG_MMC_VOLUME_NAME="NAND"
CONFIG_MAIN_STACK_SIZE=4096

View file

@ -8,3 +8,6 @@ tests:
filesystem.fat.api.lfn:
extra_args: CONF_FILE="prj_lfn.conf"
platform_allow: native_posix
filesystem.fat.api.mmc:
extra_args: CONF_FILE="prj_mmc.conf"
filter: dt_compat_enabled("zephyr,mmc-disk")