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.
2017-08-17 09:25:51 +03:00
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.
2017-07-20 00:20:53 +03:00
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.
2017-07-03 14:52:00 +10:00
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.
2017-07-01 01:25:45 +03:00
Damien George
f55dcddbc7
tests/extmod/vfs_basic: Allow test to pass on embedded targets.
2017-06-11 22:56:27 +10:00
Paul Sokolovsky
85d809d1f4
tests: Convert remaining "sys.exit()" to "raise SystemExit".
2017-06-10 20:34:38 +03:00
Damien George
f6ef8e3f17
extmod/vfs: Allow to statvfs the root directory.
2017-06-07 15:17:45 +10:00
Paul Sokolovsky
054a381d7c
tests/extmod/vfs_fat_more: Make skippable is uos is not available.
...
Fixes Zephyr tests.
2017-05-13 14:13:53 +03:00
Damien George
cda09727b4
tests/extmod/vfs_fat: Add test for ilistdir of a non-existent directory.
2017-05-13 19:10:15 +10:00
Damien George
852c215d76
tests/extmod/vfs: Update tests to reflect new ilistdir() method.
2017-05-10 11:39:29 +10:00
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.
2017-05-09 15:50:40 +10:00
Damien George
1b3e372418
tests/extmod: Add some more VFS tests.
2017-05-05 20:15:10 +10:00
Damien George
6c8b57a902
tests/extmod: Add more tests for VFS FAT.
2017-05-05 20:15:10 +10:00
Paul Sokolovsky
9e8f316392
extmod/moductypes: Fix bigint handling for 32-bit ports.
2017-04-21 16:43:21 +03:00
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.
2017-04-15 21:01:47 +03:00
Damien George
967cad7434
tests/extmod/utimeq1: Improve coverage of utimeq module.
2017-04-13 23:34:28 +10:00
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.
2017-04-04 17:38:33 +10:00
Paul Sokolovsky
499ea8b253
tests/extmod/vfs_fat_fileio*: Improve skippability.
...
Should be skipped on missing uso, uerrno modules.
2017-04-03 00:14:57 +03:00
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.
2017-04-02 22:02:11 +03:00
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.
2017-03-20 16:21:47 +11:00
Rami Ali
8a57cacd78
tests/extmod: Improve tinfgzip.c test coverage.
2017-03-14 22:13:36 +11:00
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.
2017-03-14 22:08:37 +11:00
Rami Ali
4e86ca398f
tests/extmod: Improve re1.5/recursiveloop.c test coverage.
2017-03-14 17:17:45 +11:00
Damien George
773b0bac41
tests/extmod/vfs_basic: Add more tests for basic VFS functionality.
2017-03-14 16:07:30 +11:00
Damien George
8891b2e700
tests/extmod: Add a test for core VFS functionality, sans any filesystem.
2017-03-13 21:42:02 +11:00