Browse Source

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>
pull/8531/head
Damien George 3 years ago
parent
commit
be25e333df
  1. 10
      ports/esp32/boards/manifest_test.py
  2. 4
      tools/ci.sh

10
ports/esp32/boards/manifest_test.py

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

4
tools/ci.sh

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

Loading…
Cancel
Save