Damien George
0e6ef40359
tests/extmod: Add tests for verifying FAT and littlefs mtime values.
Verifies mtime timestamps on files match the value returned by time.time().
Also update vfs_fat_ramdisk.py so it doesn't check FAT timestamp of the
root, because that may change across runs/ports.
Signed-off-by: Damien George <damien@micropython.org>
4 years ago
Tom Collins
4d3a92c67c
extmod/vfs_fat: Add file size as 4th element of uos.ilistdir tuple.
7 years ago
Damien George
cda09727b4
tests/extmod/vfs_fat: Add test for ilistdir of a non-existent directory.
8 years ago
Damien George
852c215d76
tests/extmod/vfs: Update tests to reflect new ilistdir() method.
8 years ago
Damien George
a0c729681f
tests/extmod/vfs_fat_ramdisk: Make it work on pyboard.
8 years ago
Damien George
b9bfaa349a
tests/extmod/vfs_fat: Update tests to work with new VFS sub-system.
The vfs_fat_fsusermount test is no longer relevant so has been removed.
8 years ago
Damien George
94d87fbb30
test/extmod: Update vfs_fat tests for new OO FatFs library.
The new version of FatFs requires a minimum of 50 blocks on the device.
Also, some tests no longer make sense with an OO vfs.
8 years ago
Alex March
cb20d999bc
tests/extmod/vfs_fat: Improve VFS test coverage.
Covered case:
- Stat cases
- Invalid read/write/flush/close
- Invalid mkdir/rmdir/remove/getcwd
- File seek/tell, modes a/x/+, t/b
- Writing to a full disk
- Full path rename, slash trim
- Rename cases
- Bytestring listdir
- File object printing
8 years ago
Alex March
e42186d356
tests/extmod/vfs_fat: Replace asserts with prints and expected outputs.
8 years ago
Alex March
f274561e16
tests/extmod/vfs_fat: Test coverage for remove() and rmdir().
8 years ago
Alex March
670376c5cb
tests/extmod/vfs_fat_ramdisk: Add test for VFS.statvfs().
8 years ago
Paul Sokolovsky
f0eea1fdf9
tests/extmod/vfs_fat_ramdisk: Add testcases for chdir(), getcwd().
9 years ago
Paul Sokolovsky
0ee1d0f407
tests/vfs_fat_ramdisk: Add test for VfsFat.
9 years ago