circuitpython/tests
Jeff Epler 05252c87f4
Don't crash when assigning attributes of the GeneratorExit const singleton
2022-10-22 11:37:34 -05:00
..
basics Don't crash when assigning attributes of the GeneratorExit const singleton 2022-10-22 11:37:34 -05:00
circuitpython Fix parsing long dotenv values 2022-10-13 16:41:30 -05:00
circuitpython-manual Refactor dotenv module so that it can be tested on host 2022-10-04 09:51:27 -05:00
cmdline py/showbc: Print unary-op string when dumping bytecode. 2021-11-19 17:05:40 +11:00
cpydiff Merge tag 'v1.18' 2022-02-15 12:36:26 -06:00
extmod extmod/uasyncio/task.py: Fix crash when non-awaited task is awaited. 2022-10-15 14:58:07 -05:00
feature_check
float py/formatfloat: Format all whole-number floats exactly. 2022-08-09 13:43:47 -04:00
import update to py tests and scripts due to black 22.1.0 2022-01-29 17:14:01 -05:00
inlineasm
internal_bench
io Merge tag 'v1.18' 2022-02-15 12:36:26 -06:00
jni
micropython fix test that used MpyError 2022-10-09 20:27:39 -04:00
misc Merge tag 'v1.18' 2022-02-15 12:36:26 -06:00
perf_bench Merge tag 'v1.18' 2022-02-15 12:36:26 -06:00
pybnative
qemu-arm
stress
thread
unicode
unix Refactor dotenv module so that it can be tested on host 2022-10-04 09:51:27 -05:00
vectorio remove unused import 2022-03-19 11:36:23 -05:00
README
pyboard.py countio: add selectable rise and fall detection, pulls 2021-12-31 16:34:58 -05:00
run-internalbench.py
run-multitests.py
run-natmodtests.py Fix all natmod tests to run on x64 2022-02-13 11:18:38 -06:00
run-perfbench.py update to py tests and scripts due to black 22.1.0 2022-01-29 17:14:01 -05:00
run-tests-exp.py
run-tests-exp.sh
run-tests.py Handle tests that just won't stop 2022-10-14 16:40:10 -05:00
skip_if.py

README

This directory contains tests for various functionality areas of MicroPython.
To run all stable tests, run "run-tests.py" 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.py 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.py script uses small scripts in the
feature_check directory to check whether each such feature is present,
and skips the relevant tests if not.

Tests are generally verified by running the test both in MicroPython and
in CPython and comparing the outputs. If the output differs the test fails
and the outputs are saved in a .out and a .exp file respectively.
For tests that cannot be run in CPython, for example because they use
the machine module, a .exp file can be provided next to the test's .py
file. A convenient way to generate that is to run the test, let it fail
(because CPython cannot run it) and then copy the .out file (but not
before checking it manually!)

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.