micropython/tests
Damien George b8f9ac5411 py: Implement ptr32 load and store in viper emitter. 2015-10-13 00:50:17 +01:00
..
basics tests: Add test for evaluation order of dictionary key/value pairs. 2015-10-08 13:15:07 +01:00
bench
cmdline unix: Add exit and paste-mode hints to shell startup banner. 2015-10-12 00:19:00 +01:00
extmod
feature_check unix: Add exit and paste-mode hints to shell startup banner. 2015-10-12 00:19:00 +01:00
float py: Catch all cases of integer (big and small) division by zero. 2015-10-01 22:48:48 +01:00
import
inlineasm
io
micropython py: Implement ptr32 load and store in viper emitter. 2015-10-13 00:50:17 +01:00
misc tests: Allow tests to pass against CPython 3.5. 2015-10-02 13:01:47 +01:00
pyb tests: In pyb RTC tests, check wakeup register values. 2015-10-09 23:06:05 +01:00
pybnative
unicode
unix tests: Add further tests for mpz code. 2015-10-01 18:49:37 +01:00
wipy
README
pyboard.py
run-bench-tests Rename "Micro Python" to "MicroPython" in REPL, help, readme's and misc. 2015-10-12 00:06:25 +01:00
run-tests Rename "Micro Python" to "MicroPython" in REPL, help, readme's and misc. 2015-10-12 00:06:25 +01:00
run-tests-exp.py
run-tests-exp.sh

README

This directory contains tests for various functionality areas of MicroPython.
To run all stable tests, run "run-tests" script in this directory.

Tests of capabilities not supported on all platforms should be written
to check for the capability being present. If it is not, the test
should merely output 'SKIP' followed by the line terminator, and call
sys.exit() to raise SystemExit, instead of attempting to test the
missing capability. The testing framework (run-tests in this
directory, test_main.c in qemu_arm) recognizes this as a skipped test.

There are a few features for which this mechanism cannot be used to
condition a test. The run-tests script uses small scripts in the
feature_check directory to check whether each such feature is present,
and skips the relevant tests if not.

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.