summaryrefslogtreecommitdiffstatshomepage
path: root/tests/unix/extra_coverage.py
Commit message (Collapse)AuthorAge
* tests/unix: Add coverage test for freezing various objects.Damien George2022-02-28
| | | | Signed-off-by: Damien George <damien@micropython.org>
* py/modio: Remove io.resource_stream function.Jim Mussared2021-12-17
| | | | | | This feature is not enabled on any port, it's not in CPython's io module, and functionality is better suited to the micropython-lib implementation of pkg_resources.
* examples: Add example code for user C modules, both C and C++.stijn2020-10-29
| | | | | | | | Add working example code to provide a starting point for users with files that they can just copy, and include the modules in the coverage test to verify the complete user C module build functionality. The cexample module uses the code originally found in cmodules.rst, which has been updated to reflect this and partially rewritten with more complete information.
* esp32,unix: Support building C++ code.stijn2020-10-29
| | | | | | | | | | | | Support building .cpp files and linking them into the micropython executable in a way similar to how it is done for .c files. The main incentive here is to enable user C modules to use C++ files (which are put in SRC_MOD_CXX by py.mk) since the core itself does not utilize C++. However, to verify build functionality a unix overage test is added. The esp32 port already has CXXFLAGS so just add the user modules' flags to it. For the unix port use a copy of the CFLAGS but strip the ones which are not usable for C++.
* tests: Format all Python code with black, except tests in basics subdir.David Lechner2020-03-30
| | | | | | | | | | 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.
* py: Rename MP_QSTR_NULL to MP_QSTRnull to avoid intern collisions.Josh Lloyd2019-09-26
| | | | Fixes #5140.
* py/builtinimport: Populate __file__ when importing frozen or mpy files.Paul m. p. P2019-07-31
| | | | | Note that bytecode already includes the source filename as a qstr so there is no additional memory used by the interning operation here.
* tests/unix/extra_coverage: Don't test stream objs with NULL write fun.Damien George2018-06-18
| | | | | | This behaviour of a NULL write C method on a stream that uses the write adaptor objects is no longer supported. It was only ever used by the coverage build for testing the fail path of mp_get_stream_raise().
* tests/unix: Add coverage test for uio.resource_stream from frozen str.Damien George2018-03-03
|
* tests: Convert remaining "sys.exit()" to "raise SystemExit".Paul Sokolovsky2017-06-10
|
* tests/io: Improve test coverage of io.BufferedWriter.Rami Ali2017-01-17
|
* tests: Improve frozen import test coverage.Rami Ali2017-01-16
|
* tests: Improve stream.c test coverage.Rami Ali2017-01-16
|
* tests/unix/extra_coverage: Add tests for importing frozen packages.Damien George2017-01-08
|
* tests/unix/extra_coverage: Add basic tests to import frozen str and mpy.Damien George2017-01-05
|
* tests/unix/extra_coverage: Add test for str/bytes with invalid hash.Damien George2016-09-02
|
* unix: Make extra-coverage function callable from Python scripts.Damien George2015-05-08
This allows the output of the extra-coverage tests to be checked using the normal run-tests script.