esp-idf/components/fatfs/test_apps
Jiang Jiang Jian 9310ed608e Merge branch 'contrib/github_pr_10532_v5.1' into 'release/v5.1'
[SDMMC Mount] fix infinite loop when SD card is not responsive (GitHub PR) (v5.1)

See merge request espressif/esp-idf!23527
2023-05-20 07:35:38 +08:00
..
flash_ro esp32h2: add build test 2023-01-17 10:29:04 +08:00
flash_wl bugfix: fix for fatfs "open("xx",O_CREAT|O_WRONLY,0666)" call failure 2023-05-04 11:45:37 +05:30
sdcard sdmmc: add vTaskDelay to loops to prevent potential WDT trigger 2023-04-28 12:39:08 +02:00
test_fatfs_common bugfix: fix for fatfs "open("xx",O_CREAT|O_WRONLY,0666)" call failure 2023-05-04 11:45:37 +05:30
README.md fatfs: add missing readme file for the test apps 2022-10-10 12:15:56 +02:00

fatfs component target tests

This directory contains tests for fatfs component which are run on chip targets.

See also test_fatfs_host directory for the tests which run on a Linux host.

Fatfs tests can be executed with different diskio backends: diskio_sdmmc (SD cards over SD or SPI interface), diskio_spiflash (wear levelling in internal flash) and diskio_rawflash (read-only, no wear levelling, internal flash). There is one test app here for each of these backends:

  • sdcard — runs fatfs tests with an SD card over SDMMC or SDSPI interface
  • flash_wl - runs fatfs test in a wear_levelling partition in SPI flash
  • flash_ro - runs fatfs test in a read-only (no wear levelling) partition in SPI flash

These test apps define:

  • test functions
  • setup/teardown routines
  • build/test configurations
  • pytest test runners

The actual test cases (many of which are common between the test apps) are defined in the test_fatfs_common component.