diff --git a/tools/test_build_system/test_build.py b/tools/test_build_system/test_build.py index de2d9f3825..bc17a3ebda 100644 --- a/tools/test_build_system/test_build.py +++ b/tools/test_build_system/test_build.py @@ -114,6 +114,15 @@ def test_build_skdconfig_phy_init_data(idf_py: IdfPyFunc, test_app_copy: Path) - logging.info('can build with phy_init_data') (test_app_copy / 'sdkconfig.defaults').touch() (test_app_copy / 'sdkconfig.defaults').write_text('CONFIG_ESP32_PHY_INIT_DATA_IN_PARTITION=y') + + # The phy_init_data.bin file is generated in the esp_phy component, so it + # should be added to the requirements. + replace_in_file( + test_app_copy / 'main' / 'CMakeLists.txt', + search='# placeholder_inside_idf_component_register', + replace='PRIV_REQUIRES esp_phy', + ) + idf_py('reconfigure') idf_py('build') assert_built(BOOTLOADER_BINS + APP_BINS + PARTITION_BIN + ['build/phy_init_data.bin']) @@ -163,6 +172,7 @@ def test_build_fail_on_build_time(idf_py: IdfPyFunc, test_app_copy: Path) -> Non idf_py('build') +@pytest.mark.buildv2_skip('dfu target not yet added in buildv2') @pytest.mark.usefixtures('test_app_copy') def test_build_dfu(idf_py: IdfPyFunc) -> None: logging.info('DFU build works') @@ -178,6 +188,7 @@ def test_build_dfu(idf_py: IdfPyFunc) -> None: assert_built(BOOTLOADER_BINS + APP_BINS + PARTITION_BIN + ['build/dfu.bin']) +@pytest.mark.buildv2_skip('uf2 target not yet added in buildv2') @pytest.mark.usefixtures('test_app_copy') def test_build_uf2(idf_py: IdfPyFunc) -> None: logging.info('UF2 build works') @@ -199,6 +210,11 @@ def test_build_uf2(idf_py: IdfPyFunc) -> None: assert_built(BOOTLOADER_BINS + APP_BINS + PARTITION_BIN + ['build/uf2.bin']) +# The bootloader_support component defines its requirements based on the +# sdkconfig values, specifically the CONFIG_APP_BUILD_TYPE_RAM used in this +# test. If CONFIG_APP_BUILD_TYPE_RAM is set, bootloader_support declares a +# dependency on micro-ecc. +@pytest.mark.buildv2_skip('bootloader_support component CMakeLists.txt is broken') def test_build_loadable_elf(idf_py: IdfPyFunc, test_app_copy: Path) -> None: logging.info('Loadable ELF build works') (test_app_copy / 'sdkconfig').write_text(