diff options
author | Jim Mussared <jim.mussared@gmail.com> | 2022-09-19 12:05:39 +1000 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2022-09-19 23:51:10 +1000 |
commit | 920da9c5e30da58d5f77b2c5e28c74e3670e6a3b (patch) | |
tree | 6a60c130a453e957d737a652c8d0c974b2fe69c9 /tests | |
parent | 6ecdf1a240e43bd60c824c7efd575c0a82d02d7e (diff) | |
download | micropython-920da9c5e30da58d5f77b2c5e28c74e3670e6a3b.tar.gz micropython-920da9c5e30da58d5f77b2c5e28c74e3670e6a3b.zip |
unix/variants/coverage: Add test for manifest freeze_mpy().
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>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unix/extra_coverage.py | 5 | ||||
-rw-r--r-- | tests/unix/extra_coverage.py.exp | 10 |
2 files changed, 15 insertions, 0 deletions
diff --git a/tests/unix/extra_coverage.py b/tests/unix/extra_coverage.py index bb22485026..00226a68e6 100644 --- a/tests/unix/extra_coverage.py +++ b/tests/unix/extra_coverage.py @@ -96,3 +96,8 @@ import frzmpy3 from frzqstr import returns_NULL print(returns_NULL()) + +# test for freeze_mpy +import frozentest + +print(frozentest.__file__) diff --git a/tests/unix/extra_coverage.py.exp b/tests/unix/extra_coverage.py.exp index 4d6e1e0856..2941154556 100644 --- a/tests/unix/extra_coverage.py.exp +++ b/tests/unix/extra_coverage.py.exp @@ -199,3 +199,13 @@ X '\x1b' b'\x00\xff' NULL +uPy +a long string that is not interned +a string that has unicode αβγ chars +b'bytes 1234\x01' +123456789 +0 +1 +2 +3 +frozentest.py |