tests/frozen: Move frozentest.mpy from ports/ to tests/.
frozentest.mpy was previously duplicated in ports/minimal and ports/powerpc. This needs to be re-generated on every .mpy version increase, so might as well just have a single copy of it. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
This commit is contained in:
parent
9ae8d38204
commit
6ecdf1a240
|
@ -81,7 +81,7 @@ else
|
|||
all: $(BUILD)/firmware.elf
|
||||
endif
|
||||
|
||||
$(BUILD)/_frozen_mpy.c: frozentest.mpy $(BUILD)/genhdr/qstrdefs.generated.h
|
||||
$(BUILD)/_frozen_mpy.c: $(TOP)/tests/frozen/frozentest.mpy $(BUILD)/genhdr/qstrdefs.generated.h
|
||||
$(ECHO) "MISC freezing bytecode"
|
||||
$(Q)$(TOP)/tools/mpy-tool.py -f -q $(BUILD)/genhdr/qstrdefs.preprocessed.h -mlongint-impl=none $< > $@
|
||||
|
||||
|
|
|
@ -50,7 +50,7 @@ OBJ += $(BUILD)/head.o
|
|||
|
||||
all: $(BUILD)/firmware.elf $(BUILD)/firmware.map $(BUILD)/firmware.bin
|
||||
|
||||
$(BUILD)/_frozen_mpy.c: frozentest.mpy $(BUILD)/genhdr/qstrdefs.generated.h
|
||||
$(BUILD)/_frozen_mpy.c: $(TOP)/tests/frozen/frozentest.mpy $(BUILD)/genhdr/qstrdefs.generated.h
|
||||
$(ECHO) "MISC freezing bytecode"
|
||||
$(Q)$(MPY_TOOL) -f -q $(BUILD)/genhdr/qstrdefs.preprocessed.h -mlongint-impl=mpz $< > $@
|
||||
|
||||
|
|
Binary file not shown.
|
@ -1,7 +0,0 @@
|
|||
print("uPy")
|
||||
print("a long string that is not interned")
|
||||
print("a string that has unicode αβγ chars")
|
||||
print(b"bytes 1234\x01")
|
||||
print(123456789)
|
||||
for i in range(4):
|
||||
print(i)
|
|
@ -0,0 +1,2 @@
|
|||
This is a .mpy built against the current .mpy version that can be used to test
|
||||
freezing without a dependency on mpy-cross.
|
|
@ -75,8 +75,8 @@ function ci_mpy_format_setup {
|
|||
|
||||
function ci_mpy_format_test {
|
||||
# Test mpy-tool.py dump feature on bytecode
|
||||
python2 ./tools/mpy-tool.py -xd ports/minimal/frozentest.mpy
|
||||
python3 ./tools/mpy-tool.py -xd ports/minimal/frozentest.mpy
|
||||
python2 ./tools/mpy-tool.py -xd tests/frozen/frozentest.mpy
|
||||
python3 ./tools/mpy-tool.py -xd tests/frozen/frozentest.mpy
|
||||
|
||||
# Test mpy-tool.py dump feature on native code
|
||||
make -C examples/natmod/features1
|
||||
|
|
Loading…
Reference in New Issue