Skip to content

Commit be25e33

Browse files
committed
esp32/boards: Add test manifest to test freezing during build.
Includes tests for freezing @micropython.native and @micropython.viper code. Signed-off-by: Damien George <damien@micropython.org>
1 parent b8d959d commit be25e33

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

ports/esp32/boards/manifest_test.py

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Manifest for testing the build.
2+
3+
# Include standard manifest.
4+
include("manifest.py")
5+
6+
# Test freezing @micropython.native code.
7+
freeze("$(MPY_DIR)/tests/micropython", "native_misc.py")
8+
9+
# Test freezing @micropython.viper code.
10+
freeze("$(MPY_DIR)/tests/micropython", "viper_misc.py")

tools/ci.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,9 @@ function ci_esp32_build {
131131
source esp-idf/export.sh
132132
make ${MAKEOPTS} -C mpy-cross
133133
make ${MAKEOPTS} -C ports/esp32 submodules
134-
make ${MAKEOPTS} -C ports/esp32 USER_C_MODULES=../../../examples/usercmodule/micropython.cmake FROZEN_MANIFEST=$(pwd)/ports/esp32/boards/manifest.py
134+
make ${MAKEOPTS} -C ports/esp32 \
135+
USER_C_MODULES=../../../examples/usercmodule/micropython.cmake \
136+
FROZEN_MANIFEST=$(pwd)/ports/esp32/boards/manifest_test.py
135137
if [ -d $IDF_PATH/components/esp32c3 ]; then
136138
make ${MAKEOPTS} -C ports/esp32 BOARD=GENERIC_C3
137139
fi

0 commit comments

Comments
 (0)