Chapter 38. Testing
There are a number of tests available for the FAT filesystem. These test various aspects of the FAT file system from basic operation to support for long file names, Unicode and code page encodings, performance, synchronization and formatting.
An important feature of these tests is that they use the
format
mount option to auto-format any volume that
cannot be mounted. Therefore it is advisable not to run these tests
on any device that contains data that should be retained.
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 byCYGDAT_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.
2024-12-10 | eCosPro Non-Commercial Public License |