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>
This commit is contained in:
Jim Mussared
2022-09-19 12:05:39 +10:00
committed by Damien George
parent 6ecdf1a240
commit 920da9c5e3
5 changed files with 32 additions and 7 deletions

View File

@@ -96,3 +96,8 @@ import frzmpy3
from frzqstr import returns_NULL
print(returns_NULL())
# test for freeze_mpy
import frozentest
print(frozentest.__file__)

View File

@@ -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