micropython/tests
Damien George cd35dd9d9a py: Allow to pass in read-only buffers to viper and inline-asm funcs.
Fixes #4936.
2019-08-06 15:58:23 +10:00
..
basics tests: Add tests for overriding builtins.__import__. 2019-07-31 22:37:44 +10:00
cmdline
cpydiff
extmod py/objdict: Quote non-string types when used as keys in JSON output. 2019-07-30 16:34:27 +10:00
feature_check
float
import tests: Add tests for overriding builtins.__import__. 2019-07-31 22:37:44 +10:00
inlineasm py: Allow to pass in read-only buffers to viper and inline-asm funcs. 2019-08-06 15:58:23 +10:00
internal_bench
io
jni
micropython py: Allow to pass in read-only buffers to viper and inline-asm funcs. 2019-08-06 15:58:23 +10:00
misc
net_hosted
net_inet
perf_bench
pyb
pybnative
stress
thread
unicode
unix py/builtinimport: Populate __file__ when importing frozen or mpy files. 2019-07-31 17:00:11 +10:00
wipy
README
run-internalbench.py
run-perfbench.py tests/run-perfbench.py: Add --emit option to select emitter for tests. 2019-07-19 14:07:41 +10:00
run-tests
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.