This is an example trace of 3FsTest being used on an 80251 system with a single 2MB Flash containing execute-in-place firmware and a further 5x64KB sectors used for a 256KB file system volume. For more information, visit: http://www.3amSystems.com ================================================================ Embedded File System Test Suite for RFS/FFS API (c)2005 3am Systems 1. Generic behavioural tests 2. Specific functional tests 3. File console 0. Exit ... ? ================================================================ ================== Generic behavioural tests =================== ================================================================ *** Volume initialisation *** ---------------------------------------------------------------- >>> Pre-init... >>> Post-init... Warning: formattedSize not set, adopting rvl 255488 *** Simple file I/O *** ---------------------------------------------------------------- >>> Creating a zero length file... >>> Creating a large file... >>> Extending with chsize()... >>> Extending with lseek()/write()... >>> Truncating... >>> Appending... *** Extended file I/O *** ---------------------------------------------------------------- >>> Writing using increasing block sizes (0,1,2,3...n) >>> Reading using one large block (whole file) >>> Reading sequentially (a single byte at a time) >>> Reading using increasing block sizes (0,1,2,3...n) >>> Reading using decreasing block sizes (n...3,2,1) >>> Multiple updates (on FFS, with garbage collection) Statistics BytesRead BytesWritten SectorsErased ---------- --------- ------------ ------------- API 3545k 2670k Driver 4599k 2946k 46 Overhead 0.30 0.10 Individual sector erase count: 10, 11, 7, 7, 11 *** Large file I/O *** ---------------------------------------------------------------- >>> Sequential write... Statistics BytesRead BytesWritten SectorsErased ---------- --------- ------------ ------------- API 0k 249k Driver 511k 256k 0 Overhead 523683.00 0.03 Individual sector erase count: 0, 0, 0, 0, 0 >>> With lseek()/write()... Statistics BytesRead BytesWritten SectorsErased ---------- --------- ------------ ------------- API 249k 249k Driver 324k 257k 4 Overhead 0.30 0.03 Individual sector erase count: 1, 1, 1, 1, 0 *** File handles *** ---------------------------------------------------------------- >>> Multiple file handles >>> Internal file copy (on FFS, with garbage collection) *** File table *** ---------------------------------------------------------------- >>> Creating multipe files... >>> Verifying... >>> Deleting... *** Test result *** ---------------------------------------------------------------- All test cases PASS in 3.41s ================================================================ ======= Specific API functional tests (error conditions) ======= ================================================================ *** API functions with VOLUME parameter *** ---------------------------------------------------------------- >>> Invalid... >>> Non-existing... >>> Existing... *** API functions with FILENAME parameter *** ---------------------------------------------------------------- >>> Invalid... >>> Non-existing... >>> Non-existing device... >>> Existing... >>> Existing, read-only... >>> Existing, already open... *** API functions with HANDLE parameter *** ---------------------------------------------------------------- >>> Invalid handle... >>> Unused handle... >>> Valid handle... *** API open() file access modes *** ---------------------------------------------------------------- >>> Testing... *** API invalid parameter handling *** ---------------------------------------------------------------- >>> Negative... >>> Too large... *** Volume status on exit *** ---------------------------------------------------------------- >>> Structural integrity... *** Test result *** ---------------------------------------------------------------- All test cases PASS in 1.00s