circuitpython/tests
Jeff Epler 1059c99f6e
synthio: Add tests of each varying lfo input
I looked at all the results and they pleased me
2023-05-22 10:45:28 -05:00
..
basics Fix memoryview.cast over sliced memoryview 2023-05-18 13:26:50 -07:00
circuitpython synthio: Add tests of each varying lfo input 2023-05-22 10:45:28 -05:00
circuitpython-manual fir filtering demo 2023-05-17 11:13:15 -05:00
cmdline
cpydiff fix typos (partial) detected by codepell 2023-03-18 22:17:02 +07:00
extmod fix typos (partial) detected by codepell 2023-03-18 22:17:02 +07:00
feature_check remove lib from exludes, fix all remaining typos 2023-03-23 13:59:08 +07:00
float
import
inlineasm
internal_bench Merge MicroPython 1.12 into CircuitPython 2021-05-03 14:01:18 -07:00
io
jni Merge MicroPython v1.15 into CircuitPython 2021-05-12 17:51:42 -07:00
micropython
misc remove lib from exludes, fix all remaining typos 2023-03-23 13:59:08 +07:00
perf_bench Fix .bin, .hex and .uf2 with new linker sections 2023-03-20 14:02:57 -07:00
pybnative
qemu-arm
stress
testlib synthio: Add tests of each varying lfo input 2023-05-22 10:45:28 -05:00
thread fix typos (partial) detected by codepell 2023-03-18 22:17:02 +07:00
unicode
unix update tests with new expected results 2023-04-05 12:00:05 -05:00
vectorio
README
pyboard.py
run-internalbench.py
run-multitests.py
run-natmodtests.py
run-perfbench.py Fix .bin, .hex and .uf2 with new linker sections 2023-03-20 14:02:57 -07:00
run-tests-exp.py
run-tests-exp.sh
run-tests.py synthio: Add tests of all synthio math blocks 2023-05-22 10:45:21 -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.