diff --git a/components/console/test_apps/.build-test-rules.yml b/components/console/test_apps/.build-test-rules.yml index 94c0dd403e..c538e873cf 100644 --- a/components/console/test_apps/.build-test-rules.yml +++ b/components/console/test_apps/.build-test-rules.yml @@ -5,7 +5,6 @@ components/console/test_apps/console: - if: IDF_TARGET in["esp32", "esp32c3", "linux"] reason: Testing all major architectures depends_components: - - *common_components - console - esp_driver_uart - esp_driver_usb_serial_jtag diff --git a/components/cxx/test_apps/.build-test-rules.yml b/components/cxx/test_apps/.build-test-rules.yml index 43297cb193..b06f9d253e 100644 --- a/components/cxx/test_apps/.build-test-rules.yml +++ b/components/cxx/test_apps/.build-test-rules.yml @@ -6,7 +6,6 @@ components/cxx/test_apps: temporary: true reason: the other targets are not tested yet depends_components: - - *common_components - cxx - pthread - freertos diff --git a/components/esp_common/test_apps/.build-test-rules.yml b/components/esp_common/test_apps/.build-test-rules.yml index 0ce345d539..11ecc24852 100644 --- a/components/esp_common/test_apps/.build-test-rules.yml +++ b/components/esp_common/test_apps/.build-test-rules.yml @@ -6,6 +6,5 @@ components/esp_common/test_apps/esp_common: - if: CONFIG_NAME == "psram_noinit" and SOC_SPIRAM_SUPPORTED != 1 - if: CONFIG_NAME == "xip_psram" and SOC_SPIRAM_XIP_SUPPORTED != 1 depends_components: - - *common_components - esp_common - esp_system # Defines the section placement for attributes diff --git a/components/esp_event/test_apps/.build-test-rules.yml b/components/esp_event/test_apps/.build-test-rules.yml index 6439b1a689..937ad1dcf0 100644 --- a/components/esp_event/test_apps/.build-test-rules.yml +++ b/components/esp_event/test_apps/.build-test-rules.yml @@ -8,5 +8,4 @@ components/esp_event/test_apps: - if: IDF_TARGET != "esp32" and CONFIG_NAME == "ext_ram" reason: it is enough to test ext_ram config on esp32 depends_components: - - *common_components - esp_event diff --git a/components/esp_libc/test_apps/.build-test-rules.yml b/components/esp_libc/test_apps/.build-test-rules.yml index 54405efeb6..502f4c3ab2 100644 --- a/components/esp_libc/test_apps/.build-test-rules.yml +++ b/components/esp_libc/test_apps/.build-test-rules.yml @@ -2,13 +2,12 @@ components/esp_libc/test_apps/newlib: depends_components: - - *common_components - esp_libc - esp_rom + components/esp_libc/test_apps/no_rvfplib: disable: - if: ESP_ROM_HAS_RVFPLIB != 1 depends_components: - - *common_components - esp_libc - esp_rom diff --git a/components/esp_ringbuf/test_apps/.build-test-rules.yml b/components/esp_ringbuf/test_apps/.build-test-rules.yml index 4224e6ea5a..d93c9f49c0 100644 --- a/components/esp_ringbuf/test_apps/.build-test-rules.yml +++ b/components/esp_ringbuf/test_apps/.build-test-rules.yml @@ -5,6 +5,5 @@ components/esp_ringbuf/test_apps: - if: IDF_TARGET in ["esp32", "esp32c3", "esp32s2", "linux"] reason: covers all target types depends_components: - - *common_components - freertos - esp_ringbuf diff --git a/components/esp_rom/test_apps/.build-test-rules.yml b/components/esp_rom/test_apps/.build-test-rules.yml index 7836628ba8..5093b135de 100644 --- a/components/esp_rom/test_apps/.build-test-rules.yml +++ b/components/esp_rom/test_apps/.build-test-rules.yml @@ -4,7 +4,6 @@ components/esp_rom/test_apps/linux_rom_apis: enable: - if: IDF_TARGET == "linux" depends_components: - - *common_components - esp_rom components/esp_rom/test_apps/rom_impl_components: @@ -14,7 +13,6 @@ components/esp_rom/test_apps/rom_impl_components: - if: CONFIG_NAME == "no_rom_impl_components" and ((ESP_ROM_HAS_HAL_WDT != 1 and ESP_ROM_HAS_HAL_SYSTIMER != 1) and (ESP_ROM_HAS_HEAP_TLSF != 1 and ESP_ROM_HAS_SPI_FLASH != 1)) - if: SOC_WDT_SUPPORTED != 1 depends_components: - - *common_components - esp_rom components/esp_rom/test_apps/rom_tests: @@ -23,5 +21,4 @@ components/esp_rom/test_apps/rom_tests: temporary: false reason: lack of memory for testing miniz compressing depends_components: - - *common_components - esp_rom diff --git a/components/esp_stdio/test_apps/.build-test-rules.yml b/components/esp_stdio/test_apps/.build-test-rules.yml index e963d326d1..8fcdfd8a33 100644 --- a/components/esp_stdio/test_apps/.build-test-rules.yml +++ b/components/esp_stdio/test_apps/.build-test-rules.yml @@ -7,3 +7,12 @@ components/esp_stdio/test_apps/stdio: - if: IDF_TARGET == "esp32p4" # TODO: IDF-14364 disable_test: - if: CONFIG_NAME == "simple" and IDF_TARGET != "esp32" + depends_components: + - esp_stdio + - esp_driver_uart + - esp_driver_usb_serial_jtag + - esp_usb_cdc_rom_console + - vfs + - esp_rom + - esp_hal_uart + - esp_hal_usb diff --git a/components/esp_timer/test_apps/.build-test-rules.yml b/components/esp_timer/test_apps/.build-test-rules.yml index 1b21503555..b749c56900 100644 --- a/components/esp_timer/test_apps/.build-test-rules.yml +++ b/components/esp_timer/test_apps/.build-test-rules.yml @@ -2,8 +2,8 @@ components/esp_timer/test_apps: depends_components: - - *common_components - esp_timer + - esp_hal_timg disable: - if: CONFIG_NAME == "dfs" and SOC_CLK_XTAL32K_SUPPORTED != 1 reason: The test requires the XTAL32K clock to measure the esp_timer timing accuracy diff --git a/components/esp_usb_cdc_rom_console/.build-test-rules.yml b/components/esp_usb_cdc_rom_console/.build-test-rules.yml index 49b4843dc5..2e2fca114c 100644 --- a/components/esp_usb_cdc_rom_console/.build-test-rules.yml +++ b/components/esp_usb_cdc_rom_console/.build-test-rules.yml @@ -2,3 +2,7 @@ components/esp_usb_cdc_rom_console/test_apps/usb_cdc_vfs: enable: - if: IDF_TARGET in ["esp32s3"] # reason: console components is only implemented on these targets. TODO P4: IDF-9120 + depends_components: + - esp_usb_cdc_rom_console + - vfs + - esp_rom diff --git a/components/freertos/test_apps/.build-test-rules.yml b/components/freertos/test_apps/.build-test-rules.yml index b5c8817642..e4beec33e3 100644 --- a/components/freertos/test_apps/.build-test-rules.yml +++ b/components/freertos/test_apps/.build-test-rules.yml @@ -5,7 +5,6 @@ components/freertos/test_apps/build_tests/freertos_build_test: - if: CONFIG_NAME == "timers_disabled" and IDF_TARGET != "esp32" - if: CONFIG_NAME == "smp" and IDF_TARGET not in ["esp32"] depends_components: - - *common_components - freertos - esp_system # trigger on changes to idle / tick hooks, wdt, entry point to freertos code - esp_hw_support # trigger on changes to cpu.c @@ -15,7 +14,6 @@ components/freertos/test_apps/build_tests/orig_inc_path: - if: IDF_TARGET in ["esp32"] reason: The feature only depends on the build system, nothing target-specific that needs to be tested depends_components: - - *common_components - freertos components/freertos/test_apps/freertos: @@ -25,7 +23,6 @@ components/freertos/test_apps/freertos: reason: target(s) not supported yet - if: CONFIG_NAME == "psram" and SOC_SPIRAM_SUPPORTED != 1 depends_components: - - *common_components - freertos - esp_system # trigger on changes to idle / tick hooks, wdt, entry point to freertos code - esp_hw_support # trigger on changes to cpu.c diff --git a/components/heap/test_apps/.build-test-rules.yml b/components/heap/test_apps/.build-test-rules.yml index dd5d89e402..9b07122c06 100644 --- a/components/heap/test_apps/.build-test-rules.yml +++ b/components/heap/test_apps/.build-test-rules.yml @@ -12,7 +12,6 @@ components/heap/test_apps/heap_tests: # Non-target specific functionality, only test on a single target in default pipeline - if: CONFIG_NAME == "in_flash" and (IDF_TARGET != "esp32c6" and NIGHTLY_RUN != "1") depends_components: - - *common_components - heap - soc - esp_psram @@ -21,7 +20,6 @@ components/heap/test_apps/host_test_linux: enable: - if: IDF_TARGET == "linux" depends_components: - - *common_components - heap depends_filepatterns: - components/soc/**/include/soc/soc.h diff --git a/components/log/test_apps/.build-test-rules.yml b/components/log/test_apps/.build-test-rules.yml index cbf0aeb7a3..a5790aba64 100644 --- a/components/log/test_apps/.build-test-rules.yml +++ b/components/log/test_apps/.build-test-rules.yml @@ -5,5 +5,4 @@ components/log/test_apps: - if: IDF_TARGET == "esp32" reason: only test on esp32 depends_components: - - *common_components - log diff --git a/components/ulp/test_apps/.build-test-rules.yml b/components/ulp/test_apps/.build-test-rules.yml index 62d63ede7e..a2f8ea0789 100644 --- a/components/ulp/test_apps/.build-test-rules.yml +++ b/components/ulp/test_apps/.build-test-rules.yml @@ -6,7 +6,6 @@ components/ulp/test_apps/lp_core/lp_core_basic_tests: - if: CONFIG_NAME == "xtal" and SOC_CLK_LP_FAST_SUPPORT_XTAL != 1 - if: CONFIG_NAME == "lp_vad" and SOC_LP_VAD_SUPPORTED != 1 depends_components: - - *common_components - ulp - esp_adc - esp_driver_i2s @@ -21,7 +20,6 @@ components/ulp/test_apps/lp_core/lp_core_hp_uart: disable: - if: SOC_LP_CORE_SUPPORTED != 1 depends_components: - - *common_components - ulp - esp_hal_uart - esp_hal_pmu @@ -32,7 +30,6 @@ components/ulp/test_apps/ulp_fsm: enable: - if: SOC_ULP_FSM_SUPPORTED == 1 depends_components: - - *common_components - ulp - soc - esp_hal_pmu @@ -43,7 +40,6 @@ components/ulp/test_apps/ulp_riscv: disable: - if: SOC_RISCV_COPROC_SUPPORTED != 1 depends_components: - - *common_components - ulp - soc - esp_hal_pmu diff --git a/examples/system/.build-test-rules.yml b/examples/system/.build-test-rules.yml index 20513bcde3..dc50850109 100644 --- a/examples/system/.build-test-rules.yml +++ b/examples/system/.build-test-rules.yml @@ -47,17 +47,14 @@ examples/system/efuse: examples/system/esp_event/default_event_loop: depends_components: - - *common_components - esp_event examples/system/esp_event/user_event_loops: depends_components: - - *common_components - esp_event examples/system/esp_timer: depends_components: - - *common_components - esp_timer examples/system/eventfd: @@ -65,7 +62,6 @@ examples/system/eventfd: - if: SOC_GPTIMER_SUPPORTED != 1 and (IDF_TARGET != "esp32" and (NIGHTLY_RUN != "1" or IDF_TARGET == "linux")) or IDF_TARGET in ["esp32s31"] # TODO: [ESP32S31] IDF-14932 reason: no target specific functionality, testing on a single target is sufficient depends_components: - - *common_components - vfs - esp_driver_gptimer @@ -89,7 +85,6 @@ examples/system/heap_task_tracking: - if: IDF_TARGET != "esp32c3" and (NIGHTLY_RUN != "1" or IDF_TARGET == "linux") reason: no target specific functionality, testing on a single target is sufficient depends_components: - - *common_components - heap examples/system/himem: @@ -102,7 +97,6 @@ examples/system/ipc/ipc_isr/riscv: - if: IDF_TARGET in ["esp32p4"] reason: The test is intended only for multi-core chips depends_components: - - *common_components - esp_system examples/system/ipc/ipc_isr/xtensa: @@ -110,7 +104,6 @@ examples/system/ipc/ipc_isr/xtensa: - if: IDF_TARGET in ["esp32", "esp32s3"] reason: The test is intended only for multi-core chips depends_components: - - *common_components - esp_system examples/system/light_sleep: @@ -121,6 +114,9 @@ examples/system/nmi_isr: enable: - if: IDF_TARGET in ["esp32", "esp32s2", "esp32s3"] reason: test NMI for Xtensa targets only + depends_components: + - esp_system + - xtensa examples/system/ota/advanced_https_ota: disable: @@ -233,15 +229,14 @@ examples/system/perfmon: - if: IDF_TARGET == "esp32" reason: testing on a single target is sufficient depends_components: - - *common_components - perfmon + - xtensa examples/system/pthread: disable: - if: IDF_TARGET != "esp32" and (NIGHTLY_RUN != "1" or IDF_TARGET == "linux") reason: no target specific functionality, testing on a single target is sufficient depends_components: - - *common_components - pthread examples/system/rt_mqueue: @@ -249,7 +244,6 @@ examples/system/rt_mqueue: - if: IDF_TARGET != "esp32" and (NIGHTLY_RUN != "1" or IDF_TARGET == "linux") reason: no target specific functionality, testing on a single target is sufficient depends_components: - - *common_components - rt examples/system/select: @@ -287,7 +281,6 @@ examples/system/task_watchdog: - if: IDF_TARGET != "esp32" and (NIGHTLY_RUN != "1" or IDF_TARGET == "linux") reason: no target specific functionality, testing on a single target is sufficient depends_components: - - *common_components - esp_system examples/system/unit_test/: @@ -295,7 +288,6 @@ examples/system/unit_test/: - if: IDF_TARGET != "esp32" and (NIGHTLY_RUN != "1" or IDF_TARGET == "linux") reason: no target specific functionality, testing on a single target is sufficient depends_components: - - *common_components - unity examples/system/xip_from_psram: diff --git a/examples/system/ulp/.build-test-rules.yml b/examples/system/ulp/.build-test-rules.yml index 925b72e0b8..7613c73aa0 100644 --- a/examples/system/ulp/.build-test-rules.yml +++ b/examples/system/ulp/.build-test-rules.yml @@ -1,195 +1,137 @@ # Documentation: .gitlab/ci/README.md#manifest-file-to-control-the-buildtest-apps +.ulp_default_depends: &ulp_default_depends + depends_components: + - ulp + - esp_hw_support + - esp_hal_pmu + examples/system/ulp/lp_core/build_system: enable: - if: SOC_LP_CORE_SUPPORTED == 1 - depends_components: - - *common_components - - ulp - - esp_hw_support - - esp_hal_pmu + <<: *ulp_default_depends examples/system/ulp/lp_core/debugging: enable: - if: SOC_LP_CORE_SUPPORTED == 1 - depends_components: - - *common_components - - ulp - - esp_hw_support - - esp_hal_pmu + <<: *ulp_default_depends examples/system/ulp/lp_core/gpio: disable: - if: SOC_DEEP_SLEEP_SUPPORTED != 1 enable: - if: (SOC_LP_CORE_SUPPORTED == 1) and (SOC_RTCIO_PIN_COUNT > 0) - depends_components: - - *common_components - - ulp - - esp_hw_support - - esp_hal_pmu + <<: *ulp_default_depends + depends_components+: - esp_hal_gpio examples/system/ulp/lp_core/gpio_intr_pulse_counter: enable: - if: (SOC_LP_CORE_SUPPORTED == 1) and (SOC_ULP_LP_UART_SUPPORTED == 1 and SOC_DEEP_SLEEP_SUPPORTED == 1) - depends_components: - - *common_components - - ulp - - esp_hw_support - - esp_hal_pmu + <<: *ulp_default_depends + depends_components+: - esp_hal_gpio examples/system/ulp/lp_core/gpio_wakeup: enable: - if: (SOC_LP_CORE_SUPPORTED == 1) and (SOC_RTCIO_PIN_COUNT > 0) - depends_components: - - *common_components - - ulp - - esp_hw_support - - esp_hal_pmu + <<: *ulp_default_depends + depends_components+: - esp_driver_gpio - esp_hal_gpio examples/system/ulp/lp_core/inter_cpu_critical_section/: enable: - if: SOC_LP_CORE_SUPPORTED == 1 - depends_components: - - *common_components - - ulp - - esp_hw_support - - esp_hal_pmu + <<: *ulp_default_depends examples/system/ulp/lp_core/interrupt: enable: - if: SOC_LP_CORE_SUPPORTED == 1 - depends_components: - - *common_components - - ulp - - esp_hw_support - - esp_hal_pmu + <<: *ulp_default_depends examples/system/ulp/lp_core/lp_adc: disable: - if: (SOC_LP_ADC_SUPPORTED != 1) - depends_components: - - *common_components - - ulp + <<: *ulp_default_depends + depends_components+: - esp_adc - - esp_hw_support - - esp_hal_pmu - esp_hal_ana_conv - esp_hal_uart examples/system/ulp/lp_core/lp_i2c: enable: - if: SOC_LP_I2C_SUPPORTED == 1 and SOC_DEEP_SLEEP_SUPPORTED == 1 - depends_components: - - *common_components - - ulp - - esp_hw_support - - esp_hal_pmu + <<: *ulp_default_depends + depends_components+: - esp_hal_i2c examples/system/ulp/lp_core/lp_mailbox: enable: - if: SOC_LP_CORE_SUPPORTED == 1 - depends_components: - - *common_components - - ulp - - esp_hw_support - - esp_hal_pmu + <<: *ulp_default_depends examples/system/ulp/lp_core/lp_spi: enable: - if: SOC_LP_SPI_SUPPORTED == 1 and SOC_DEEP_SLEEP_SUPPORTED == 1 - depends_components: - - *common_components - - ulp - - esp_hw_support - - esp_hal_pmu + <<: *ulp_default_depends + depends_components+: - esp_hal_gpspi examples/system/ulp/lp_core/lp_timer_interrupt: disable: - if: (SOC_LP_CORE_SUPPORTED != 1) or (SOC_LP_TIMER_SUPPORTED != 1) - depends_components: - - *common_components - - ulp - - esp_hw_support - - esp_hal_pmu + <<: *ulp_default_depends examples/system/ulp/lp_core/lp_touch: enable: - if: SOC_TOUCH_SENSOR_SUPPORTED == 1 and (SOC_DEEP_SLEEP_SUPPORTED == 1 and SOC_LP_CORE_SUPPORTED == 1) - depends_components: - - *common_components - - ulp - - esp_hw_support - - esp_hal_pmu + <<: *ulp_default_depends + depends_components+: - esp_driver_touch_sens - esp_hal_touch_sens examples/system/ulp/lp_core/lp_uart/lp_uart_char_seq_wakeup: disable: - if: (SOC_ULP_LP_UART_SUPPORTED != 1) - depends_components: - - *common_components - - ulp - - esp_hw_support - - esp_hal_pmu + <<: *ulp_default_depends + depends_components+: - esp_hal_uart examples/system/ulp/lp_core/lp_uart/lp_uart_echo: disable: - if: (SOC_ULP_LP_UART_SUPPORTED != 1) or (SOC_DEEP_SLEEP_SUPPORTED != 1) - depends_components: - - *common_components - - ulp - - esp_hw_support - - esp_hal_pmu + <<: *ulp_default_depends + depends_components+: - esp_hal_uart examples/system/ulp/lp_core/lp_uart/lp_uart_print: disable: - if: (SOC_ULP_LP_UART_SUPPORTED != 1) or (SOC_DEEP_SLEEP_SUPPORTED != 1) - depends_components: - - *common_components - - ulp - - esp_hw_support - - esp_hal_pmu + <<: *ulp_default_depends + depends_components+: - esp_hal_uart examples/system/ulp/ulp_fsm/ulp: disable: - if: SOC_ULP_FSM_SUPPORTED != 1 - depends_components: - - *common_components - - ulp - - esp_hw_support - - esp_hal_pmu + <<: *ulp_default_depends examples/system/ulp/ulp_fsm/ulp_adc: enable: - if: IDF_TARGET in ["esp32", "esp32s3"] temporary: true reason: the other targets are not tested yet - depends_components: - - *common_components - - ulp - - esp_hw_support - - esp_hal_pmu + <<: *ulp_default_depends + depends_components+: - esp_adc - esp_hal_ana_conv examples/system/ulp/ulp_riscv/adc: enable: - if: SOC_RISCV_COPROC_SUPPORTED == 1 - depends_components: - - *common_components - - ulp - - esp_hw_support - - esp_hal_pmu + <<: *ulp_default_depends + depends_components+: - esp_adc - esp_hal_ana_conv @@ -198,79 +140,53 @@ examples/system/ulp/ulp_riscv/ds18b20_onewire: - if: IDF_TARGET == "esp32s2" temporary: true reason: the other targets are not tested yet - depends_components: - - *common_components - - ulp - - esp_hw_support - - esp_hal_pmu + <<: *ulp_default_depends + depends_components+: - esp_hal_gpio examples/system/ulp/ulp_riscv/gpio: enable: - if: SOC_RISCV_COPROC_SUPPORTED == 1 - depends_components: - - *common_components - - ulp - - esp_hw_support - - esp_hal_pmu + <<: *ulp_default_depends + depends_components+: - esp_hal_gpio examples/system/ulp/ulp_riscv/gpio_interrupt: enable: - if: SOC_RISCV_COPROC_SUPPORTED == 1 - depends_components: - - *common_components - - ulp - - esp_hw_support - - esp_hal_pmu + <<: *ulp_default_depends + depends_components+: - esp_driver_gpio - esp_hal_gpio examples/system/ulp/ulp_riscv/gpio_pulse_counter: enable: - if: SOC_RISCV_COPROC_SUPPORTED == 1 - depends_components: - - *common_components - - ulp - - esp_hw_support - - esp_hal_pmu + <<: *ulp_default_depends + depends_components+: - esp_hal_gpio examples/system/ulp/ulp_riscv/i2c: enable: - if: SOC_RISCV_COPROC_SUPPORTED == 1 - depends_components: - - *common_components - - ulp - - esp_hw_support - - esp_hal_pmu + <<: *ulp_default_depends + depends_components+: - esp_hal_i2c examples/system/ulp/ulp_riscv/interrupts: enable: - if: SOC_RISCV_COPROC_SUPPORTED == 1 - depends_components: - - *common_components - - ulp - - esp_hw_support - - esp_hal_pmu + <<: *ulp_default_depends examples/system/ulp/ulp_riscv/touch: enable: - if: SOC_RISCV_COPROC_SUPPORTED == 1 - depends_components: - - *common_components - - ulp - - esp_hw_support - - esp_hal_pmu + <<: *ulp_default_depends + depends_components+: - esp_driver_touch_sens - esp_hal_touch_sens examples/system/ulp/ulp_riscv/uart_print: enable: - if: SOC_RISCV_COPROC_SUPPORTED == 1 - depends_components: - - *common_components - - ulp - - esp_hw_support - - esp_hal_pmu + <<: *ulp_default_depends