circuitpython/tests
Scott Shawcroft b057fb8a4b
codeformat
2021-04-19 22:22:44 -07:00
..
basics tests/basics/special_methods2: Typo fix in comment. 2018-12-13 01:29:01 +11:00
bench codeformat 2021-04-19 22:22:44 -07:00
cmdline codeformat 2021-04-19 22:22:44 -07:00
cpydiff codeformat 2021-04-19 22:22:44 -07:00
extmod codeformat 2021-04-19 22:22:44 -07:00
feature_check codeformat 2021-04-19 22:22:44 -07:00
float codeformat 2021-04-19 22:22:44 -07:00
import codeformat 2021-04-19 22:22:44 -07:00
inlineasm codeformat 2021-04-19 22:22:44 -07:00
io codeformat 2021-04-19 22:22:44 -07:00
jni codeformat 2021-04-19 22:22:44 -07:00
micropython codeformat 2021-04-19 22:22:44 -07:00
misc codeformat 2021-04-19 22:22:44 -07:00
net_hosted codeformat 2021-04-19 22:22:44 -07:00
net_inet codeformat 2021-04-19 22:22:44 -07:00
pyb codeformat 2021-04-19 22:22:44 -07:00
pybnative codeformat 2021-04-19 22:22:44 -07:00
stress codeformat 2021-04-19 22:22:44 -07:00
thread codeformat 2021-04-19 22:22:44 -07:00
unicode codeformat 2021-04-19 22:22:44 -07:00
unix codeformat 2021-04-19 22:22:44 -07:00
wipy codeformat 2021-04-19 22:22:44 -07:00
README all: Remove trailing spaces, per coding conventions. 2017-07-19 13:12:10 +10:00
run-bench-tests tests/run-bench-tests: Update locations of executables, now in ports/. 2017-09-08 12:11:15 +10:00
run-tests py/compile: Fix case of eager implicit conversion of local to nonlocal. 2018-10-28 00:33:08 +11:00
run-tests-exp.py unix: Rename "_os" module to "uos" for consistency with baremetal ports. 2015-12-12 00:04:35 +02:00
run-tests-exp.sh run-tests-exp.sh: Typo fix in comment. 2015-02-21 03:22:33 +02:00

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.