rockbox/firmware/test/fat
2010-05-06 17:35:13 +00:00
..
ata-sim.c FAT test case builds again 2005-04-18 14:16:35 +00:00
main.c Make open() posix compliant api-wise. A few calls (those with O_CREAT) need the additional optional mode parameter so add it. Impact for the core is almost zero, as open() is a wrapper macro for the real open function which doesn't take the variable parameter. 2010-05-06 17:35:13 +00:00
Makefile Added keymaps for ZVM to plugins. Enabled zvm plugin building in tools/configure. FS#9605 by Adam Hogan and Robert Menes. 2008-12-04 21:28:56 +00:00
README Removed second test 2007-01-09 23:38:42 +00:00
test.sh rename() requires path on destination name now 2005-04-18 14:31:24 +00:00
test16.sh Removed executable flag 2007-01-09 23:29:07 +00:00

This code is for testing the Rockbox fat code on a dummy drive image file.

Dummy image
-----------
Here's how to create a 1 gig dummy drive image in linux:

# dd if=/dev/hda of=disk.img bs=1M count=1024

You can then format disk.img as a FAT32 partition:

# mkdosfs -F 32 disk.img

To mount the image, your linux kernel must include the loopback device:

# mount -o loop disk.img /mnt/image

Now copy some test data to the disk, umount it and start testing.


Test code
---------
The files in this dir build the 'fat' program. It will read 'disk.img' and
treat is as a real disk, thanks to the ata-sim.c module.

Modify the main.c source code to make it perform the tests you want.