aboutsummaryrefslogtreecommitdiff
path: root/tests/feature_check
AgeCommit message (Collapse)Author
2021-04-15tests/feature_check: Check for lack of pass result rather than failure.Damien George
Commit cb68a5741aba5d4935428674234a9d643f97405f broke automatic Python feature detection when running tests, because some detection relied on a crash of a feature script returning exactly b"CRASH". This commit fixes this and improves the situation by testing for the lack of a known pass result, rather than an exact failure result. Signed-off-by: Damien George <damien@micropython.org>
2021-03-12tests: Rename run-tests to run-tests.py for consistency.Damien George
Signed-off-by: Damien George <damien@micropython.org>
2020-09-04all: Rename "sys" module to "usys".stijn
This is consistent with the other 'micro' modules and allows implementing additional features in Python via e.g. micropython-lib's sys. Note this is a breaking change (not backwards compatible) for ports which do not enable weak links, as "import sys" must now be replaced with "import usys".
2020-03-30tests: Format all Python code with black, except tests in basics subdir.David Lechner
This adds the Python files in the tests/ directory to be formatted with ./tools/codeformat.py. The basics/ subdirectory is excluded for now so we aren't changing too much at once. In a few places `# fmt: off`/`# fmt: on` was used where the code had special formatting for readability or where the test was actually testing the specific formatting.
2020-01-12lib/mp-readline: Add word-based move/delete EMACS key sequences.Yonatan Goldschmidt
This commit adds backward-word, backward-kill-word, forward-word, forward-kill-word sequences for the REPL, with bindings to Alt+F, Alt+B, Alt+D and Alt+Backspace respectively. It is disabled by default and can be enabled via MICROPY_REPL_EMACS_WORDS_MOVE. Further enabling MICROPY_REPL_EMACS_EXTRA_WORDS_MOVE adds extra bindings for these new sequences: Ctrl+Right, Ctrl+Left and Ctrl+W. The features are enabled on unix micropython-coverage and micropython-dev.
2019-10-29tests: Add feature check for uio module and skip corresponding tests.Damien George
2019-10-29tests: Add feature check for slice and skip corresponding tests.Damien George
2019-10-29tests: Add feature check for bytearray and skip corresponding tests.Damien George
2017-09-10tests/class_reverse_op: Test for reverse arith ops special methods.Paul Sokolovsky
This test should be run only if support for reverse ops is enabled, so the corresponding feature_check is added to run-tests.
2017-06-26tests: Auto detect floating point capabilites of the target.Damien George
The floating-point precision of the target is detected (0, 30, 32 or 64) and only those tests which can run on the target will be run.
2017-04-02run-tests: Add feature check for "const" keyword and skip related tests.Paul Sokolovsky
2017-03-10tests/feature_check/int_big: Rework "big int" detection.Paul Sokolovsky
MICROPY_LONGINT_IMPL_LONGLONG doesn't have overflow detection, so just parsing a large number won't give an error, we need to print it out to check that the whole number was parsed.
2017-03-03tests/run-tests: Check for big int availability and skip related tests.Paul Sokolovsky
Big aka arbitrary-precision integers (implemented by MPZ module) are used in tests starting with "int_big_" or ending with "_intbig".
2017-02-14tests/run-tests: Allow to skip tests using async/await keywords.Paul Sokolovsky
2017-01-05tests/run-tests: Allow to skip set tests.Paul Sokolovsky
If sets are not enabled, set literals lead to SyntaxError during parsing, so it requires feature_check. Set tests are skipped based on set_*.py pattern.
2016-12-22tests: Add a coverage test for printing the parse-tree.Damien George
2015-12-06tests: Actuall add feature check for complex type being available.Paul Sokolovsky
2015-10-12unix: Add exit and paste-mode hints to shell startup banner.Damien George
Thanks to @nyov for the initial patch.
2015-10-12Rename "Micro Python" to "MicroPython" in REPL, help, readme's and misc.Damien George
2015-08-30tests: Consolidate all feature check snippets under feature_check/.Paul Sokolovsky
2015-08-30tests: Add feature_check dir to collect capability detection scripts.Paul Sokolovsky
Which are currently intermixed with real scripts and spread around various dirs.