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>
This commit is contained in:
Damien George 2022-04-14 13:10:00 +10:00
parent b8d959d6cf
commit be25e333df
2 changed files with 13 additions and 1 deletions

View File

@ -0,0 +1,10 @@
# Manifest for testing the build.
# Include standard manifest.
include("manifest.py")
# Test freezing @micropython.native code.
freeze("$(MPY_DIR)/tests/micropython", "native_misc.py")
# Test freezing @micropython.viper code.
freeze("$(MPY_DIR)/tests/micropython", "viper_misc.py")

View File

@ -131,7 +131,9 @@ function ci_esp32_build {
source esp-idf/export.sh
make ${MAKEOPTS} -C mpy-cross
make ${MAKEOPTS} -C ports/esp32 submodules
make ${MAKEOPTS} -C ports/esp32 USER_C_MODULES=../../../examples/usercmodule/micropython.cmake FROZEN_MANIFEST=$(pwd)/ports/esp32/boards/manifest.py
make ${MAKEOPTS} -C ports/esp32 \
USER_C_MODULES=../../../examples/usercmodule/micropython.cmake \
FROZEN_MANIFEST=$(pwd)/ports/esp32/boards/manifest_test.py
if [ -d $IDF_PATH/components/esp32c3 ]; then
make ${MAKEOPTS} -C ports/esp32 BOARD=GENERIC_C3
fi