rockbox/firmware/test/fat
Björn Stenberg 4318f59b40 Test commit
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11959 a1c6a512-1295-4272-9138-f99709370657
2007-01-09 21:57:43 +00:00
..
ata-sim.c FAT test case builds again 2005-04-18 14:16:35 +00:00
main.c Display return code. 2005-04-18 14:32:21 +00:00
Makefile FAT test case builds again 2005-04-18 14:16:35 +00:00
README Test commit 2007-01-09 21:57:43 +00:00
test.sh rename() requires path on destination name now 2005-04-18 14:31:24 +00:00
test16.sh 64 sectors are 64 sectors... 2005-04-18 18:48:13 +00:00

test test
foo foo

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.