There are currently four tests available for the FAT filesystem, fatfs1, fatfs2 and fatfs3. fatfs1 is a simple functional test of the filesystem, ensuring that files and directories can be created, renamed and deleted, and that various error conditions can be detected. fatfs2 tests the filesystem's ability to handle multi-threaded access by creating several threads that access the filesystem in parallel.fatfs3 is designed to test support for changing disks. fatfs4 tests support for long file names and is only built if this feature is enabled.
Testing the FAT filesystem depends on the availability of a suitable device to perform the tests on. The following configuration options are defined in the target specific disk device driver to configure the tests for the available hardware:
Device name of test disk or partition. This device will be mounted on the mountpoint given in CYGDAT_DEVS_DISK_TEST_MOUNTPOINT and tests carried out in the directory given by CYGDAT_DEVS_DISK_TEST_DIRECTORY.
Mountpoint for test disk.
Subdirectory in test device where tests can create files and directories.
Device name of optional second test disk or partition. If this is not defined then the tests will carry out any operations that would have been executed on the second disk in the test directory on the main test disk.
Mountpoint for optional second test disk. If CYGDAT_DEVS_DISK_TEST_DEVICE2 is not defined then this option is not needed.
Subdirectory in optional second test device where tests can create files and directories. If CYGDAT_DEVS_DISK_TEST_DEVICE2 is not defined then this option is not needed.