From be25e333dfff076f631e50fd5eec2fa626b2625b Mon Sep 17 00:00:00 2001 From: Damien George Date: Thu, 14 Apr 2022 13:10:00 +1000 Subject: [PATCH] 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 --- ports/esp32/boards/manifest_test.py | 10 ++++++++++ tools/ci.sh | 4 +++- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 ports/esp32/boards/manifest_test.py diff --git a/ports/esp32/boards/manifest_test.py b/ports/esp32/boards/manifest_test.py new file mode 100644 index 000000000..87c5b7be9 --- /dev/null +++ b/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") diff --git a/tools/ci.sh b/tools/ci.sh index bf60d788a..0faf1bc71 100755 --- a/tools/ci.sh +++ b/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