circuitpython/tests/extmod
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.
2017-02-05 14:20:17 +03:00
..
btree1.py tests/extmod/btree1: Exercise btree.flush(). 2016-12-05 01:55:05 +03:00
btree1.py.exp tests/extmod/btree1: Checks for put, seq, string print and unsupported binary op. 2016-10-05 00:17:22 +11:00
framebuf1.py tests/extmod/framebuf1: Fix test for framebuf invalid constructor. 2017-01-25 23:23:50 +11:00
framebuf1.py.exp tests/extmod: Improve modframebuf test coverage. 2016-12-13 16:29:21 +11:00
framebuf4.py tests/extmod/framebuf4: Add tests for GS4_HMSB framebuf format. 2017-01-25 23:20:19 +11:00
framebuf4.py.exp tests/extmod/framebuf4: Add tests for GS4_HMSB framebuf format. 2017-01-25 23:20:19 +11:00
framebuf16.py tests/extmod: Improve modframebuf test coverage. 2016-12-13 16:29:21 +11:00
framebuf16.py.exp extmod/modframebuf: Make FrameBuffer handle 16bit depth. 2016-12-01 16:43:25 +11:00
machine1.py tests/machine1: Revamp to work with unix port (which has "umachine"). 2016-07-31 04:30:48 +03:00
machine1.py.exp
machine_pinbase.py tests/extmod/machine_pinbase: Skip if machine.PinBase is not available. 2016-07-17 16:30:24 +03:00
machine_pinbase.py.exp tests: Add a testcase for machine.PinBase class. 2016-06-19 19:45:29 +03:00
machine_pulse.py extmod/machine_pulse: Make time_pulse_us() not throw exceptions. 2017-02-05 14:20:17 +03:00
machine_pulse.py.exp extmod/machine_pulse: Make time_pulse_us() not throw exceptions. 2017-02-05 14:20:17 +03:00
ticks_diff.py tests/extmod/ticks_diff: Test for new semantics of ticks_diff(). 2016-10-30 21:33:12 +03:00
ticks_diff.py.exp tests/extmod/ticks_diff: Test for new semantics of ticks_diff(). 2016-10-30 21:33:12 +03:00
time_ms_us.py tests/extmod: Add tests for sleep_ms/us(), ticks_ms/us/diff(). 2015-10-20 01:54:20 +03:00
time_ms_us.py.exp tests/extmod: Add tests for sleep_ms/us(), ticks_ms/us/diff(). 2015-10-20 01:54:20 +03:00
ubinascii_a2b_base64.py tests/extmod: Improve ubinascii.c test coverage. 2016-12-29 13:22:19 +11:00
ubinascii_b2a_base64.py tests/extmod: Improve ubinascii.c test coverage. 2016-12-29 13:22:19 +11:00
ubinascii_crc32.py extmod/modubinascii: Make crc32() support configurable. 2016-08-24 18:28:43 +03:00
ubinascii_hexlify.py
ubinascii_micropython.py tests/extmod: Improve ubinascii.c test coverage. 2016-12-29 13:22:19 +11:00
ubinascii_micropython.py.exp tests/extmod: Improve ubinascii.c test coverage. 2016-12-29 13:22:19 +11:00
ubinascii_unhexlify.py tests/extmod: Improve ubinascii.c test coverage. 2016-12-29 13:22:19 +11:00
uctypes_array_assign_le.py tests/uctypes: Test item assignment for scalar arrays. 2016-01-03 20:32:51 +02:00
uctypes_array_assign_le.py.exp tests/uctypes: Test item assignment for scalar arrays. 2016-01-03 20:32:51 +02:00
uctypes_array_assign_native_le.py tests/extmod: Improve moductypes test coverage. 2016-12-12 17:09:14 +11:00
uctypes_array_assign_native_le.py.exp tests/extmod: Improve moductypes test coverage. 2016-12-12 17:09:14 +11:00
uctypes_bytearray.py
uctypes_bytearray.py.exp
uctypes_le.py tests/extmod: Improve moductypes test coverage. 2016-12-12 17:09:14 +11:00
uctypes_le.py.exp tests/extmod: Improve moductypes test coverage. 2016-12-12 17:09:14 +11:00
uctypes_le_float.py extmod/uctypes: Finish support for FLOAT32 and FLOAT64 types. 2016-03-19 21:59:42 +00:00
uctypes_le_float.py.exp extmod/uctypes: Finish support for FLOAT32 and FLOAT64 types. 2016-03-19 21:59:42 +00:00
uctypes_native_float.py extmod/uctypes: Finish support for FLOAT32 and FLOAT64 types. 2016-03-19 21:59:42 +00:00
uctypes_native_float.py.exp extmod/uctypes: Finish support for FLOAT32 and FLOAT64 types. 2016-03-19 21:59:42 +00:00
uctypes_native_le.py tests/extmod: Improve moductypes test coverage. 2016-12-12 17:09:14 +11:00
uctypes_native_le.py.exp tests/extmod: Improve moductypes test coverage. 2016-12-12 17:09:14 +11:00
uctypes_print.py tests/extmod: Improve moductypes test coverage. 2016-12-12 17:09:14 +11:00
uctypes_print.py.exp tests/extmod: Improve moductypes test coverage. 2016-12-12 17:09:14 +11:00
uctypes_ptr_le.py tests: Update for required byteorder arg for int.from_bytes()/to_bytes(). 2016-12-09 22:53:30 +03:00
uctypes_ptr_le.py.exp
uctypes_ptr_native_le.py tests: Update for required byteorder arg for int.from_bytes()/to_bytes(). 2016-12-09 22:53:30 +03:00
uctypes_ptr_native_le.py.exp
uctypes_sizeof.py extmod: Fix uctypes size calculation for bitfields 2016-01-10 23:31:26 +02:00
uctypes_sizeof.py.exp extmod: Fix uctypes size calculation for bitfields 2016-01-10 23:31:26 +02:00
uctypes_sizeof_native.py
uctypes_sizeof_native.py.exp
uhashlib_sha1.py tests/extmod/uhashlib_sha1: Coverage for SHA1 algorithm. 2016-10-28 19:51:46 +03:00
uhashlib_sha256.py tests/extmod/uhashlib_sha256: Rename sha256.py test. 2016-10-28 19:51:54 +03:00
uheapq1.py
ujson_dumps.py
ujson_dumps_extra.py tests: Add tests to improve coverage of objstr.c. 2015-09-03 23:06:18 +01:00
ujson_dumps_extra.py.exp tests: Add tests to improve coverage of objstr.c. 2015-09-03 23:06:18 +01:00
ujson_dumps_float.py
ujson_load.py tests/extmod: Add test for ujson.load(). 2016-10-13 11:46:49 +11:00
ujson_loads.py tests/extmod: Improve ujson coverage. 2016-11-22 15:48:42 +11:00
ujson_loads_float.py
urandom_basic.py tests/extmod/urandom: Add urandom tests for error cases. 2016-09-16 12:49:15 +10:00
urandom_extra.py tests/extmod/urandom: Add urandom tests for error cases. 2016-09-16 12:49:15 +10:00
ure1.py tests/extmod: Improve test coverage of ure module. 2017-01-17 17:42:37 +11:00
ure_debug.py tests/extmod: Add test for ure debug printing when compiling a regex. 2017-01-26 23:45:51 +11:00
ure_debug.py.exp tests/extmod: Add test for ure debug printing when compiling a regex. 2017-01-26 23:45:51 +11:00
ure_error.py
ure_group.py
ure_namedclass.py
ure_split.py tests/extmod: Move split-on-empty-match tests to a separate test file. 2016-04-26 10:19:04 +01:00
ure_split_empty.py tests/extmod: Move split-on-empty-match tests to a separate test file. 2016-04-26 10:19:04 +01:00
ure_split_empty.py.exp tests/extmod: Move split-on-empty-match tests to a separate test file. 2016-04-26 10:19:04 +01:00
ure_split_notimpl.py tests/extmod: Improve test coverage of ure module. 2017-01-17 17:42:37 +11:00
ure_split_notimpl.py.exp tests/extmod: Improve test coverage of ure module. 2017-01-17 17:42:37 +11:00
utimeq1.py tests/extmod: Add test for utimeq module. 2016-12-22 00:31:38 +03:00
utimeq1.py.exp tests/extmod: Add test for utimeq module. 2016-12-22 00:31:38 +03:00
utimeq_stable.py tests/utimeq_stable: Test for partial stability of utimeq queuing. 2016-12-24 00:25:15 +03:00
utimeq_stable.py.exp tests/utimeq_stable: Test for partial stability of utimeq queuing. 2016-12-24 00:25:15 +03:00
uzlib_decompio.py tests/extmod/uzlib_decompio: Add zlib bitstream testcases. 2016-09-04 14:45:27 +03:00
uzlib_decompio.py.exp tests/extmod/uzlib_decompio: Add zlib bitstream testcases. 2016-09-04 14:45:27 +03:00
uzlib_decompio_gz.py tests/uzlib_decompio_gz: Test for DecompIO with gzip bitstream. 2016-09-24 15:43:23 +03:00
uzlib_decompio_gz.py.exp tests/uzlib_decompio_gz: Test for DecompIO with gzip bitstream. 2016-09-24 15:43:23 +03:00
uzlib_decompress.py tests/extmod/uzlib: Test adaptive huffman tree for tinflate coverage. 2016-10-07 01:02:11 +11:00
vfs_fat_fileio.py tests/extmod/vfs_fat: Update tests to work with new VFS sub-system. 2017-01-27 17:21:45 +11:00
vfs_fat_fileio.py.exp tests/extmod/vfs_fat: Update tests to work with new VFS sub-system. 2017-01-27 17:21:45 +11:00
vfs_fat_oldproto.py tests/extmod/vfs_fat: Update tests to work with new VFS sub-system. 2017-01-27 17:21:45 +11:00
vfs_fat_oldproto.py.exp test/extmod: Update vfs_fat tests for new OO FatFs library. 2017-01-27 13:19:10 +11:00
vfs_fat_ramdisk.py tests/extmod/vfs_fat_ramdisk: Make it work on pyboard. 2017-01-27 23:22:15 +11:00
vfs_fat_ramdisk.py.exp tests/extmod/vfs_fat_ramdisk: Make it work on pyboard. 2017-01-27 23:22:15 +11:00