micropython/tests
Damien George aeea204e98 tests/basics: Split out specific bytearray tests to separate files.
So they can be automatically skipped if bytearray is not enabled.
2019-10-29 22:22:37 +11:00
..
basics tests/basics: Split out specific bytearray tests to separate files. 2019-10-29 22:22:37 +11:00
cmdline py/compile: Disallow 'import *' outside module level. 2019-10-04 16:46:47 +10:00
cpydiff tests/cpydiff: Fix typo in types_bytes_keywords.py doc comments. 2019-10-21 23:25:09 +11:00
extmod extmod/vfs: Rename BP_IOCTL_xxx constants to MP_BLOCKDEV_IOCTL_xxx. 2019-10-29 14:17:29 +11:00
feature_check tests: Add feature check for bytearray and skip corresponding tests. 2019-10-29 22:22:37 +11:00
float tests: Rename "array" module to "uarray". 2019-10-22 19:16:54 +11:00
import py/persistentcode: Make .mpy more compact with qstr directly in prelude. 2019-10-15 16:56:27 +11:00
inlineasm tests: Rename "array" module to "uarray". 2019-10-22 19:16:54 +11:00
internal_bench tests: Rename "bench" tests to "internal_bench" and run-internalbench.py 2019-06-28 16:28:59 +10:00
io
jni
micropython tests: Rename "array" module to "uarray". 2019-10-22 19:16:54 +11:00
misc tests: Rename "array" module to "uarray". 2019-10-22 19:16:54 +11:00
net_hosted
net_inet
perf_bench tests/perf_bench: Add bm_fft test. 2019-10-15 16:38:11 +11:00
pyb tests/pyb: Update UART expected output now that default timeout is 0. 2019-05-14 14:49:18 +10:00
pybnative
qemu-arm qemu-arm: Add testing of frozen native modules. 2019-08-20 15:14:08 +10:00
stress tests/stress/recursive_iternext.py: Increase large depth to 5000. 2019-07-17 15:52:41 +10:00
thread
unicode
unix unix/coverage: Add coverage tests for ringbuf. 2019-10-01 09:51:02 +10:00
wipy
README
run-internalbench.py tests: Rename "bench" tests to "internal_bench" and run-internalbench.py 2019-06-28 16:28:59 +10:00
run-perfbench.py tests/run-perfbench.py: Skip complex tests if target doesn't enable it. 2019-10-15 16:46:06 +11:00
run-tests tests: Add feature check for bytearray and skip corresponding tests. 2019-10-29 22:22:37 +11: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.