mirror of
https://github.com/micropython/micropython.git
synced 2026-04-24 01:40:22 +02:00
tests: Rename "tests/frozen" into "tests/assets".
This commit renames the "tests/frozen" directory into "tests/assets" to make it more explicit that it does contain files that are needed for other tests to function. Right now there's only a single pre-compiled module being used for miscellaneous tests, but it will soon hold ROMFS test data as well. Signed-off-by: Alessandro Gatti <a.gatti@frob.it>
This commit is contained in:
committed by
Damien George
parent
75441f49ad
commit
67de20ae0a
@@ -74,7 +74,7 @@ else
|
||||
all: $(BUILD)/firmware.elf
|
||||
endif
|
||||
|
||||
$(BUILD)/_frozen_mpy.c: $(TOP)/tests/frozen/frozentest.mpy $(BUILD)/genhdr/qstrdefs.generated.h
|
||||
$(BUILD)/_frozen_mpy.c: $(TOP)/tests/assets/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: $(TOP)/tests/frozen/frozentest.mpy $(BUILD)/genhdr/qstrdefs.generated.h
|
||||
$(BUILD)/_frozen_mpy.c: $(TOP)/tests/assets/frozentest.mpy $(BUILD)/genhdr/qstrdefs.generated.h
|
||||
$(ECHO) "MISC freezing bytecode"
|
||||
$(Q)$(MPY_TOOL) -f -q $(BUILD)/genhdr/qstrdefs.preprocessed.h -mlongint-impl=mpz $< > $@
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
add_library("unix-ffi", "$(MPY_LIB_DIR)/unix-ffi")
|
||||
freeze_as_str("frzstr")
|
||||
freeze_as_mpy("frzmpy")
|
||||
freeze_mpy("$(MPY_DIR)/tests/frozen")
|
||||
freeze_mpy("$(MPY_DIR)/tests/assets")
|
||||
require("ssl")
|
||||
|
||||
+2
-2
@@ -158,7 +158,7 @@ function ci_mpy_format_setup {
|
||||
|
||||
function ci_mpy_format_test {
|
||||
# Test mpy-tool.py dump feature on bytecode
|
||||
python3 ./tools/mpy-tool.py -xd tests/frozen/frozentest.mpy
|
||||
python3 ./tools/mpy-tool.py -xd tests/assets/frozentest.mpy
|
||||
|
||||
# Build MicroPython
|
||||
ci_unix_standard_build
|
||||
@@ -167,7 +167,7 @@ function ci_mpy_format_test {
|
||||
export MICROPYPATH=.
|
||||
|
||||
# Test mpy-tool.py running under MicroPython
|
||||
$micropython ./tools/mpy-tool.py -x -d tests/frozen/frozentest.mpy
|
||||
$micropython ./tools/mpy-tool.py -x -d tests/assets/frozentest.mpy
|
||||
|
||||
# Test mpy-tool.py dump feature on native code
|
||||
make -C examples/natmod/features1
|
||||
|
||||
Reference in New Issue
Block a user