Scott Shawcroft
0930f7a797
tests: Update ramdisk test to show more free space because our root directory is smaller than upstream's.
2017-01-12 14:56:17 -08:00
Rami Ali
c15ebf7c8c
tests/extmod: Improve ubinascii.c test coverage.
2016-12-29 13:22:19 +11:00
Paul Sokolovsky
492c612f9d
tests/utimeq_stable: Test for partial stability of utimeq queuing.
2016-12-24 00:25:15 +03:00
Paul Sokolovsky
ffe807f349
extmod/moduheapq: Revert change for adhoc relative-time queue support.
...
Now that specialized utimeq module has been implenented, revert previous
adhoc changes to uheapq.
This reverts commit 0cbc07227c
.
2016-12-22 06:37:49 +03:00
Paul Sokolovsky
5d9025a76e
tests/extmod: Add test for utimeq module.
2016-12-22 00:31:38 +03:00
Rami Ali
9112b0b62b
tests/extmod: Improve modframebuf test coverage.
2016-12-13 16:29:21 +11:00
Rami Ali
d22762017e
tests/extmod: Improve moductypes test coverage.
2016-12-12 17:09:14 +11:00
Paul Sokolovsky
aee13ef3f2
tests: Update for required byteorder arg for int.from_bytes()/to_bytes().
2016-12-09 22:53:30 +03:00
Damien George
898d4c1217
extmod/modframebuf: Make framebuf implement the buffer protocol.
...
So that one can easily access the underlying data of the frame buffer, eg
to write the data out to a display.
2016-12-08 15:17:47 +11:00
Damien George
042d5f24d6
tests/extmod/framebuf1: Add basics tests for hline, vline, rect, line.
2016-12-05 11:55:43 +11:00
Paul Sokolovsky
e44b236ce2
tests/extmod/btree1: Exercise btree.flush().
2016-12-05 01:55:05 +03:00
Damien George
6194336d81
tests/extmod/vfs_fat_fileio: Add test for constructor of FileIO type.
2016-12-02 15:37:58 +11:00
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.
2016-12-02 15:06:09 +11:00
Damien George
81e171b7bb
extmod/modframebuf: Add back legacy FrameBuffer1 "class".
...
For backwards compatibility. It simple creates a frame buffer with the
MVLSB format.
2016-12-01 16:43:25 +11:00
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.
2016-12-01 16:43:25 +11:00
Rami Ali
1b41cacac7
tests/extmod: Improve ujson coverage.
2016-11-22 15:48:42 +11:00
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.
2016-11-12 02:33:17 +03:00
Paul Sokolovsky
fa3a108ed7
tests/vfs_fat_oldproto: Skip for ports not supporting "oldproto".
...
Otherwise this broke esp8266 testsuite.
2016-11-06 01:47:44 +03:00
Alex March
94aeba0427
tests/extmod/framebuf1: Test framebuffer pixel clear, and text function.
2016-11-03 00:10:17 +11:00
Paul Sokolovsky
be6a765c69
tests/extmod/ticks_diff: Test for new semantics of ticks_diff().
2016-10-30 21:33:12 +03:00
Paul Sokolovsky
1ba4db5685
tests/btree1: Fix out of memory error running on esp8266.
2016-10-29 19:53:31 +03:00
Alex March
cc0cc67815
tests/extmod/uhashlib_sha256: Rename sha256.py test.
2016-10-28 19:51:54 +03:00
Alex March
b83ac44e82
tests/extmod/uhashlib_sha1: Coverage for SHA1 algorithm.
2016-10-28 19:51:46 +03:00
Alex March
fbca4f94b3
tests/extmod/vfs_fat_oldproto: Test old block device protocol.
2016-10-27 12:22:43 +11:00
Alex March
38a9359339
tests/extmod/vfs_fat_fsusermount: Improve fsusermount test coverage.
2016-10-27 12:22:42 +11:00
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.
2016-10-24 12:59:20 +11:00
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
2016-10-24 12:49:19 +11:00
Alex March
e42186d356
tests/extmod/vfs_fat: Replace asserts with prints and expected outputs.
2016-10-13 14:56:47 +03:00
Damien George
11ab807d76
tests/extmod: Add test for ujson.load().
2016-10-13 11:46:49 +11:00
Alex March
f274561e16
tests/extmod/vfs_fat: Test coverage for remove() and rmdir().
2016-10-11 16:03:52 +11:00
Alex March
9fdba0e09c
tests/extmod/uzlib: Test adaptive huffman tree for tinflate coverage.
2016-10-07 01:02:11 +11:00
Alex March
addd1d3db1
tests/extmod/btree1: Checks for put, seq, string print and unsupported binary op.
2016-10-05 00:17:22 +11:00
Alex March
670376c5cb
tests/extmod/vfs_fat_ramdisk: Add test for VFS.statvfs().
2016-09-27 13:48:58 +10:00
Paul Sokolovsky
d46de80162
tests/uzlib_decompio_gz: Test for DecompIO with gzip bitstream.
2016-09-24 15:43:23 +03:00
Damien George
b9672bcbe8
tests/extmod: Add test for machine.time_pulse_us().
2016-09-16 23:31:02 +10:00
Damien George
67a4813601
tests/extmod/urandom: Add urandom tests for error cases.
2016-09-16 12:49:15 +10:00
Damien George
cac8dc3414
tests/extmod/framebuf1: Add tests for scrolling in the x-direction.
2016-09-05 12:08:25 +10:00
Paul Sokolovsky
61e2dfd97d
tests/extmod/uzlib_decompio: Add zlib bitstream testcases.
2016-09-04 14:45:27 +03:00
Damien George
2d8740a4d1
tests/extmod: Add a test for framebuf module, tested by coverage build.
2016-09-04 16:40:40 +10:00
Paul Sokolovsky
fafd587514
tests/extmod: Add test for uzlib.DecompIO.
2016-09-03 00:20:30 +03:00
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.
2016-08-26 23:24:32 +03:00
Paul Sokolovsky
c428367543
extmod/modubinascii: Make crc32() support configurable.
...
Disable by default, enable in unix port.
2016-08-24 18:28:43 +03:00
Pavol Rusnak
39799f7564
extmod/modubinascii: implement binascii.crc32
2016-08-24 10:42:46 +02:00
Paul Sokolovsky
a6fc90f92a
tests/uzlib_decompress: Actually test raw DEFLATE stream.
2016-08-17 06:10:16 +03:00
Paul Sokolovsky
0be4a7712d
tests: Rename zlibd_decompress.py -> uzlib_decompress.py.
...
To use the actual current name.
2016-08-12 22:50:45 +03:00
Paul Sokolovsky
3eb532e974
extmod/modbtree: Implement __contains__ operation.
2016-08-02 00:24:59 +03:00
Paul Sokolovsky
bc3912980a
tests/machine1: Revamp to work with unix port (which has "umachine").
2016-07-31 04:30:48 +03:00
Paul Sokolovsky
eb0e3bab1e
tests/machine_mem.py: Too non-portable, rework as an example for unix port.
2016-07-31 04:22:09 +03:00
Paul Sokolovsky
617bda27e9
tests/extmod/btree1: Tests against in-memory DB (using io.BytesIO).
2016-07-31 02:29:05 +03:00
Paul Sokolovsky
5a38694f55
tests/extmod/btree1: Close database at the end of test.
2016-07-24 00:30:32 +03:00