aboutsummaryrefslogtreecommitdiff
path: root/tests/extmod/vfs_fat_ramdisk.py
AgeCommit message (Collapse)Author
2021-04-23tests: Use .errno instead of .args[0] for OSError exceptions.Damien George
Signed-off-by: Damien George <damien@micropython.org>
2020-09-02tests/extmod: Add tests for verifying FAT and littlefs mtime values.Damien George
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>
2020-03-30tests: Format all Python code with black, except tests in basics subdir.David Lechner
This adds the Python files in the tests/ directory to be formatted with ./tools/codeformat.py. The basics/ subdirectory is excluded for now so we aren't changing too much at once. In a few places `# fmt: off`/`# fmt: on` was used where the code had special formatting for readability or where the test was actually testing the specific formatting.
2019-10-29extmod/vfs: Rename BP_IOCTL_xxx constants to MP_BLOCKDEV_IOCTL_xxx.Damien George
Also rename SEC_COUNT to BLOCK_COUNT and SEC_SIZE to BLOCK_SIZE.
2018-06-06tests/extmod: Remove conditional import of uos_vfs, it no longer exists.Damien George
This conditional import was only used to get the tests working on the unix coverage build, which has now switched to use VFS by default so the uos module alone has the required functionality.
2017-06-10tests: Convert remaining "sys.exit()" to "raise SystemExit".Paul Sokolovsky
2017-05-13tests/extmod/vfs_fat: Add test for ilistdir of a non-existent directory.Damien George
2017-05-10tests/extmod/vfs: Update tests to reflect new ilistdir() method.Damien George
2017-02-15tests/extmod: Make tests skippable.Paul Sokolovsky
2017-01-27tests/extmod/vfs_fat_ramdisk: Make it work on pyboard.Damien George
2017-01-27tests/extmod/vfs_fat: Update tests to work with new VFS sub-system.Damien George
The vfs_fat_fsusermount test is no longer relevant so has been removed.
2017-01-27test/extmod: Update vfs_fat tests for new OO FatFs library.Damien George
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.
2016-10-24tests/extmod/vfs_fat: Improve VFS test coverage.Alex March
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
2016-10-13tests/extmod/vfs_fat: Replace asserts with prints and expected outputs.Alex March
2016-10-11tests/extmod/vfs_fat: Test coverage for remove() and rmdir().Alex March
2016-09-27tests/extmod/vfs_fat_ramdisk: Add test for VFS.statvfs().Alex March
2016-08-26tests/extmod/vfs_fat_ramdisk: Add tests for VFS.umount()Radomir Dopieralski
Try to un-mount a file system and re-mount it again.
2016-05-29tests/extmod/vfs_fat_ramdisk: Add testcases for chdir(), getcwd().Paul Sokolovsky
2016-02-29tests/vfs_fat_ramdisk: Add testcase for .rename().Paul Sokolovsky
2016-02-29tests/vfs_fat_ramdisk: Allow to run in native mode (don't use "with").Paul Sokolovsky
2016-02-29tests/vfs_fat_ramdisk: Add testcase for .mkdir().Paul Sokolovsky
2016-02-28tests/vfs_fat_ramdisk: Add testcase for .remove().Paul Sokolovsky
2016-02-28tests/vfs_fat_ramdisk: Add .listdir() testcase.Paul Sokolovsky
2016-02-15tests/vfs_fat_ramdisk: Skip test if can't allocate ramdisk.Paul Sokolovsky
2016-02-14tests/vfs_fat_ramdisk: Allow to override sector size.Paul Sokolovsky
2016-02-14tests/vfs_fat_ramdisk: Switch to ioctl-based blockdev API.Paul Sokolovsky
2016-02-14tests/vfs_fat_ramdisk: Add test for VfsFat.Paul Sokolovsky