Damien George
6194336d81
tests/extmod/vfs_fat_fileio: Add test for constructor of FileIO type.
8 years ago
Damien George
b7df3e541a
extmod/vfs_fat: Implement POSIX behaviour of rename, allow to overwrite.
If the destination of os.rename() exists then it will be overwritten if it
is a file. This is the POSIX behaviour, which is also the CPython
behaviour, and so we follow suit.
See issue #2598 for discussion.
8 years ago
Damien George
81e171b7bb
extmod/modframebuf: Add back legacy FrameBuffer1 "class".
For backwards compatibility. It simple creates a frame buffer with the
MVLSB format.
8 years ago
Radomir Dopieralski
225e22b287
extmod/modframebuf: Make FrameBuffer handle 16bit depth.
Rename FrameBuffer1 into FrameBuffer and make it handle different bit
depths via a method table that has getpixel and setpixel. Currently
supported formats are MVLSB (monochrome, vertical, LSB) and RGB565.
Also add blit() and fill_rect() methods.
8 years ago
Rami Ali
1b41cacac7
tests/extmod: Improve ujson coverage.
8 years ago
Paul Sokolovsky
0cbc07227c
extmod/moduheapq: Adhoc changes to support ordering by utime.ticks_ms().
As required for further elaboration of uasyncio, like supporting baremetal
systems with wraparound timesources. This is not intended to be public
interface, and likely will be further refactored in the future.
8 years ago
Paul Sokolovsky
fa3a108ed7
tests/vfs_fat_oldproto: Skip for ports not supporting "oldproto".
Otherwise this broke esp8266 testsuite.
8 years ago
Alex March
94aeba0427
tests/extmod/framebuf1: Test framebuffer pixel clear, and text function.
8 years ago
Paul Sokolovsky
be6a765c69
tests/extmod/ticks_diff: Test for new semantics of ticks_diff().
8 years ago
Paul Sokolovsky
1ba4db5685
tests/btree1: Fix out of memory error running on esp8266.
8 years ago
Alex March
cc0cc67815
tests/extmod/uhashlib_sha256: Rename sha256.py test.
8 years ago
Alex March
b83ac44e82
tests/extmod/uhashlib_sha1: Coverage for SHA1 algorithm.
8 years ago
Alex March
fbca4f94b3
tests/extmod/vfs_fat_oldproto: Test old block device protocol.
8 years ago
Alex March
38a9359339
tests/extmod/vfs_fat_fsusermount: Improve fsusermount test coverage.
8 years ago
Damien George
5694201930
extmod/vfs_fat_file: Make file.close() a no-op if file already closed.
As per CPython semantics. In particular, file.__del__() should not raise
an exception if the file is already closed.
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
Damien George
11ab807d76
tests/extmod: Add test for ujson.load().
8 years ago
Alex March
f274561e16
tests/extmod/vfs_fat: Test coverage for remove() and rmdir().
8 years ago
Alex March
9fdba0e09c
tests/extmod/uzlib: Test adaptive huffman tree for tinflate coverage.
8 years ago
Alex March
addd1d3db1
tests/extmod/btree1: Checks for put, seq, string print and unsupported binary op.
8 years ago
Alex March
670376c5cb
tests/extmod/vfs_fat_ramdisk: Add test for VFS.statvfs().
8 years ago
Paul Sokolovsky
d46de80162
tests/uzlib_decompio_gz: Test for DecompIO with gzip bitstream.
8 years ago
Damien George
b9672bcbe8
tests/extmod: Add test for machine.time_pulse_us().
8 years ago
Damien George
67a4813601
tests/extmod/urandom: Add urandom tests for error cases.
8 years ago
Damien George
cac8dc3414
tests/extmod/framebuf1: Add tests for scrolling in the x-direction.
8 years ago
Paul Sokolovsky
61e2dfd97d
tests/extmod/uzlib_decompio: Add zlib bitstream testcases.
8 years ago
Damien George
2d8740a4d1
tests/extmod: Add a test for framebuf module, tested by coverage build.
8 years ago
Paul Sokolovsky
fafd587514
tests/extmod: Add test for uzlib.DecompIO.
8 years ago
Radomir Dopieralski
fea7fe45ea
tests/extmod/vfs_fat_ramdisk: Add tests for VFS.umount()
Try to un-mount a file system and re-mount it again.
8 years ago
Paul Sokolovsky
c428367543
extmod/modubinascii: Make crc32() support configurable.
Disable by default, enable in unix port.
8 years ago
Pavol Rusnak
39799f7564
extmod/modubinascii: implement binascii.crc32
8 years ago
Paul Sokolovsky
a6fc90f92a
tests/uzlib_decompress: Actually test raw DEFLATE stream.
8 years ago
Paul Sokolovsky
0be4a7712d
tests: Rename zlibd_decompress.py -> uzlib_decompress.py.
To use the actual current name.
8 years ago
Paul Sokolovsky
3eb532e974
extmod/modbtree: Implement __contains__ operation.
8 years ago
Paul Sokolovsky
bc3912980a
tests/machine1: Revamp to work with unix port (which has "umachine").
8 years ago
Paul Sokolovsky
eb0e3bab1e
tests/machine_mem.py: Too non-portable, rework as an example for unix port.
8 years ago
Paul Sokolovsky
617bda27e9
tests/extmod/btree1: Tests against in-memory DB (using io.BytesIO).
8 years ago
Paul Sokolovsky
5a38694f55
tests/extmod/btree1: Close database at the end of test.
8 years ago
Paul Sokolovsky
c3f519adfe
tests/extmod/machine_pinbase: Skip if machine.PinBase is not available.
8 years ago
Paul Sokolovsky
0fb7a7a7ce
tests/btree1: Add testcase for iterating btree object directly.
8 years ago
Paul Sokolovsky
d5835261af
tests/extmod: Add "btree" module test.
9 years ago
Paul Sokolovsky
119b3dabf7
tests: Add a testcase for machine.PinBase class.
9 years ago
Paul Sokolovsky
f0eea1fdf9
tests/extmod/vfs_fat_ramdisk: Add testcases for chdir(), getcwd().
9 years ago
Damien George
07615d9f7e
tests/extmod: Move split-on-empty-match tests to a separate test file.
And provide an expected-output file because these tests have a different
behaviour under CPython.
9 years ago
Damien George
da161fd9f0
extmod/uctypes: Finish support for FLOAT32 and FLOAT64 types.
9 years ago
Paul Sokolovsky
2740dd85f2
tests/vfs_fat_ramdisk: Add testcase for .rename().
9 years ago
Paul Sokolovsky
9fb36af9af
tests/vfs_fat_ramdisk: Allow to run in native mode (don't use "with").
9 years ago
Paul Sokolovsky
eaa96a7610
tests/vfs_fat_ramdisk: Add testcase for .mkdir().
9 years ago
Paul Sokolovsky
57425b648f
tests/vfs_fat_ramdisk: Add testcase for .remove().
9 years ago