mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-04 05:04:33 +02:00
Merge branch 'feature/remove_component_manager_tests_v4.3' into 'release/v4.3'
ci: Remove component manager test from build system tests (v4.3) See merge request espressif/esp-idf!16107
This commit is contained in:
@@ -701,20 +701,8 @@ endmenu\n" >> ${IDF_PATH}/Kconfig
|
||||
git checkout CMakeLists.txt
|
||||
rm -f log.txt
|
||||
|
||||
print_status "Compiles with dependencies delivered by component manager"
|
||||
clean_build_dir
|
||||
# Make sure that component manager is not installed
|
||||
pip uninstall -y idf_component_manager
|
||||
printf "\n#include \"test_component.h\"\n" >> main/main.c
|
||||
printf "dependencies:\n test_component:\n path: test_component\n git: ${COMPONENT_MANAGER_TEST_REPO}\n" >> idf_project.yml
|
||||
! idf.py build || failure "Build should fail if dependencies are not installed"
|
||||
pip install ${COMPONENT_MANAGER_REPO} || failure "Failed to install the component manager"
|
||||
idf.py reconfigure build || failure "Build didn't succeed with required components installed by package manager"
|
||||
pip uninstall -y idf_component_manager
|
||||
rm idf_project.yml
|
||||
git checkout main/main.c
|
||||
|
||||
print_status "Build fails if partitions don't fit in flash"
|
||||
clean_build_dir
|
||||
sed -i.bak "s/CONFIG_ESPTOOLPY_FLASHSIZE.\+//" sdkconfig # remove all flashsize config
|
||||
echo "CONFIG_ESPTOOLPY_FLASHSIZE_1MB=y" >> sdkconfig # introduce undersize flash
|
||||
( idf.py build 2>&1 | grep "does not fit in configured flash size 1MB" ) || failure "Build didn't fail with expected flash size failure message"
|
||||
@@ -837,7 +825,6 @@ endmenu\n" >> ${IDF_PATH}/Kconfig
|
||||
rm -rf "$IDF_PATH/example_proj"
|
||||
|
||||
|
||||
|
||||
print_status "All tests completed"
|
||||
if [ -n "${FAILURES}" ]; then
|
||||
echo "Some failures were detected:"
|
||||
|
Reference in New Issue
Block a user