circuitpython/tests
Damien George 1e1779eacf py: Reluctantly add an extra pass to bytecode compiler.
Bytecode also needs a pass to compute the stack size.  This is because
the state size of the bytecode function is encoded as a variable uint,
so we must know the value of this uint before we encode it (otherwise
the size of the generated code changes from one pass to the next).

Having an entire pass for this seems wasteful (in time).  Alternative is
to allocate fixed space for the state size (would need 3-4 bytes to be
general, when 1 byte is usually sufficient) which uses a bit of extra
RAM per bytecode function, and makes the code less elegant in places
where this uint is encoded/decoded.

So, for now, opt for an extra pass.
2015-01-14 00:20:28 +00:00
..
basics py: Reluctantly add an extra pass to bytecode compiler. 2015-01-14 00:20:28 +00:00
bench py: Use sequence of strings for named tuple initialization 2015-01-01 14:53:23 +02:00
bytecode fix README to match contents of run-tests 2014-04-16 20:14:38 +01:00
extmod tests: sha256: skip test if uhashlib module is not available. 2014-12-18 00:32:15 +02:00
float tests: Separate out test cases that rely on float support to float/ dir. 2015-01-08 15:41:37 +00:00
import py: Implement __file__ attribute for modules. 2014-07-28 21:21:59 +03:00
inlineasm tests: Add inline assembler test for pyboard. 2014-05-07 18:31:14 +01:00
io py: Make stream seek correctly check for ioctl fn; add seek for textio. 2014-11-16 23:56:37 +00:00
micropython asmarm: Fix bug with encoding small negative ints using MVN instruction. 2014-12-14 03:24:17 +02:00
misc tests: Get misc/print_exception and pyb/spi working on pyboard. 2014-12-18 13:37:56 +00:00
pyb tests: Get misc/print_exception and pyb/spi working on pyboard. 2014-12-18 13:37:56 +00:00
pybnative py: Fix stack access in thumb native emitter. 2014-05-07 23:27:45 +01:00
unicode Use mode/encoding kwargs in io and unicode tests 2014-10-21 22:10:38 +03:00
unix tests: Make ffi_callback.py be able to run on uclibc and macosx. 2015-01-10 00:35:48 +02:00
pyboard.py tests: Add a suite of tests specifically for the pyboard. 2014-05-03 16:43:27 +01:00
README tests: Split out those tests requiring float and import. 2014-04-17 16:21:43 +01:00
run-bench-tests tests: Add framework for comparative benchmarking. 2014-05-05 01:24:16 +03:00
run-tests py: Temporary fix for conversion of float to int when fits in small int. 2015-01-07 12:10:47 +00:00
run-tests-exp.py tests: Add run-tests-exp.py, simple MicroPython-based test runner. 2014-12-24 16:34:05 +00:00
run-tests-exp.sh tests: Force skip of LE test on non-LE arch; improve run-tests-exp.sh. 2014-10-06 17:35:46 +00:00

This directory contains tests for various functionality areas of MicroPython.
To run all stable tests, run "run-tests" script in this directory. Note
that bytecode tests are not yet stable and should be run separately in
"bytecode" subdirectory.

When creating new tests, anything that relies on float support should go in the 
float/ subdirectory.  Anything that relies on import x, where x is not a built-in
module, should go in the import/ subdirectory.