From 255dd631220dd0095a60bf011548682da9ebf3fd Mon Sep 17 00:00:00 2001 From: Ivan Grokhotkov Date: Mon, 4 May 2020 19:15:43 +0200 Subject: [PATCH] ci: add loadable ELF build system test --- tools/ci/test_build_system_cmake.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tools/ci/test_build_system_cmake.sh b/tools/ci/test_build_system_cmake.sh index 48a156a2f..6526ef2db 100755 --- a/tools/ci/test_build_system_cmake.sh +++ b/tools/ci/test_build_system_cmake.sh @@ -716,6 +716,13 @@ endmenu\n" >> ${IDF_PATH}/Kconfig grep "build/dfu.bin\" has been written. You may proceed with DFU flashing." tmp.log || (tail -n 100 tmp.log ; failure "DFU build should succeed for esp32s2") rm tmp.log assert_built ${APP_BINS} ${BOOTLOADER_BINS} ${PARTITION_BIN} "dfu.bin" + rm -rf build sdkconfig + + print_status "Loadable ELF build works" + echo "CONFIG_APP_BUILD_TYPE_ELF_RAM=y" > sdkconfig + idf.py reconfigure || failure "Couldn't configure for loadable ELF file" + test -f build/flasher_args.json && failure "flasher_args.json should not be generated in a loadable ELF build" + idf.py build || failure "Couldn't build a loadable ELF file" print_status "All tests completed" if [ -n "${FAILURES}" ]; then