Damien George
46b35356e1
extmod/modframebuf: Add 8-bit greyscale format (GS8).
7 years ago
Petr Viktorin
34247465c3
extmod/modframebuf: Add 2-bit color format (GS2_HMSB).
This format is used in 2-color LED matrices and in e-ink displays like
SSD1606.
7 years ago
Damien George
3c28df1658
tests/extmod: Add test which subclasses framebuf.FrameBuffer.
7 years ago
Damien George
98dd126e98
tests/extmod: Add test for '-' in character class in regex.
7 years ago
Paul Sokolovsky
8e0b9f495b
tests/extmod: Add test for ure regexes leading to infinite recursion.
These now should be caught properly and lead to RuntimeError instead of
crash.
7 years ago
Alex Robbins
c89254fd0f
extmod/modubinascii: Rewrite mod_binascii_a2b_base64.
This implementation ignores invalid characters in the input. This allows
it to decode the output of b2a_base64, and also mimics the behavior of
CPython.
7 years ago
Paul Sokolovsky
4368ae3142
extmod/modussl_axtls: Allow to close ssl stream multiple times.
Make sure that 2nd close has no effect and operations on closed streams
are handled properly.
7 years ago
Damien George
b86c65d31c
extmod/modubinascii: Add check for empty buffer passed to hexlify.
Previous to this patch hexlify(b'', b':') would lead to a bad crash due to
the computed length of the result being -1=0xffffffff.
7 years ago
Paul Sokolovsky
58b7b01cb5
extmod/modure: If input string is bytes, return bytes results too.
This applies to match.group() and split().
For ARM Thumb2, this increased code size by 12 bytes.
7 years ago
Damien George
f55dcddbc7
tests/extmod/vfs_basic: Allow test to pass on embedded targets.
8 years ago
Paul Sokolovsky
85d809d1f4
tests: Convert remaining "sys.exit()" to "raise SystemExit".
8 years ago
Damien George
f6ef8e3f17
extmod/vfs: Allow to statvfs the root directory.
8 years ago
Paul Sokolovsky
054a381d7c
tests/extmod/vfs_fat_more: Make skippable is uos is not available.
Fixes Zephyr tests.
8 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
9bd67d9fbc
tests/extmod: Make some vfs tests fully unmount FSs before running.
Otherwise the existing FSs can interfere with the tests, and in some
cases the tests can write to the real FS on the device.
8 years ago
Damien George
1b3e372418
tests/extmod: Add some more VFS tests.
8 years ago
Damien George
6c8b57a902
tests/extmod: Add more tests for VFS FAT.
8 years ago
Paul Sokolovsky
9e8f316392
extmod/moductypes: Fix bigint handling for 32-bit ports.
8 years ago
Damien George
61616e84ce
extmod/machine_signal: Rename "inverted" arg to "invert", it's shorter.
A shorter name takes less code size, less room in scripts and is faster to
type at the REPL.
Tests and HW-API examples are updated to reflect the change.
8 years ago
Damien George
967cad7434
tests/extmod/utimeq1: Improve coverage of utimeq module.
8 years ago
Peter Hinch
468c6f9da1
extmod/modframebuf: Make monochrome bitmap formats start with MONO_.
MONO_xxx is much easier to read if you're not familiar with the code.
MVLSB is deprecated but kept for backwards compatibility, for the time
being.
This patch also updates the associated docs and tests.
8 years ago
Paul Sokolovsky
499ea8b253
tests/extmod/vfs_fat_fileio*: Improve skippability.
Should be skipped on missing uso, uerrno modules.
8 years ago
Paul Sokolovsky
b9e9cfcfc1
tests: vfs_fat_fileio.py is too big to be parsed in 16K heap, split in 2.
This restores ability to run testsuite with 16K heap.
8 years ago
Peter Hinch
231cfc84a7
extmod/modframebuf: Add support for monochrome horizontal format.
MHLSB and MHMSB formats are added to the framebuf module, which have 8
adjacent horizontal pixels represented in a single byte.
8 years ago
Rami Ali
8a57cacd78
tests/extmod: Improve tinfgzip.c test coverage.
8 years ago
Damien George
a49a96bb5d
tests/extmod/vfs_basic: Unmount all existing devices before doing test.
This is so the test can run successfully on targets that already have
something mounted.
8 years ago
Rami Ali
4e86ca398f
tests/extmod: Improve re1.5/recursiveloop.c test coverage.
8 years ago
Damien George
773b0bac41
tests/extmod/vfs_basic: Add more tests for basic VFS functionality.
8 years ago
Damien George
8891b2e700
tests/extmod: Add a test for core VFS functionality, sans any filesystem.
8 years ago
Damien George
f07a56fa3b
tests/extmod: Rename websocket test to websocket_basic.
This is so that the filename of the test doesn't clash with the module name
itself (being "websocket"), and lead to potential problems executing the
test.
8 years ago
Alex March
ce0b5e078b
tests/extmod: Add websocket tests.
These short unit tests test the base uPy methods as well as parts of the
websocket protocol, as implemented by uPy.
@dpgeorge converted the original socket based tests by @hosaka to ones
that only require io.BytesIO.
8 years ago
Damien George
38f063ea72
tests/extmod: Add very basic feature test for ussl module.
This test just tests that the basic functions/methods can be called with
the appropriate arguments. There is no real test of underlying
functionality.
Thanks to @hosaka for the initial implementation of this test.
8 years ago
Paul Sokolovsky
bdd48e67ee
tests/uctypes_array_assign_native_le: Split off intbig part.
8 years ago
Damien George
ecc635d551
tests/extmod: Add test for machine.Signal class.
8 years ago
Paul Sokolovsky
f2d732f459
tests/extmod: Make tests skippable.
8 years ago
Paul Sokolovsky
d5e9ab6e61
extmod/machine_pulse: Make time_pulse_us() not throw exceptions.
machine.time_pulse_us() is intended to provide very fine timing, including
while working with signal bursts, where each transition is tracked in row.
Throwing and handling an exception may take too much time and "signal loss".
So instead, in case of a timeout, just return negative value. Cases of
timeout while waiting for initial signal stabilization, and during actual
timing, are recognized.
The documentation is updated accordingly, and rewritten somewhat to clarify
the function behavior.
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
Damien George
221f88d1f3
tests/extmod: Add test for ure debug printing when compiling a regex.
8 years ago
Damien George
bf51200bc1
tests/extmod/framebuf1: Fix test for framebuf invalid constructor.
8 years ago
Oleg Korsak
406fb3cb60
tests/extmod/framebuf4: Add tests for GS4_HMSB framebuf format.
8 years ago
Oleg Korsak
fd99690f18
extmod/modframebuf: Add GS4_HMSB format.
8 years ago
Damien George
4c4f586e2c
tests/extmod/framebuf1: Add test for no-op fill_rect.
8 years ago
Rami Ali
5e80c53c11
tests/extmod: Improve test coverage of ure module.
8 years ago
Rami Ali
c15ebf7c8c
tests/extmod: Improve ubinascii.c test coverage.
8 years ago
Paul Sokolovsky
492c612f9d
tests/utimeq_stable: Test for partial stability of utimeq queuing.
8 years ago
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
.
8 years ago
Paul Sokolovsky
5d9025a76e
tests/extmod: Add test for utimeq module.
8 years ago