summaryrefslogtreecommitdiffstatshomepage
path: root/tests/unix/extra_coverage.py
Commit message (Collapse)AuthorAge
* tests: Move port-specific test directories into tests/ports/ directory.Damien George2024-01-22
| | | | | | To keep them all together, mirroring the top-level directory structure. Signed-off-by: Damien George <damien@micropython.org>
* tests: Replace umodule with module everywhere.Jim Mussared2023-06-08
| | | | | | This work was funded through GitHub Sponsors. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
* examples/usercmodule: Add a sub-package example.Jim Mussared2023-06-01
| | | | | | | | | | | This demonstrates how to add a sub-package in a user c module, as well as how to define the necessary qstrs and enable the feature in the build. This is used by the unix coverage build to test this feature. This work was funded through GitHub Sponsors. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
* tests/misc: Add test for cexample module.Laurens Valk2022-11-23
| | | | | | | This also moves the existing test for cexample.add_ints originally done in extra_coverage. Signed-off-by: Laurens Valk <laurens@pybricks.com>
* unix/variants/coverage: Add test for manifest freeze_mpy().Jim Mussared2022-09-19
| | | | | | | | | | | | This uses the frozentest.mpy that is also used by ports/minimal. Also fixes two bugs that these new tests picked up: - File extension matching in manifestfile.py. - Handling of freeze_mpy results in makemanifest. This work was funded through GitHub Sponsors. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
* 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.