Chapter 44. Testing

The MMFS package contains a number of test programs:

mmfs1
This program just tests the standard FILEIO interface of the filesystem. It is a simplified version of the filesystem functionality tests used by FATFS and RAMFS.
stream1
This program is a simple test of the streaming support. It writes and reads streams at defined data rates and checks that the rate is maintained and that data integrity is preserved.
pvr1
A basic emulation of a Personal Video Recorder. Two streams are written and one of them read back, after a delay. This simulates a PVR recording one channel while using a pause-live feature on a second channel.
pvr2
This program records a large number of short streams on the disk. This checks directory handling.
pvr3
This is a variant on pvr1, which records 3 streams while replaying one.
format
A simple test that uses the "mmfs.format" filesystem instead of "mmfs", thus reformatting the disk.
example
This contains versions of the write_stream() and read_stream() example functions described earlier, together with sufficient infrastructure to allow them to be run.