micropython/tests
Daniel Campora ef369249cb cc3200: Implement support for os.dupterm(). 2015-09-27 11:27:24 +02:00
..
basics py: Fix call args when a stararg is followed by keyword args. 2015-09-23 11:37:00 +01:00
bench
cmdline tests: Add escaped quotes tests for REPL. 2015-09-19 14:06:23 +01:00
extmod
feature_check
float
import
inlineasm
io
micropython
misc
pyb
pybnative
unicode
unix
wipy cc3200: Implement support for os.dupterm(). 2015-09-27 11:27:24 +02:00
README tests/README: Explain how tests get skipped 2015-09-15 20:05:05 +03:00
pyboard.py
run-bench-tests
run-tests tests: Omit process output parsing in case of CalledProcessError 2015-09-23 11:50:24 +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.