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
Paul Sokolovsky
c3f519adfe
tests/extmod/machine_pinbase: Skip if machine.PinBase is not available.
2016-07-17 16:30:24 +03:00
Paul Sokolovsky
0fb7a7a7ce
tests/btree1: Add testcase for iterating btree object directly.
2016-06-24 23:43:20 +03:00
Paul Sokolovsky
d5835261af
tests/extmod: Add "btree" module test.
2016-06-21 10:00:02 +03:00
Paul Sokolovsky
119b3dabf7
tests: Add a testcase for machine.PinBase class.
2016-06-19 19:45:29 +03:00
Paul Sokolovsky
f0eea1fdf9
tests/extmod/vfs_fat_ramdisk: Add testcases for chdir(), getcwd().
2016-05-29 18:54:14 +03:00
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.
2016-04-26 10:19:04 +01:00
Damien George
da161fd9f0
extmod/uctypes: Finish support for FLOAT32 and FLOAT64 types.
2016-03-19 21:59:42 +00:00
Paul Sokolovsky
2740dd85f2
tests/vfs_fat_ramdisk: Add testcase for .rename().
2016-02-29 01:24:18 +02:00
Paul Sokolovsky
9fb36af9af
tests/vfs_fat_ramdisk: Allow to run in native mode (don't use "with").
2016-02-29 01:03:32 +02:00
Paul Sokolovsky
eaa96a7610
tests/vfs_fat_ramdisk: Add testcase for .mkdir().
2016-02-29 00:06:44 +02:00
Paul Sokolovsky
57425b648f
tests/vfs_fat_ramdisk: Add testcase for .remove().
2016-02-28 20:30:59 +02:00
Paul Sokolovsky
9c081b740b
tests/vfs_fat_ramdisk: Add .listdir() testcase.
2016-02-28 17:19:12 +02:00
Paul Sokolovsky
dfc35afba1
tests/vfs_fat_ramdisk: Skip test if can't allocate ramdisk.
2016-02-15 17:27:57 +02:00
Paul Sokolovsky
9fdac9144d
tests/vfs_fat_ramdisk: Allow to override sector size.
2016-02-14 20:52:38 +02:00
Paul Sokolovsky
9d0525182d
tests/vfs_fat_ramdisk: Switch to ioctl-based blockdev API.
2016-02-14 20:45:08 +02:00
Paul Sokolovsky
0ee1d0f407
tests/vfs_fat_ramdisk: Add test for VfsFat.
2016-02-14 19:15:22 +02:00
Damien George
ac11e89fa3
tests: For urandom test, use sys.exit() instead of sys.exit(1).
2016-01-26 21:57:02 +00:00
Damien George
0ae97f531d
tests: Add some tests for urandom module.
2016-01-26 15:27:00 +00:00
Dave Hylands
66d0c1052a
extmod: Fix uctypes size calculation for bitfields
2016-01-10 23:31:26 +02:00
Antonin ENFRUN
b50030b1d0
tests/uctypes: Test item assignment for scalar arrays.
2016-01-03 20:32:51 +02:00
Dave Hylands
5a4a2b1db3
extmod: Add test which demonstrates LITTLE_ENDIAN packing failure
2015-12-09 21:43:28 +02:00
Paul Sokolovsky
aee704ebe1
extmod/modure: Make sure that errors in regexps are caught early.
2015-11-01 00:38:22 +03:00
Paul Sokolovsky
acea9352a9
tests/extmod: Add tests for sleep_ms/us(), ticks_ms/us/diff().
...
Simple smoke tests, mostly for coverage. Added to extmod based on the fact
that they're extensions to standard modules.
2015-10-20 01:54:20 +03:00
Damien George
25afc7da0d
tests: Add tests to improve coverage of objstr.c.
2015-09-03 23:06:18 +01:00
Paul Sokolovsky
354d17523f
modmachine: Implement physical memory access using /dev/mem (Linux, etc).
...
This requires root access. And on recent Linux kernels, with
CONFIG_STRICT_DEVMEM option enabled, only address ranges listed in
/proc/iomem can be accessed. The above compiled-time option can be
however overriden with boot-time option "iomem=relaxed".
This also removed separate read/write paths - there unlikely would
be a case when they're different.
2015-07-08 11:37:23 +03:00
Damien George
68e8b595de
tests: Catch ValueError instead of any exception to properly test error.
2015-07-06 11:35:08 +00:00
Galen Hazelwood
616986a5f3
extmod: Add a2b_base64 and b2a_base64 functions to ubinascii.
2015-07-04 12:26:52 +03:00
Damien George
e44c1d3ace
tests: Split out json float tests to separate files.
2015-06-25 10:50:00 +01:00
Damien George
f6518a7bd5
tests: Check that machine module exists and print SKIP if it doesn't.
2015-06-15 23:35:15 +01:00
Paul Sokolovsky
1679696612
moductypes: Swap address and descriptor args in constructor.
...
Now address comes first, and args related to struct type are groupped next.
Besides clear groupping, should help catch errors eagerly (e.g. forgetting
to pass address will error out).
Also, improve args number checking/reporting overall.
2015-06-06 22:57:54 +03:00
Dave Hylands
3ad94d6072
extmod: Add ubinascii.unhexlify
...
This also pulls out hex_digit from py/lexer.c and makes unichar_hex_digit
2015-05-20 09:29:22 +01:00
Damien George
0589c19d52
tests: Add test for machine module (mem* functions).
2015-05-08 00:18:28 +01:00
Damien George
e5c4362a98
tests: Add some more tests to improve code coverage of corner cases.
2015-04-05 00:03:43 +01:00
Damien George
f256cfef4f
tests: Add some more tests for complex numbers and ure module.
2015-03-14 22:56:02 +00:00
Damien George
26a9975fba
tests: Add some more tests for bytes, bignum, string and ujson.
2015-03-14 21:20:58 +00:00