diff --git a/components/esp_http_client/test_apps/.build-test-rules.yml b/components/esp_http_client/test_apps/.build-test-rules.yml new file mode 100644 index 0000000000..6b87fd2099 --- /dev/null +++ b/components/esp_http_client/test_apps/.build-test-rules.yml @@ -0,0 +1,8 @@ +# Documentation: .gitlab/ci/README.md#manifest-file-to-control-the-buildtest-apps + +components/esp_http_client/test_apps: + disable: + - if: CONFIG_NAME == "client_only_mbedtls" and IDF_TARGET not in ["esp32c3"] + reason: Testing on one target is enough + depends_components: + - esp_http_client diff --git a/components/esp_http_client/test_apps/pytest_esp_http_client_ut.py b/components/esp_http_client/test_apps/pytest_esp_http_client_ut.py index ec91799b88..84319c9115 100644 --- a/components/esp_http_client/test_apps/pytest_esp_http_client_ut.py +++ b/components/esp_http_client/test_apps/pytest_esp_http_client_ut.py @@ -6,6 +6,7 @@ from pytest_embedded_idf.utils import idf_parametrize @pytest.mark.generic +@idf_parametrize('config', ['default'], indirect=['config']) @idf_parametrize('target', ['supported_targets'], indirect=['target']) def test_esp_http_client(dut: Dut) -> None: dut.run_all_single_board_cases() diff --git a/components/esp_http_client/test_apps/sdkconfig.defaults b/components/esp_http_client/test_apps/sdkconfig.ci.default similarity index 100% rename from components/esp_http_client/test_apps/sdkconfig.defaults rename to components/esp_http_client/test_apps/sdkconfig.ci.default diff --git a/tools/test_apps/system/build_test/sdkconfig.ci.no_https_client b/components/esp_http_client/test_apps/sdkconfig.ci.no_https similarity index 100% rename from tools/test_apps/system/build_test/sdkconfig.ci.no_https_client rename to components/esp_http_client/test_apps/sdkconfig.ci.no_https diff --git a/components/esp_libc/test_apps/.build-test-rules.yml b/components/esp_libc/test_apps/.build-test-rules.yml index 2f99fbdfcf..6f79760bde 100644 --- a/components/esp_libc/test_apps/.build-test-rules.yml +++ b/components/esp_libc/test_apps/.build-test-rules.yml @@ -1,3 +1,5 @@ # Documentation: .gitlab/ci/README.md#manifest-file-to-control-the-buildtest-apps -components/esp_libc/test_apps/newlib: +components/esp_libc/test_apps/no_rvfplib: + disable: + - if: ESP_ROM_HAS_RVFPLIB != 1 diff --git a/components/esp_libc/test_apps/no_rvfplib/CMakeLists.txt b/components/esp_libc/test_apps/no_rvfplib/CMakeLists.txt new file mode 100644 index 0000000000..798a42d024 --- /dev/null +++ b/components/esp_libc/test_apps/no_rvfplib/CMakeLists.txt @@ -0,0 +1,10 @@ +# The following lines of boilerplate have to be in your project's +# CMakeLists in this exact order for cmake to work correctly +cmake_minimum_required(VERSION 3.22) + +include($ENV{IDF_PATH}/tools/cmake/project.cmake) + +# "Trim" the build. Include the minimal set of components, main, and anything it depends on. +idf_build_set_property(MINIMAL_BUILD ON) + +project(test_build) diff --git a/components/esp_libc/test_apps/no_rvfplib/README.md b/components/esp_libc/test_apps/no_rvfplib/README.md new file mode 100644 index 0000000000..dabb0354f5 --- /dev/null +++ b/components/esp_libc/test_apps/no_rvfplib/README.md @@ -0,0 +1,6 @@ +| Supported Targets | ESP32-C2 | ESP32-C5 | ESP32-C6 | ESP32-C61 | ESP32-P4 | +| ----------------- | -------- | -------- | -------- | --------- | -------- | + +This project tests building with the no_rvfplib configuration. + +This project uses MINIMAL_BUILD=y to reduce build time and dependencies. diff --git a/tools/test_apps/system/build_test/main/CMakeLists.txt b/components/esp_libc/test_apps/no_rvfplib/main/CMakeLists.txt similarity index 100% rename from tools/test_apps/system/build_test/main/CMakeLists.txt rename to components/esp_libc/test_apps/no_rvfplib/main/CMakeLists.txt diff --git a/components/esp_libc/test_apps/no_rvfplib/main/test_main.c b/components/esp_libc/test_apps/no_rvfplib/main/test_main.c new file mode 100644 index 0000000000..b908720b32 --- /dev/null +++ b/components/esp_libc/test_apps/no_rvfplib/main/test_main.c @@ -0,0 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD + * + * SPDX-License-Identifier: Unlicense OR CC0-1.0 + */ +void app_main(void) +{ +} diff --git a/tools/test_apps/system/build_test/sdkconfig.ci.no_rvfplib b/components/esp_libc/test_apps/no_rvfplib/sdkconfig.ci.default similarity index 100% rename from tools/test_apps/system/build_test/sdkconfig.ci.no_rvfplib rename to components/esp_libc/test_apps/no_rvfplib/sdkconfig.ci.default diff --git a/components/esp_phy/test_apps/.build-test-rules.yml b/components/esp_phy/test_apps/.build-test-rules.yml new file mode 100644 index 0000000000..d566bdc82a --- /dev/null +++ b/components/esp_phy/test_apps/.build-test-rules.yml @@ -0,0 +1,7 @@ +# Documentation: .gitlab/ci/README.md#manifest-file-to-control-the-buildtest-apps + +components/esp_phy/test_apps/phy_multiple_init_data: + disable: + - if: IDF_TARGET == "esp32p4" # Update with caps here when IDF-7460 is resolved + depends_components: + - esp_phy diff --git a/components/esp_phy/test_apps/phy_multiple_init_data/CMakeLists.txt b/components/esp_phy/test_apps/phy_multiple_init_data/CMakeLists.txt new file mode 100644 index 0000000000..798a42d024 --- /dev/null +++ b/components/esp_phy/test_apps/phy_multiple_init_data/CMakeLists.txt @@ -0,0 +1,10 @@ +# The following lines of boilerplate have to be in your project's +# CMakeLists in this exact order for cmake to work correctly +cmake_minimum_required(VERSION 3.22) + +include($ENV{IDF_PATH}/tools/cmake/project.cmake) + +# "Trim" the build. Include the minimal set of components, main, and anything it depends on. +idf_build_set_property(MINIMAL_BUILD ON) + +project(test_build) diff --git a/components/esp_phy/test_apps/phy_multiple_init_data/README.md b/components/esp_phy/test_apps/phy_multiple_init_data/README.md new file mode 100644 index 0000000000..1909881ff4 --- /dev/null +++ b/components/esp_phy/test_apps/phy_multiple_init_data/README.md @@ -0,0 +1,6 @@ +| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C5 | ESP32-C6 | ESP32-C61 | ESP32-H2 | ESP32-H21 | ESP32-H4 | ESP32-S2 | ESP32-S3 | +| ----------------- | ----- | -------- | -------- | -------- | -------- | --------- | -------- | --------- | -------- | -------- | -------- | + +This project tests building with the phy_multiple_init_data configuration. + +This project uses MINIMAL_BUILD=y to reduce build time and dependencies. diff --git a/components/esp_phy/test_apps/phy_multiple_init_data/main/CMakeLists.txt b/components/esp_phy/test_apps/phy_multiple_init_data/main/CMakeLists.txt new file mode 100644 index 0000000000..51fb15e5f9 --- /dev/null +++ b/components/esp_phy/test_apps/phy_multiple_init_data/main/CMakeLists.txt @@ -0,0 +1,3 @@ +idf_component_register(SRCS "test_main.c" + INCLUDE_DIRS "." + REQUIRES esp_phy) diff --git a/components/esp_phy/test_apps/phy_multiple_init_data/main/test_main.c b/components/esp_phy/test_apps/phy_multiple_init_data/main/test_main.c new file mode 100644 index 0000000000..b908720b32 --- /dev/null +++ b/components/esp_phy/test_apps/phy_multiple_init_data/main/test_main.c @@ -0,0 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD + * + * SPDX-License-Identifier: Unlicense OR CC0-1.0 + */ +void app_main(void) +{ +} diff --git a/tools/test_apps/system/build_test/sdkconfig.ci.phy_multiple_init_data b/components/esp_phy/test_apps/phy_multiple_init_data/sdkconfig.ci.default similarity index 100% rename from tools/test_apps/system/build_test/sdkconfig.ci.phy_multiple_init_data rename to components/esp_phy/test_apps/phy_multiple_init_data/sdkconfig.ci.default diff --git a/components/esp_ringbuf/test_apps/sdkconfig.ci.ringbuf_flash b/components/esp_ringbuf/test_apps/sdkconfig.ci.ringbuf_flash index 5720a764f4..1b496ff861 100644 --- a/components/esp_ringbuf/test_apps/sdkconfig.ci.ringbuf_flash +++ b/components/esp_ringbuf/test_apps/sdkconfig.ci.ringbuf_flash @@ -1 +1,2 @@ CONFIG_RINGBUF_PLACE_ISR_FUNCTIONS_INTO_FLASH=y +CONFIG_COMPILER_OPTIMIZATION_SIZE=y diff --git a/tools/test_apps/system/build_test/sdkconfig.ci.custom_uart b/components/esp_stdio/test_apps/stdio/sdkconfig.ci.custom_uart similarity index 100% rename from tools/test_apps/system/build_test/sdkconfig.ci.custom_uart rename to components/esp_stdio/test_apps/stdio/sdkconfig.ci.custom_uart diff --git a/components/freertos/test_apps/.build-test-rules.yml b/components/freertos/test_apps/.build-test-rules.yml index bf8ffe8b5b..5f04e72ac7 100644 --- a/components/freertos/test_apps/.build-test-rules.yml +++ b/components/freertos/test_apps/.build-test-rules.yml @@ -1,12 +1,15 @@ # Documentation: .gitlab/ci/README.md#manifest-file-to-control-the-buildtest-apps +components/freertos/test_apps/build_tests/freertos_build_test: + disable: + - if: CONFIG_NAME == "timers_disabled" and IDF_TARGET != "esp32" + +components/freertos/test_apps/build_tests/orig_inc_path: + enable: + - if: IDF_TARGET in ["esp32"] + reason: The feature only depends on the build system, nothing target-specific that needs to be tested components/freertos/test_apps/freertos: disable: - if: CONFIG_NAME == "smp" and IDF_TARGET == "esp32p4" temporary: true reason: target(s) not supported yet - -components/freertos/test_apps/orig_inc_path: - enable: - - if: IDF_TARGET in ["esp32"] - reason: The feature only depends on the build system, nothing target-specific that needs to be tested diff --git a/components/freertos/test_apps/build_tests/freertos_build_test/CMakeLists.txt b/components/freertos/test_apps/build_tests/freertos_build_test/CMakeLists.txt new file mode 100644 index 0000000000..3af43826aa --- /dev/null +++ b/components/freertos/test_apps/build_tests/freertos_build_test/CMakeLists.txt @@ -0,0 +1,6 @@ +cmake_minimum_required(VERSION 3.22) + +include($ENV{IDF_PATH}/tools/cmake/project.cmake) + +idf_build_set_property(MINIMAL_BUILD ON) +project(freertos_build_test) diff --git a/components/freertos/test_apps/build_tests/freertos_build_test/README.md b/components/freertos/test_apps/build_tests/freertos_build_test/README.md new file mode 100644 index 0000000000..4dc5fc5657 --- /dev/null +++ b/components/freertos/test_apps/build_tests/freertos_build_test/README.md @@ -0,0 +1,6 @@ +| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C5 | ESP32-C6 | ESP32-C61 | ESP32-H2 | ESP32-H21 | ESP32-H4 | ESP32-P4 | ESP32-S2 | ESP32-S3 | +| ----------------- | ----- | -------- | -------- | -------- | -------- | --------- | -------- | --------- | -------- | -------- | -------- | -------- | + +This project tests building with different FreeRTOS configurations. + +This project uses MINIMAL_BUILD=y to reduce build time and dependencies. diff --git a/components/freertos/test_apps/build_tests/freertos_build_test/main/CMakeLists.txt b/components/freertos/test_apps/build_tests/freertos_build_test/main/CMakeLists.txt new file mode 100644 index 0000000000..f0fb9b8401 --- /dev/null +++ b/components/freertos/test_apps/build_tests/freertos_build_test/main/CMakeLists.txt @@ -0,0 +1,2 @@ +idf_component_register(SRCS "test_main.c" + INCLUDE_DIRS ".") diff --git a/components/freertos/test_apps/build_tests/freertos_build_test/main/test_main.c b/components/freertos/test_apps/build_tests/freertos_build_test/main/test_main.c new file mode 100644 index 0000000000..bc124cdd38 --- /dev/null +++ b/components/freertos/test_apps/build_tests/freertos_build_test/main/test_main.c @@ -0,0 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD + * + * SPDX-License-Identifier: Apache-2.0 + */ +void app_main(void) +{ +} diff --git a/tools/test_apps/system/build_test/sdkconfig.ci.freertos_smp b/components/freertos/test_apps/build_tests/freertos_build_test/sdkconfig.ci.smp similarity index 100% rename from tools/test_apps/system/build_test/sdkconfig.ci.freertos_smp rename to components/freertos/test_apps/build_tests/freertos_build_test/sdkconfig.ci.smp diff --git a/tools/test_apps/system/build_test/sdkconfig.ci.freertos_timers_disabled_esp32 b/components/freertos/test_apps/build_tests/freertos_build_test/sdkconfig.ci.timers_disabled similarity index 100% rename from tools/test_apps/system/build_test/sdkconfig.ci.freertos_timers_disabled_esp32 rename to components/freertos/test_apps/build_tests/freertos_build_test/sdkconfig.ci.timers_disabled diff --git a/components/freertos/test_apps/orig_inc_path/CMakeLists.txt b/components/freertos/test_apps/build_tests/orig_inc_path/CMakeLists.txt similarity index 100% rename from components/freertos/test_apps/orig_inc_path/CMakeLists.txt rename to components/freertos/test_apps/build_tests/orig_inc_path/CMakeLists.txt diff --git a/components/freertos/test_apps/orig_inc_path/README.md b/components/freertos/test_apps/build_tests/orig_inc_path/README.md similarity index 100% rename from components/freertos/test_apps/orig_inc_path/README.md rename to components/freertos/test_apps/build_tests/orig_inc_path/README.md diff --git a/components/freertos/test_apps/orig_inc_path/main/CMakeLists.txt b/components/freertos/test_apps/build_tests/orig_inc_path/main/CMakeLists.txt similarity index 100% rename from components/freertos/test_apps/orig_inc_path/main/CMakeLists.txt rename to components/freertos/test_apps/build_tests/orig_inc_path/main/CMakeLists.txt diff --git a/components/freertos/test_apps/orig_inc_path/main/test_main.c b/components/freertos/test_apps/build_tests/orig_inc_path/main/test_main.c similarity index 100% rename from components/freertos/test_apps/orig_inc_path/main/test_main.c rename to components/freertos/test_apps/build_tests/orig_inc_path/main/test_main.c diff --git a/components/freertos/test_apps/orig_inc_path/sdkconfig.ci.default b/components/freertos/test_apps/build_tests/orig_inc_path/sdkconfig.ci.default similarity index 100% rename from components/freertos/test_apps/orig_inc_path/sdkconfig.ci.default rename to components/freertos/test_apps/build_tests/orig_inc_path/sdkconfig.ci.default diff --git a/components/freertos/test_apps/orig_inc_path/sdkconfig.ci.freertos_smp b/components/freertos/test_apps/build_tests/orig_inc_path/sdkconfig.ci.freertos_smp similarity index 100% rename from components/freertos/test_apps/orig_inc_path/sdkconfig.ci.freertos_smp rename to components/freertos/test_apps/build_tests/orig_inc_path/sdkconfig.ci.freertos_smp diff --git a/components/spi_flash/test_apps/.build-test-rules.yml b/components/spi_flash/test_apps/.build-test-rules.yml index 64f792d0b7..9a6a5ee915 100644 --- a/components/spi_flash/test_apps/.build-test-rules.yml +++ b/components/spi_flash/test_apps/.build-test-rules.yml @@ -84,3 +84,8 @@ components/spi_flash/test_apps/mspi_test: - esp_driver_spi - esptool_py # Some flash related kconfigs are listed here. - esp_hal_mspi + +components/spi_flash/test_apps/no_flash_delay: + disable: + - if: IDF_TARGET not in ["esp32c3"] + reason: Testing on a single target is sufficient diff --git a/components/spi_flash/test_apps/no_flash_delay/CMakeLists.txt b/components/spi_flash/test_apps/no_flash_delay/CMakeLists.txt new file mode 100644 index 0000000000..798a42d024 --- /dev/null +++ b/components/spi_flash/test_apps/no_flash_delay/CMakeLists.txt @@ -0,0 +1,10 @@ +# The following lines of boilerplate have to be in your project's +# CMakeLists in this exact order for cmake to work correctly +cmake_minimum_required(VERSION 3.22) + +include($ENV{IDF_PATH}/tools/cmake/project.cmake) + +# "Trim" the build. Include the minimal set of components, main, and anything it depends on. +idf_build_set_property(MINIMAL_BUILD ON) + +project(test_build) diff --git a/components/spi_flash/test_apps/no_flash_delay/README.md b/components/spi_flash/test_apps/no_flash_delay/README.md new file mode 100644 index 0000000000..49e7c0ed51 --- /dev/null +++ b/components/spi_flash/test_apps/no_flash_delay/README.md @@ -0,0 +1,6 @@ +| Supported Targets | ESP32-C3 | +| ----------------- | -------- | + +This project tests building with the no_flash_delay configuration. + +This project uses MINIMAL_BUILD=y to reduce build time and dependencies. diff --git a/components/spi_flash/test_apps/no_flash_delay/main/CMakeLists.txt b/components/spi_flash/test_apps/no_flash_delay/main/CMakeLists.txt new file mode 100644 index 0000000000..1df31fac80 --- /dev/null +++ b/components/spi_flash/test_apps/no_flash_delay/main/CMakeLists.txt @@ -0,0 +1,2 @@ +idf_component_register(SRCS "test_main.c" + INCLUDE_DIRS ".") diff --git a/components/spi_flash/test_apps/no_flash_delay/main/test_main.c b/components/spi_flash/test_apps/no_flash_delay/main/test_main.c new file mode 100644 index 0000000000..b908720b32 --- /dev/null +++ b/components/spi_flash/test_apps/no_flash_delay/main/test_main.c @@ -0,0 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD + * + * SPDX-License-Identifier: Unlicense OR CC0-1.0 + */ +void app_main(void) +{ +} diff --git a/tools/test_apps/system/build_test/sdkconfig.ci.no_flash_delay b/components/spi_flash/test_apps/no_flash_delay/sdkconfig.ci.default similarity index 100% rename from tools/test_apps/system/build_test/sdkconfig.ci.no_flash_delay rename to components/spi_flash/test_apps/no_flash_delay/sdkconfig.ci.default diff --git a/components/spi_flash/test_apps/spi_flash_opts/CMakeLists.txt b/components/spi_flash/test_apps/spi_flash_opts/CMakeLists.txt new file mode 100644 index 0000000000..798a42d024 --- /dev/null +++ b/components/spi_flash/test_apps/spi_flash_opts/CMakeLists.txt @@ -0,0 +1,10 @@ +# The following lines of boilerplate have to be in your project's +# CMakeLists in this exact order for cmake to work correctly +cmake_minimum_required(VERSION 3.22) + +include($ENV{IDF_PATH}/tools/cmake/project.cmake) + +# "Trim" the build. Include the minimal set of components, main, and anything it depends on. +idf_build_set_property(MINIMAL_BUILD ON) + +project(test_build) diff --git a/components/spi_flash/test_apps/spi_flash_opts/README.md b/components/spi_flash/test_apps/spi_flash_opts/README.md new file mode 100644 index 0000000000..6d10ef01a6 --- /dev/null +++ b/components/spi_flash/test_apps/spi_flash_opts/README.md @@ -0,0 +1,6 @@ +| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C5 | ESP32-C6 | ESP32-C61 | ESP32-H2 | ESP32-H21 | ESP32-H4 | ESP32-P4 | ESP32-S2 | ESP32-S3 | +| ----------------- | ----- | -------- | -------- | -------- | -------- | --------- | -------- | --------- | -------- | -------- | -------- | -------- | + +This project tests building with the spi_flash_opts configuration. + +This project uses MINIMAL_BUILD=y to reduce build time and dependencies. diff --git a/components/spi_flash/test_apps/spi_flash_opts/main/CMakeLists.txt b/components/spi_flash/test_apps/spi_flash_opts/main/CMakeLists.txt new file mode 100644 index 0000000000..1df31fac80 --- /dev/null +++ b/components/spi_flash/test_apps/spi_flash_opts/main/CMakeLists.txt @@ -0,0 +1,2 @@ +idf_component_register(SRCS "test_main.c" + INCLUDE_DIRS ".") diff --git a/components/spi_flash/test_apps/spi_flash_opts/main/test_main.c b/components/spi_flash/test_apps/spi_flash_opts/main/test_main.c new file mode 100644 index 0000000000..b908720b32 --- /dev/null +++ b/components/spi_flash/test_apps/spi_flash_opts/main/test_main.c @@ -0,0 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD + * + * SPDX-License-Identifier: Unlicense OR CC0-1.0 + */ +void app_main(void) +{ +} diff --git a/tools/test_apps/system/build_test/sdkconfig.ci.spi_flash_opts b/components/spi_flash/test_apps/spi_flash_opts/sdkconfig.ci.default similarity index 100% rename from tools/test_apps/system/build_test/sdkconfig.ci.spi_flash_opts rename to components/spi_flash/test_apps/spi_flash_opts/sdkconfig.ci.default diff --git a/tools/ci/check_copyright_ignore.txt b/tools/ci/check_copyright_ignore.txt index 229dde405d..7b8290bd76 100644 --- a/tools/ci/check_copyright_ignore.txt +++ b/tools/ci/check_copyright_ignore.txt @@ -949,7 +949,6 @@ tools/test_apps/protocols/mqtt/publish_connect_test/main/publish_test.c tools/test_apps/security/secure_boot/main/secure_boot_main.c tools/test_apps/security/secure_boot/main/secure_boot_main_esp32.c tools/test_apps/system/bootloader_sections/main/test_main.c -tools/test_apps/system/build_test/main/test_main.c tools/test_apps/system/cxx_no_except/main/main.cpp tools/test_apps/system/gdb_loadable_elf/main/hello_world_main.c tools/test_apps/system/longjmp_test/main/hello_world_main.c diff --git a/tools/test_apps/system/.build-test-rules.yml b/tools/test_apps/system/.build-test-rules.yml index cb10f5c255..55d2058eaa 100644 --- a/tools/test_apps/system/.build-test-rules.yml +++ b/tools/test_apps/system/.build-test-rules.yml @@ -4,12 +4,36 @@ tools/test_apps/system/bootloader_sections: disable: - if: CONFIG_NAME == "rtc_retain" and SOC_RTC_FAST_MEM_SUPPORTED != 1 -tools/test_apps/system/build_test: +tools/test_apps/system/build_tests/client_only_mbedtls: disable: - - if: CONFIG_NAME == "no_rvfplib" and ESP_ROM_HAS_RVFPLIB != 1 - - if: CONFIG_NAME == "usb_serial_jtag" AND SOC_USB_SERIAL_JTAG_SUPPORTED != 1 - - if: CONFIG_NAME == "usb_console_ets_printf" AND SOC_USB_OTG_SUPPORTED != 1 - - if: CONFIG_NAME == "phy_multiple_init_data" AND IDF_TARGET == "esp32p4" # Update with caps here when IDF-7460 is resolved + - if: IDF_TARGET not in ["esp32c3"] + reason: Testing on a single target is sufficient + +tools/test_apps/system/build_tests/custom_mac: + disable: + - if: IDF_TARGET not in ["esp32c3"] + reason: Testing on a single target is sufficient + +tools/test_apps/system/build_tests/no_esp_cert_bundle: + disable: + - if: IDF_TARGET not in ["esp32c3"] + reason: Testing on a single target is sufficient + +tools/test_apps/system/build_tests/no_hwsg: + disable: + - if: SOC_ASSIST_DEBUG_SUPPORTED != 1 + +tools/test_apps/system/build_tests/panic_silent_reboot: + disable: + - if: IDF_TARGET != "esp32" + +tools/test_apps/system/build_tests/trax_esp32: + disable: + - if: IDF_TARGET != "esp32" + +tools/test_apps/system/build_tests/trax_esp32s2: + disable: + - if: IDF_TARGET != "esp32s2" tools/test_apps/system/clang_build_test: enable: diff --git a/tools/test_apps/system/build_test/README.md b/tools/test_apps/system/build_test/README.md deleted file mode 100644 index bf72db69b7..0000000000 --- a/tools/test_apps/system/build_test/README.md +++ /dev/null @@ -1,9 +0,0 @@ -| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C5 | ESP32-C6 | ESP32-C61 | ESP32-H2 | ESP32-H21 | ESP32-H4 | ESP32-P4 | ESP32-S2 | ESP32-S3 | -| ----------------- | ----- | -------- | -------- | -------- | -------- | --------- | -------- | --------- | -------- | -------- | -------- | -------- | - -This project is for testing if the application can be built with a particular sdkconfig setting. - -To add new configuration, create one more sdkconfig.ci.NAME file in this directory. -To make the configuration target-specific, add a CONFIG_IDF_TARGET="name" line. - -If you need to test for anything other than building, create another test project. diff --git a/tools/test_apps/system/build_test/main/test_main.c b/tools/test_apps/system/build_test/main/test_main.c deleted file mode 100644 index cb05851571..0000000000 --- a/tools/test_apps/system/build_test/main/test_main.c +++ /dev/null @@ -1,3 +0,0 @@ -void app_main(void) -{ -} diff --git a/tools/test_apps/system/build_test/sdkconfig.ci.console_none_esp32c3 b/tools/test_apps/system/build_test/sdkconfig.ci.console_none_esp32c3 deleted file mode 100644 index 772d6b4f30..0000000000 --- a/tools/test_apps/system/build_test/sdkconfig.ci.console_none_esp32c3 +++ /dev/null @@ -1,6 +0,0 @@ -# Config to test that console can build with all outputs set to none (both primary and secondary) - -# Using ESP32-C3 because it supports a secondary console output (i.e., USJ) -CONFIG_IDF_TARGET="esp32c3" -CONFIG_ESP_CONSOLE_NONE=y -CONFIG_ESP_CONSOLE_SECONDARY_NONE=y diff --git a/tools/test_apps/system/build_test/sdkconfig.ci.esp32s3_mspi_timing_assertion_disabled b/tools/test_apps/system/build_test/sdkconfig.ci.esp32s3_mspi_timing_assertion_disabled deleted file mode 100644 index 225a245c2d..0000000000 --- a/tools/test_apps/system/build_test/sdkconfig.ci.esp32s3_mspi_timing_assertion_disabled +++ /dev/null @@ -1,11 +0,0 @@ -# Any of a set of configurations that will trigger timing tuning - -CONFIG_IDF_TARGET="esp32s3" -CONFIG_SPI_FLASH_HPM_ENA=y -CONFIG_ESPTOOLPY_FLASHFREQ_120M=y -CONFIG_BOOTLOADER_FLASH_DC_AWARE=y -CONFIG_ESPTOOLPY_FLASHSIZE_4MB=y - -CONFIG_COMPILER_OPTIMIZATION_SIZE=y -CONFIG_BOOTLOADER_COMPILER_OPTIMIZATION_SIZE=y -CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_DISABLE=y diff --git a/tools/test_apps/system/build_test/sdkconfig.ci.ethernet_disabled b/tools/test_apps/system/build_test/sdkconfig.ci.ethernet_disabled deleted file mode 100644 index 798bb92d5b..0000000000 --- a/tools/test_apps/system/build_test/sdkconfig.ci.ethernet_disabled +++ /dev/null @@ -1,2 +0,0 @@ -CONFIG_ETH_USE_SPI_ETHERNET=n -CONFIG_ETH_USE_ESP32_EMAC=n diff --git a/tools/test_apps/system/build_test/sdkconfig.ci.flash_encryption_release b/tools/test_apps/system/build_test/sdkconfig.ci.flash_encryption_release deleted file mode 100644 index 122c060cc0..0000000000 --- a/tools/test_apps/system/build_test/sdkconfig.ci.flash_encryption_release +++ /dev/null @@ -1,4 +0,0 @@ -CONFIG_SECURE_FLASH_ENC_ENABLED=y -CONFIG_SECURE_FLASH_ENCRYPTION_MODE_RELEASE=y -CONFIG_NVS_SEC_KEY_PROTECT_USING_FLASH_ENC=y -CONFIG_PARTITION_TABLE_OFFSET=0xC000 diff --git a/tools/test_apps/system/build_test/sdkconfig.ci.func_in_flash_with_Os b/tools/test_apps/system/build_test/sdkconfig.ci.func_in_flash_with_Os deleted file mode 100644 index 08c97cdef5..0000000000 --- a/tools/test_apps/system/build_test/sdkconfig.ci.func_in_flash_with_Os +++ /dev/null @@ -1,2 +0,0 @@ -CONFIG_COMPILER_OPTIMIZATION_SIZE=y -CONFIG_RINGBUF_PLACE_ISR_FUNCTIONS_INTO_FLASH=y diff --git a/tools/test_apps/system/build_test/sdkconfig.ci.heap_tracing b/tools/test_apps/system/build_test/sdkconfig.ci.heap_tracing deleted file mode 100644 index 7ae900accf..0000000000 --- a/tools/test_apps/system/build_test/sdkconfig.ci.heap_tracing +++ /dev/null @@ -1 +0,0 @@ -CONFIG_HEAP_TRACING_STANDALONE=y diff --git a/tools/test_apps/system/build_test/sdkconfig.ci.usb_console_ets_printf b/tools/test_apps/system/build_test/sdkconfig.ci.usb_console_ets_printf deleted file mode 100644 index fac982eb0e..0000000000 --- a/tools/test_apps/system/build_test/sdkconfig.ci.usb_console_ets_printf +++ /dev/null @@ -1,2 +0,0 @@ -CONFIG_ESP_CONSOLE_USB_CDC=y -CONFIG_ESP_CONSOLE_USB_CDC_SUPPORT_ETS_PRINTF=y diff --git a/tools/test_apps/system/build_test/CMakeLists.txt b/tools/test_apps/system/build_tests/chip_revisions/CMakeLists.txt similarity index 72% rename from tools/test_apps/system/build_test/CMakeLists.txt rename to tools/test_apps/system/build_tests/chip_revisions/CMakeLists.txt index d4cab30917..fa1d660b2a 100644 --- a/tools/test_apps/system/build_test/CMakeLists.txt +++ b/tools/test_apps/system/build_tests/chip_revisions/CMakeLists.txt @@ -4,4 +4,7 @@ cmake_minimum_required(VERSION 3.22) include($ENV{IDF_PATH}/tools/cmake/project.cmake) +# We dont set minimal build here as chip rev. kconfig +# potentially affect all components + project(test_build) diff --git a/tools/test_apps/system/build_tests/chip_revisions/README.md b/tools/test_apps/system/build_tests/chip_revisions/README.md new file mode 100644 index 0000000000..a7dd5b73da --- /dev/null +++ b/tools/test_apps/system/build_tests/chip_revisions/README.md @@ -0,0 +1,6 @@ +| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C5 | ESP32-C6 | ESP32-C61 | ESP32-H2 | ESP32-H21 | ESP32-H4 | ESP32-P4 | ESP32-S2 | ESP32-S3 | +| ----------------- | ----- | -------- | -------- | -------- | -------- | --------- | -------- | --------- | -------- | -------- | -------- | -------- | + +This project tests building with the esp32_rev3 configuration. + +This project uses MINIMAL_BUILD=y to reduce build time and dependencies. diff --git a/tools/test_apps/system/build_tests/chip_revisions/main/CMakeLists.txt b/tools/test_apps/system/build_tests/chip_revisions/main/CMakeLists.txt new file mode 100644 index 0000000000..1df31fac80 --- /dev/null +++ b/tools/test_apps/system/build_tests/chip_revisions/main/CMakeLists.txt @@ -0,0 +1,2 @@ +idf_component_register(SRCS "test_main.c" + INCLUDE_DIRS ".") diff --git a/tools/test_apps/system/build_tests/chip_revisions/main/test_main.c b/tools/test_apps/system/build_tests/chip_revisions/main/test_main.c new file mode 100644 index 0000000000..b908720b32 --- /dev/null +++ b/tools/test_apps/system/build_tests/chip_revisions/main/test_main.c @@ -0,0 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD + * + * SPDX-License-Identifier: Unlicense OR CC0-1.0 + */ +void app_main(void) +{ +} diff --git a/tools/test_apps/system/build_test/sdkconfig.ci.esp32_rev3 b/tools/test_apps/system/build_tests/chip_revisions/sdkconfig.ci.esp32_rev3 similarity index 100% rename from tools/test_apps/system/build_test/sdkconfig.ci.esp32_rev3 rename to tools/test_apps/system/build_tests/chip_revisions/sdkconfig.ci.esp32_rev3 diff --git a/tools/test_apps/system/build_test/sdkconfig.ci.esp32c2_26mhz_xtal b/tools/test_apps/system/build_tests/chip_revisions/sdkconfig.ci.esp32c2_26mhz_xtal similarity index 100% rename from tools/test_apps/system/build_test/sdkconfig.ci.esp32c2_26mhz_xtal rename to tools/test_apps/system/build_tests/chip_revisions/sdkconfig.ci.esp32c2_26mhz_xtal diff --git a/tools/test_apps/system/build_test/sdkconfig.ci.esp32c2_rev200 b/tools/test_apps/system/build_tests/chip_revisions/sdkconfig.ci.esp32c2_rev200 similarity index 100% rename from tools/test_apps/system/build_test/sdkconfig.ci.esp32c2_rev200 rename to tools/test_apps/system/build_tests/chip_revisions/sdkconfig.ci.esp32c2_rev200 diff --git a/tools/test_apps/system/build_test/sdkconfig.ci.esp32c3_rev101 b/tools/test_apps/system/build_tests/chip_revisions/sdkconfig.ci.esp32c3_rev101 similarity index 100% rename from tools/test_apps/system/build_test/sdkconfig.ci.esp32c3_rev101 rename to tools/test_apps/system/build_tests/chip_revisions/sdkconfig.ci.esp32c3_rev101 diff --git a/tools/test_apps/system/build_test/sdkconfig.ci.esp32p4_rev3 b/tools/test_apps/system/build_tests/chip_revisions/sdkconfig.ci.esp32p4_rev3 similarity index 100% rename from tools/test_apps/system/build_test/sdkconfig.ci.esp32p4_rev3 rename to tools/test_apps/system/build_tests/chip_revisions/sdkconfig.ci.esp32p4_rev3 diff --git a/tools/test_apps/system/build_tests/client_only_mbedtls/CMakeLists.txt b/tools/test_apps/system/build_tests/client_only_mbedtls/CMakeLists.txt new file mode 100644 index 0000000000..798a42d024 --- /dev/null +++ b/tools/test_apps/system/build_tests/client_only_mbedtls/CMakeLists.txt @@ -0,0 +1,10 @@ +# The following lines of boilerplate have to be in your project's +# CMakeLists in this exact order for cmake to work correctly +cmake_minimum_required(VERSION 3.22) + +include($ENV{IDF_PATH}/tools/cmake/project.cmake) + +# "Trim" the build. Include the minimal set of components, main, and anything it depends on. +idf_build_set_property(MINIMAL_BUILD ON) + +project(test_build) diff --git a/tools/test_apps/system/build_tests/client_only_mbedtls/README.md b/tools/test_apps/system/build_tests/client_only_mbedtls/README.md new file mode 100644 index 0000000000..914cce54b1 --- /dev/null +++ b/tools/test_apps/system/build_tests/client_only_mbedtls/README.md @@ -0,0 +1,6 @@ +| Supported Targets | ESP32-C3 | +| ----------------- | -------- | + +This project tests building with the client_only_mbedtls configuration. + +This project uses MINIMAL_BUILD=y to reduce build time and dependencies. diff --git a/tools/test_apps/system/build_tests/client_only_mbedtls/main/CMakeLists.txt b/tools/test_apps/system/build_tests/client_only_mbedtls/main/CMakeLists.txt new file mode 100644 index 0000000000..1df31fac80 --- /dev/null +++ b/tools/test_apps/system/build_tests/client_only_mbedtls/main/CMakeLists.txt @@ -0,0 +1,2 @@ +idf_component_register(SRCS "test_main.c" + INCLUDE_DIRS ".") diff --git a/tools/test_apps/system/build_tests/client_only_mbedtls/main/test_main.c b/tools/test_apps/system/build_tests/client_only_mbedtls/main/test_main.c new file mode 100644 index 0000000000..b908720b32 --- /dev/null +++ b/tools/test_apps/system/build_tests/client_only_mbedtls/main/test_main.c @@ -0,0 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD + * + * SPDX-License-Identifier: Unlicense OR CC0-1.0 + */ +void app_main(void) +{ +} diff --git a/tools/test_apps/system/build_test/sdkconfig.ci.client_only_mbedtls b/tools/test_apps/system/build_tests/client_only_mbedtls/sdkconfig.ci.default similarity index 100% rename from tools/test_apps/system/build_test/sdkconfig.ci.client_only_mbedtls rename to tools/test_apps/system/build_tests/client_only_mbedtls/sdkconfig.ci.default diff --git a/tools/test_apps/system/build_tests/custom_mac/CMakeLists.txt b/tools/test_apps/system/build_tests/custom_mac/CMakeLists.txt new file mode 100644 index 0000000000..798a42d024 --- /dev/null +++ b/tools/test_apps/system/build_tests/custom_mac/CMakeLists.txt @@ -0,0 +1,10 @@ +# The following lines of boilerplate have to be in your project's +# CMakeLists in this exact order for cmake to work correctly +cmake_minimum_required(VERSION 3.22) + +include($ENV{IDF_PATH}/tools/cmake/project.cmake) + +# "Trim" the build. Include the minimal set of components, main, and anything it depends on. +idf_build_set_property(MINIMAL_BUILD ON) + +project(test_build) diff --git a/tools/test_apps/system/build_tests/custom_mac/README.md b/tools/test_apps/system/build_tests/custom_mac/README.md new file mode 100644 index 0000000000..90f9f723f7 --- /dev/null +++ b/tools/test_apps/system/build_tests/custom_mac/README.md @@ -0,0 +1,6 @@ +| Supported Targets | ESP32-C3 | +| ----------------- | -------- | + +This project tests building with the custom_mac configuration. + +This project uses MINIMAL_BUILD=y to reduce build time and dependencies. diff --git a/tools/test_apps/system/build_tests/custom_mac/main/CMakeLists.txt b/tools/test_apps/system/build_tests/custom_mac/main/CMakeLists.txt new file mode 100644 index 0000000000..1df31fac80 --- /dev/null +++ b/tools/test_apps/system/build_tests/custom_mac/main/CMakeLists.txt @@ -0,0 +1,2 @@ +idf_component_register(SRCS "test_main.c" + INCLUDE_DIRS ".") diff --git a/tools/test_apps/system/build_tests/custom_mac/main/test_main.c b/tools/test_apps/system/build_tests/custom_mac/main/test_main.c new file mode 100644 index 0000000000..b908720b32 --- /dev/null +++ b/tools/test_apps/system/build_tests/custom_mac/main/test_main.c @@ -0,0 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD + * + * SPDX-License-Identifier: Unlicense OR CC0-1.0 + */ +void app_main(void) +{ +} diff --git a/tools/test_apps/system/build_test/sdkconfig.ci.custom_mac b/tools/test_apps/system/build_tests/custom_mac/sdkconfig.ci.default similarity index 100% rename from tools/test_apps/system/build_test/sdkconfig.ci.custom_mac rename to tools/test_apps/system/build_tests/custom_mac/sdkconfig.ci.default diff --git a/tools/test_apps/system/build_tests/full_build/CMakeLists.txt b/tools/test_apps/system/build_tests/full_build/CMakeLists.txt new file mode 100644 index 0000000000..429e97460a --- /dev/null +++ b/tools/test_apps/system/build_tests/full_build/CMakeLists.txt @@ -0,0 +1,11 @@ +# The following lines of boilerplate have to be in your project's +# CMakeLists in this exact order for cmake to work correctly +cmake_minimum_required(VERSION 3.22) + +include($ENV{IDF_PATH}/tools/cmake/project.cmake) + + +# Do not use minimal build for this app as these are global options +# we want to compile all files with + +project(test_build) diff --git a/tools/test_apps/system/build_tests/full_build/README.md b/tools/test_apps/system/build_tests/full_build/README.md new file mode 100644 index 0000000000..c98fdbb583 --- /dev/null +++ b/tools/test_apps/system/build_tests/full_build/README.md @@ -0,0 +1,6 @@ +| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C5 | ESP32-C6 | ESP32-C61 | ESP32-H2 | ESP32-H21 | ESP32-H4 | ESP32-P4 | ESP32-S2 | ESP32-S3 | +| ----------------- | ----- | -------- | -------- | -------- | -------- | --------- | -------- | --------- | -------- | -------- | -------- | -------- | + +This project tests building with misc global configurations + +This project do NOT use MINIMAL_BUILD to ensure all components are built with the config. diff --git a/tools/test_apps/system/build_tests/full_build/main/CMakeLists.txt b/tools/test_apps/system/build_tests/full_build/main/CMakeLists.txt new file mode 100644 index 0000000000..1df31fac80 --- /dev/null +++ b/tools/test_apps/system/build_tests/full_build/main/CMakeLists.txt @@ -0,0 +1,2 @@ +idf_component_register(SRCS "test_main.c" + INCLUDE_DIRS ".") diff --git a/tools/test_apps/system/build_tests/full_build/main/test_main.c b/tools/test_apps/system/build_tests/full_build/main/test_main.c new file mode 100644 index 0000000000..b908720b32 --- /dev/null +++ b/tools/test_apps/system/build_tests/full_build/main/test_main.c @@ -0,0 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD + * + * SPDX-License-Identifier: Unlicense OR CC0-1.0 + */ +void app_main(void) +{ +} diff --git a/tools/test_apps/system/build_test/sdkconfig.ci.no_merge_constants b/tools/test_apps/system/build_tests/full_build/sdkconfig.ci.no_merge_constant similarity index 100% rename from tools/test_apps/system/build_test/sdkconfig.ci.no_merge_constants rename to tools/test_apps/system/build_tests/full_build/sdkconfig.ci.no_merge_constant diff --git a/tools/test_apps/system/build_test/sdkconfig.ci.o2_no_asserts b/tools/test_apps/system/build_tests/full_build/sdkconfig.ci.o2_no_asserts similarity index 100% rename from tools/test_apps/system/build_test/sdkconfig.ci.o2_no_asserts rename to tools/test_apps/system/build_tests/full_build/sdkconfig.ci.o2_no_asserts diff --git a/tools/test_apps/system/build_test/sdkconfig.ci.werror b/tools/test_apps/system/build_tests/full_build/sdkconfig.ci.werror similarity index 100% rename from tools/test_apps/system/build_test/sdkconfig.ci.werror rename to tools/test_apps/system/build_tests/full_build/sdkconfig.ci.werror diff --git a/tools/test_apps/system/build_tests/no_esp_cert_bundle/CMakeLists.txt b/tools/test_apps/system/build_tests/no_esp_cert_bundle/CMakeLists.txt new file mode 100644 index 0000000000..798a42d024 --- /dev/null +++ b/tools/test_apps/system/build_tests/no_esp_cert_bundle/CMakeLists.txt @@ -0,0 +1,10 @@ +# The following lines of boilerplate have to be in your project's +# CMakeLists in this exact order for cmake to work correctly +cmake_minimum_required(VERSION 3.22) + +include($ENV{IDF_PATH}/tools/cmake/project.cmake) + +# "Trim" the build. Include the minimal set of components, main, and anything it depends on. +idf_build_set_property(MINIMAL_BUILD ON) + +project(test_build) diff --git a/tools/test_apps/system/build_tests/no_esp_cert_bundle/README.md b/tools/test_apps/system/build_tests/no_esp_cert_bundle/README.md new file mode 100644 index 0000000000..db55ffb2d5 --- /dev/null +++ b/tools/test_apps/system/build_tests/no_esp_cert_bundle/README.md @@ -0,0 +1,6 @@ +| Supported Targets | ESP32-C3 | +| ----------------- | -------- | + +This project tests building with the no_esp_cert_bundle configuration. + +This project uses MINIMAL_BUILD=y to reduce build time and dependencies. diff --git a/tools/test_apps/system/build_tests/no_esp_cert_bundle/main/CMakeLists.txt b/tools/test_apps/system/build_tests/no_esp_cert_bundle/main/CMakeLists.txt new file mode 100644 index 0000000000..1df31fac80 --- /dev/null +++ b/tools/test_apps/system/build_tests/no_esp_cert_bundle/main/CMakeLists.txt @@ -0,0 +1,2 @@ +idf_component_register(SRCS "test_main.c" + INCLUDE_DIRS ".") diff --git a/tools/test_apps/system/build_tests/no_esp_cert_bundle/main/test_main.c b/tools/test_apps/system/build_tests/no_esp_cert_bundle/main/test_main.c new file mode 100644 index 0000000000..b908720b32 --- /dev/null +++ b/tools/test_apps/system/build_tests/no_esp_cert_bundle/main/test_main.c @@ -0,0 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD + * + * SPDX-License-Identifier: Unlicense OR CC0-1.0 + */ +void app_main(void) +{ +} diff --git a/tools/test_apps/system/build_test/sdkconfig.ci.no_esp_cert_bundle b/tools/test_apps/system/build_tests/no_esp_cert_bundle/sdkconfig.ci.default similarity index 100% rename from tools/test_apps/system/build_test/sdkconfig.ci.no_esp_cert_bundle rename to tools/test_apps/system/build_tests/no_esp_cert_bundle/sdkconfig.ci.default diff --git a/tools/test_apps/system/build_tests/no_hwsg/CMakeLists.txt b/tools/test_apps/system/build_tests/no_hwsg/CMakeLists.txt new file mode 100644 index 0000000000..798a42d024 --- /dev/null +++ b/tools/test_apps/system/build_tests/no_hwsg/CMakeLists.txt @@ -0,0 +1,10 @@ +# The following lines of boilerplate have to be in your project's +# CMakeLists in this exact order for cmake to work correctly +cmake_minimum_required(VERSION 3.22) + +include($ENV{IDF_PATH}/tools/cmake/project.cmake) + +# "Trim" the build. Include the minimal set of components, main, and anything it depends on. +idf_build_set_property(MINIMAL_BUILD ON) + +project(test_build) diff --git a/tools/test_apps/system/build_tests/no_hwsg/README.md b/tools/test_apps/system/build_tests/no_hwsg/README.md new file mode 100644 index 0000000000..971ab1a5e4 --- /dev/null +++ b/tools/test_apps/system/build_tests/no_hwsg/README.md @@ -0,0 +1,6 @@ +| Supported Targets | ESP32-C2 | ESP32-C3 | ESP32-C5 | ESP32-C6 | ESP32-C61 | ESP32-H2 | ESP32-P4 | +| ----------------- | -------- | -------- | -------- | -------- | --------- | -------- | -------- | + +This project tests building with the no_hwsg configuration. + +This project uses MINIMAL_BUILD=y to reduce build time and dependencies. diff --git a/tools/test_apps/system/build_tests/no_hwsg/main/CMakeLists.txt b/tools/test_apps/system/build_tests/no_hwsg/main/CMakeLists.txt new file mode 100644 index 0000000000..1df31fac80 --- /dev/null +++ b/tools/test_apps/system/build_tests/no_hwsg/main/CMakeLists.txt @@ -0,0 +1,2 @@ +idf_component_register(SRCS "test_main.c" + INCLUDE_DIRS ".") diff --git a/tools/test_apps/system/build_tests/no_hwsg/main/test_main.c b/tools/test_apps/system/build_tests/no_hwsg/main/test_main.c new file mode 100644 index 0000000000..b908720b32 --- /dev/null +++ b/tools/test_apps/system/build_tests/no_hwsg/main/test_main.c @@ -0,0 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD + * + * SPDX-License-Identifier: Unlicense OR CC0-1.0 + */ +void app_main(void) +{ +} diff --git a/tools/test_apps/system/build_test/sdkconfig.ci.no_hwsg b/tools/test_apps/system/build_tests/no_hwsg/sdkconfig.ci.default similarity index 100% rename from tools/test_apps/system/build_test/sdkconfig.ci.no_hwsg rename to tools/test_apps/system/build_tests/no_hwsg/sdkconfig.ci.default diff --git a/tools/test_apps/system/build_tests/panic_handler_iram/CMakeLists.txt b/tools/test_apps/system/build_tests/panic_handler_iram/CMakeLists.txt new file mode 100644 index 0000000000..798a42d024 --- /dev/null +++ b/tools/test_apps/system/build_tests/panic_handler_iram/CMakeLists.txt @@ -0,0 +1,10 @@ +# The following lines of boilerplate have to be in your project's +# CMakeLists in this exact order for cmake to work correctly +cmake_minimum_required(VERSION 3.22) + +include($ENV{IDF_PATH}/tools/cmake/project.cmake) + +# "Trim" the build. Include the minimal set of components, main, and anything it depends on. +idf_build_set_property(MINIMAL_BUILD ON) + +project(test_build) diff --git a/tools/test_apps/system/build_tests/panic_handler_iram/README.md b/tools/test_apps/system/build_tests/panic_handler_iram/README.md new file mode 100644 index 0000000000..fdff8d8e30 --- /dev/null +++ b/tools/test_apps/system/build_tests/panic_handler_iram/README.md @@ -0,0 +1,6 @@ +| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C5 | ESP32-C6 | ESP32-C61 | ESP32-H2 | ESP32-H21 | ESP32-H4 | ESP32-P4 | ESP32-S2 | ESP32-S3 | +| ----------------- | ----- | -------- | -------- | -------- | -------- | --------- | -------- | --------- | -------- | -------- | -------- | -------- | + +This project tests building with the panic_handler_iram configuration. + +This project uses MINIMAL_BUILD=y to reduce build time and dependencies. diff --git a/tools/test_apps/system/build_tests/panic_handler_iram/main/CMakeLists.txt b/tools/test_apps/system/build_tests/panic_handler_iram/main/CMakeLists.txt new file mode 100644 index 0000000000..1df31fac80 --- /dev/null +++ b/tools/test_apps/system/build_tests/panic_handler_iram/main/CMakeLists.txt @@ -0,0 +1,2 @@ +idf_component_register(SRCS "test_main.c" + INCLUDE_DIRS ".") diff --git a/tools/test_apps/system/build_tests/panic_handler_iram/main/test_main.c b/tools/test_apps/system/build_tests/panic_handler_iram/main/test_main.c new file mode 100644 index 0000000000..b908720b32 --- /dev/null +++ b/tools/test_apps/system/build_tests/panic_handler_iram/main/test_main.c @@ -0,0 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD + * + * SPDX-License-Identifier: Unlicense OR CC0-1.0 + */ +void app_main(void) +{ +} diff --git a/tools/test_apps/system/build_test/sdkconfig.ci.panic_handler_iram b/tools/test_apps/system/build_tests/panic_handler_iram/sdkconfig.ci.default similarity index 100% rename from tools/test_apps/system/build_test/sdkconfig.ci.panic_handler_iram rename to tools/test_apps/system/build_tests/panic_handler_iram/sdkconfig.ci.default diff --git a/tools/test_apps/system/build_tests/panic_silent_reboot/CMakeLists.txt b/tools/test_apps/system/build_tests/panic_silent_reboot/CMakeLists.txt new file mode 100644 index 0000000000..798a42d024 --- /dev/null +++ b/tools/test_apps/system/build_tests/panic_silent_reboot/CMakeLists.txt @@ -0,0 +1,10 @@ +# The following lines of boilerplate have to be in your project's +# CMakeLists in this exact order for cmake to work correctly +cmake_minimum_required(VERSION 3.22) + +include($ENV{IDF_PATH}/tools/cmake/project.cmake) + +# "Trim" the build. Include the minimal set of components, main, and anything it depends on. +idf_build_set_property(MINIMAL_BUILD ON) + +project(test_build) diff --git a/tools/test_apps/system/build_tests/panic_silent_reboot/README.md b/tools/test_apps/system/build_tests/panic_silent_reboot/README.md new file mode 100644 index 0000000000..526de41913 --- /dev/null +++ b/tools/test_apps/system/build_tests/panic_silent_reboot/README.md @@ -0,0 +1,6 @@ +| Supported Targets | ESP32 | +| ----------------- | ----- | + +This project tests building with the panic_silent_reboot configuration. + +This project uses MINIMAL_BUILD=y to reduce build time and dependencies. diff --git a/tools/test_apps/system/build_tests/panic_silent_reboot/main/CMakeLists.txt b/tools/test_apps/system/build_tests/panic_silent_reboot/main/CMakeLists.txt new file mode 100644 index 0000000000..1df31fac80 --- /dev/null +++ b/tools/test_apps/system/build_tests/panic_silent_reboot/main/CMakeLists.txt @@ -0,0 +1,2 @@ +idf_component_register(SRCS "test_main.c" + INCLUDE_DIRS ".") diff --git a/tools/test_apps/system/build_tests/panic_silent_reboot/main/test_main.c b/tools/test_apps/system/build_tests/panic_silent_reboot/main/test_main.c new file mode 100644 index 0000000000..b908720b32 --- /dev/null +++ b/tools/test_apps/system/build_tests/panic_silent_reboot/main/test_main.c @@ -0,0 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD + * + * SPDX-License-Identifier: Unlicense OR CC0-1.0 + */ +void app_main(void) +{ +} diff --git a/tools/test_apps/system/build_test/sdkconfig.ci.panic_silent_reboot b/tools/test_apps/system/build_tests/panic_silent_reboot/sdkconfig.ci.default similarity index 100% rename from tools/test_apps/system/build_test/sdkconfig.ci.panic_silent_reboot rename to tools/test_apps/system/build_tests/panic_silent_reboot/sdkconfig.ci.default diff --git a/tools/test_apps/system/build_tests/trax_esp32/CMakeLists.txt b/tools/test_apps/system/build_tests/trax_esp32/CMakeLists.txt new file mode 100644 index 0000000000..798a42d024 --- /dev/null +++ b/tools/test_apps/system/build_tests/trax_esp32/CMakeLists.txt @@ -0,0 +1,10 @@ +# The following lines of boilerplate have to be in your project's +# CMakeLists in this exact order for cmake to work correctly +cmake_minimum_required(VERSION 3.22) + +include($ENV{IDF_PATH}/tools/cmake/project.cmake) + +# "Trim" the build. Include the minimal set of components, main, and anything it depends on. +idf_build_set_property(MINIMAL_BUILD ON) + +project(test_build) diff --git a/tools/test_apps/system/build_tests/trax_esp32/README.md b/tools/test_apps/system/build_tests/trax_esp32/README.md new file mode 100644 index 0000000000..79a8db2682 --- /dev/null +++ b/tools/test_apps/system/build_tests/trax_esp32/README.md @@ -0,0 +1,6 @@ +| Supported Targets | ESP32 | +| ----------------- | ----- | + +This project tests building with the trax_esp32 configuration. + +This project uses MINIMAL_BUILD=y to reduce build time and dependencies. diff --git a/tools/test_apps/system/build_tests/trax_esp32/main/CMakeLists.txt b/tools/test_apps/system/build_tests/trax_esp32/main/CMakeLists.txt new file mode 100644 index 0000000000..1df31fac80 --- /dev/null +++ b/tools/test_apps/system/build_tests/trax_esp32/main/CMakeLists.txt @@ -0,0 +1,2 @@ +idf_component_register(SRCS "test_main.c" + INCLUDE_DIRS ".") diff --git a/tools/test_apps/system/build_tests/trax_esp32/main/test_main.c b/tools/test_apps/system/build_tests/trax_esp32/main/test_main.c new file mode 100644 index 0000000000..b908720b32 --- /dev/null +++ b/tools/test_apps/system/build_tests/trax_esp32/main/test_main.c @@ -0,0 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD + * + * SPDX-License-Identifier: Unlicense OR CC0-1.0 + */ +void app_main(void) +{ +} diff --git a/tools/test_apps/system/build_test/sdkconfig.ci.trax_esp32 b/tools/test_apps/system/build_tests/trax_esp32/sdkconfig.ci.default similarity index 100% rename from tools/test_apps/system/build_test/sdkconfig.ci.trax_esp32 rename to tools/test_apps/system/build_tests/trax_esp32/sdkconfig.ci.default diff --git a/tools/test_apps/system/build_tests/trax_esp32s2/CMakeLists.txt b/tools/test_apps/system/build_tests/trax_esp32s2/CMakeLists.txt new file mode 100644 index 0000000000..798a42d024 --- /dev/null +++ b/tools/test_apps/system/build_tests/trax_esp32s2/CMakeLists.txt @@ -0,0 +1,10 @@ +# The following lines of boilerplate have to be in your project's +# CMakeLists in this exact order for cmake to work correctly +cmake_minimum_required(VERSION 3.22) + +include($ENV{IDF_PATH}/tools/cmake/project.cmake) + +# "Trim" the build. Include the minimal set of components, main, and anything it depends on. +idf_build_set_property(MINIMAL_BUILD ON) + +project(test_build) diff --git a/tools/test_apps/system/build_tests/trax_esp32s2/README.md b/tools/test_apps/system/build_tests/trax_esp32s2/README.md new file mode 100644 index 0000000000..d54d03ad07 --- /dev/null +++ b/tools/test_apps/system/build_tests/trax_esp32s2/README.md @@ -0,0 +1,6 @@ +| Supported Targets | ESP32-S2 | +| ----------------- | -------- | + +This project tests building with the trax_esp32s2 configuration. + +This project uses MINIMAL_BUILD=y to reduce build time and dependencies. diff --git a/tools/test_apps/system/build_tests/trax_esp32s2/main/CMakeLists.txt b/tools/test_apps/system/build_tests/trax_esp32s2/main/CMakeLists.txt new file mode 100644 index 0000000000..1df31fac80 --- /dev/null +++ b/tools/test_apps/system/build_tests/trax_esp32s2/main/CMakeLists.txt @@ -0,0 +1,2 @@ +idf_component_register(SRCS "test_main.c" + INCLUDE_DIRS ".") diff --git a/tools/test_apps/system/build_tests/trax_esp32s2/main/test_main.c b/tools/test_apps/system/build_tests/trax_esp32s2/main/test_main.c new file mode 100644 index 0000000000..b908720b32 --- /dev/null +++ b/tools/test_apps/system/build_tests/trax_esp32s2/main/test_main.c @@ -0,0 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD + * + * SPDX-License-Identifier: Unlicense OR CC0-1.0 + */ +void app_main(void) +{ +} diff --git a/tools/test_apps/system/build_test/sdkconfig.ci.trax_esp32s2 b/tools/test_apps/system/build_tests/trax_esp32s2/sdkconfig.ci.default similarity index 100% rename from tools/test_apps/system/build_test/sdkconfig.ci.trax_esp32s2 rename to tools/test_apps/system/build_tests/trax_esp32s2/sdkconfig.ci.default