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:
CYGDAT_DEVS_DISK_TEST_DEVICE
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.
CYGDAT_DEVS_DISK_TEST_MOUNTPOINT
Mountpoint for test disk.
CYGDAT_DEVS_DISK_TEST_DIRECTORY
Subdirectory in test device where tests can create files and
directories.
CYGDAT_DEVS_DISK_TEST_DEVICE2
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.
CYGDAT_DEVS_DISK_TEST_MOUNTPOINT2
Mountpoint for optional second test disk. If
CYGDAT_DEVS_DISK_TEST_DEVICE2 is not defined then
this option is not needed.
CYGDAT_DEVS_DISK_TEST_DIRECTORY2
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.