From cc7ac472e6863ac14d3208e0bb8589764b752e97 Mon Sep 17 00:00:00 2001 From: Marius Vikhammer Date: Sun, 4 Jan 2026 15:18:26 +0800 Subject: [PATCH] ci(ulp): change depends_components for ULP tests and examples --- .../ulp/test_apps/.build-test-rules.yml | 27 ++ examples/system/.build-test-rules.yml | 168 ------------ examples/system/ulp/.build-test-rules.yml | 249 ++++++++++++++++++ 3 files changed, 276 insertions(+), 168 deletions(-) create mode 100644 examples/system/ulp/.build-test-rules.yml diff --git a/components/ulp/test_apps/.build-test-rules.yml b/components/ulp/test_apps/.build-test-rules.yml index 8045f63c2e..a2f8ea0789 100644 --- a/components/ulp/test_apps/.build-test-rules.yml +++ b/components/ulp/test_apps/.build-test-rules.yml @@ -5,15 +5,42 @@ components/ulp/test_apps/lp_core/lp_core_basic_tests: - if: SOC_LP_CORE_SUPPORTED != 1 - 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: + - ulp + - esp_adc + - esp_driver_i2s + - esp_hal_i2c + - esp_hal_touch_sens + - esp_hal_gpspi + - esp_hal_pmu + - esp_hw_support + components/ulp/test_apps/lp_core/lp_core_hp_uart: disable: - if: SOC_LP_CORE_SUPPORTED != 1 + depends_components: + - ulp + - esp_hal_uart + - esp_hal_pmu + - esp_hw_support + components/ulp/test_apps/ulp_fsm: enable: - if: SOC_ULP_FSM_SUPPORTED == 1 + depends_components: + - ulp + - soc + - esp_hal_pmu + - esp_hw_support + components/ulp/test_apps/ulp_riscv: disable: - if: SOC_RISCV_COPROC_SUPPORTED != 1 + depends_components: + - ulp + - soc + - esp_hal_pmu + - esp_hw_support diff --git a/examples/system/.build-test-rules.yml b/examples/system/.build-test-rules.yml index 6532d37348..2eabc34a7c 100644 --- a/examples/system/.build-test-rules.yml +++ b/examples/system/.build-test-rules.yml @@ -272,174 +272,6 @@ examples/system/task_watchdog: depends_components: - esp_system -examples/system/ulp/lp_core/build_system: - enable: - - if: SOC_LP_CORE_SUPPORTED == 1 - depends_components: - - ulp - -examples/system/ulp/lp_core/debugging: - enable: - - if: SOC_LP_CORE_SUPPORTED == 1 - depends_components: - - ulp - -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: - - ulp - -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: - - ulp - -examples/system/ulp/lp_core/gpio_wakeup: - enable: - - if: (SOC_LP_CORE_SUPPORTED == 1) and (SOC_RTCIO_PIN_COUNT > 0) - depends_components: - - ulp - -examples/system/ulp/lp_core/inter_cpu_critical_section/: - enable: - - if: SOC_LP_CORE_SUPPORTED == 1 - depends_components: - - ulp - -examples/system/ulp/lp_core/interrupt: - enable: - - if: SOC_LP_CORE_SUPPORTED == 1 - depends_components: - - ulp - -examples/system/ulp/lp_core/lp_adc: - disable: - - if: (SOC_LP_ADC_SUPPORTED != 1) - depends_components: - - ulp, esp_adc - -examples/system/ulp/lp_core/lp_i2c: - enable: - - if: SOC_LP_I2C_SUPPORTED == 1 and SOC_DEEP_SLEEP_SUPPORTED == 1 - depends_components: - - ulp - -examples/system/ulp/lp_core/lp_mailbox: - enable: - - if: SOC_LP_CORE_SUPPORTED == 1 - depends_components: - - ulp - -examples/system/ulp/lp_core/lp_spi: - enable: - - if: SOC_LP_SPI_SUPPORTED == 1 and SOC_DEEP_SLEEP_SUPPORTED == 1 - depends_components: - - ulp - -examples/system/ulp/lp_core/lp_timer_interrupt: - disable: - - if: (SOC_LP_CORE_SUPPORTED != 1) or (SOC_RTC_TIMER_V2_SUPPORTED != 1) - depends_components: - - ulp - -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: - - ulp - -examples/system/ulp/lp_core/lp_uart/lp_uart_char_seq_wakeup: - disable: - - if: (SOC_ULP_LP_UART_SUPPORTED != 1) - depends_components: - - ulp - -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: - - ulp - -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: - - ulp - -examples/system/ulp/ulp_fsm/ulp: - disable: - - if: SOC_ULP_FSM_SUPPORTED != 1 - depends_components: - - ulp - -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: - - ulp - -examples/system/ulp/ulp_riscv/adc: - enable: - - if: SOC_RISCV_COPROC_SUPPORTED == 1 - depends_components: - - ulp - -examples/system/ulp/ulp_riscv/ds18b20_onewire: - enable: - - if: IDF_TARGET == "esp32s2" - temporary: true - reason: the other targets are not tested yet - depends_components: - - ulp - -examples/system/ulp/ulp_riscv/gpio: - enable: - - if: SOC_RISCV_COPROC_SUPPORTED == 1 - depends_components: - - ulp - -examples/system/ulp/ulp_riscv/gpio_interrupt: - enable: - - if: SOC_RISCV_COPROC_SUPPORTED == 1 - depends_components: - - ulp - -examples/system/ulp/ulp_riscv/gpio_pulse_counter: - enable: - - if: SOC_RISCV_COPROC_SUPPORTED == 1 - depends_components: - - ulp - -examples/system/ulp/ulp_riscv/i2c: - enable: - - if: SOC_RISCV_COPROC_SUPPORTED == 1 - depends_components: - - ulp - -examples/system/ulp/ulp_riscv/interrupts: - enable: - - if: SOC_RISCV_COPROC_SUPPORTED == 1 - depends_components: - - ulp - -examples/system/ulp/ulp_riscv/touch: - enable: - - if: SOC_RISCV_COPROC_SUPPORTED == 1 - depends_components: - - ulp - -examples/system/ulp/ulp_riscv/uart_print: - enable: - - if: SOC_RISCV_COPROC_SUPPORTED == 1 - depends_components: - - ulp - examples/system/unit_test/: disable: - if: IDF_TARGET != "esp32" and (NIGHTLY_RUN != "1" or IDF_TARGET == "linux") diff --git a/examples/system/ulp/.build-test-rules.yml b/examples/system/ulp/.build-test-rules.yml new file mode 100644 index 0000000000..81f86a1f2f --- /dev/null +++ b/examples/system/ulp/.build-test-rules.yml @@ -0,0 +1,249 @@ +# Documentation: .gitlab/ci/README.md#manifest-file-to-control-the-buildtest-apps + +examples/system/ulp/lp_core/build_system: + enable: + - if: SOC_LP_CORE_SUPPORTED == 1 + depends_components: + - ulp + - esp_hw_support + - esp_hal_pmu + +examples/system/ulp/lp_core/debugging: + enable: + - if: SOC_LP_CORE_SUPPORTED == 1 + depends_components: + - ulp + - esp_hw_support + - esp_hal_pmu + +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: + - ulp + - esp_hw_support + - esp_hal_pmu + - 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: + - ulp + - esp_hw_support + - esp_hal_pmu + - 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: + - ulp + - esp_hw_support + - esp_hal_pmu + - esp_driver_gpio + - esp_hal_gpio + +examples/system/ulp/lp_core/inter_cpu_critical_section/: + enable: + - if: SOC_LP_CORE_SUPPORTED == 1 + depends_components: + - ulp + - esp_hw_support + - esp_hal_pmu + +examples/system/ulp/lp_core/interrupt: + enable: + - if: SOC_LP_CORE_SUPPORTED == 1 + depends_components: + - ulp + - esp_hw_support + - esp_hal_pmu + +examples/system/ulp/lp_core/lp_adc: + disable: + - if: (SOC_LP_ADC_SUPPORTED != 1) + depends_components: + - ulp + - 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: + - ulp + - esp_hw_support + - esp_hal_pmu + - esp_hal_i2c + +examples/system/ulp/lp_core/lp_mailbox: + enable: + - if: SOC_LP_CORE_SUPPORTED == 1 + depends_components: + - ulp + - esp_hw_support + - esp_hal_pmu + +examples/system/ulp/lp_core/lp_spi: + enable: + - if: SOC_LP_SPI_SUPPORTED == 1 and SOC_DEEP_SLEEP_SUPPORTED == 1 + depends_components: + - ulp + - esp_hw_support + - esp_hal_pmu + - 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: + - ulp + - esp_hw_support + - esp_hal_pmu + +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: + - ulp + - esp_hw_support + - esp_hal_pmu + - 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: + - ulp + - esp_hw_support + - esp_hal_pmu + - 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: + - ulp + - esp_hw_support + - esp_hal_pmu + - 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: + - ulp + - esp_hw_support + - esp_hal_pmu + - esp_hal_uart + +examples/system/ulp/ulp_fsm/ulp: + disable: + - if: SOC_ULP_FSM_SUPPORTED != 1 + depends_components: + - ulp + - esp_hw_support + - esp_hal_pmu + +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: + - ulp + - esp_hw_support + - esp_hal_pmu + - esp_adc + - esp_hal_ana_conv + +examples/system/ulp/ulp_riscv/adc: + enable: + - if: SOC_RISCV_COPROC_SUPPORTED == 1 + depends_components: + - ulp + - esp_hw_support + - esp_hal_pmu + - esp_adc + - esp_hal_ana_conv + +examples/system/ulp/ulp_riscv/ds18b20_onewire: + enable: + - if: IDF_TARGET == "esp32s2" + temporary: true + reason: the other targets are not tested yet + depends_components: + - ulp + - esp_hw_support + - esp_hal_pmu + - esp_hal_gpio + +examples/system/ulp/ulp_riscv/gpio: + enable: + - if: SOC_RISCV_COPROC_SUPPORTED == 1 + depends_components: + - ulp + - esp_hw_support + - esp_hal_pmu + - esp_hal_gpio + +examples/system/ulp/ulp_riscv/gpio_interrupt: + enable: + - if: SOC_RISCV_COPROC_SUPPORTED == 1 + depends_components: + - ulp + - esp_hw_support + - esp_hal_pmu + - esp_driver_gpio + - esp_hal_gpio + +examples/system/ulp/ulp_riscv/gpio_pulse_counter: + enable: + - if: SOC_RISCV_COPROC_SUPPORTED == 1 + depends_components: + - ulp + - esp_hw_support + - esp_hal_pmu + - esp_hal_gpio + +examples/system/ulp/ulp_riscv/i2c: + enable: + - if: SOC_RISCV_COPROC_SUPPORTED == 1 + depends_components: + - ulp + - esp_hw_support + - esp_hal_pmu + - esp_hal_i2c + +examples/system/ulp/ulp_riscv/interrupts: + enable: + - if: SOC_RISCV_COPROC_SUPPORTED == 1 + depends_components: + - ulp + - esp_hw_support + - esp_hal_pmu + +examples/system/ulp/ulp_riscv/touch: + enable: + - if: SOC_RISCV_COPROC_SUPPORTED == 1 + depends_components: + - ulp + - esp_hw_support + - esp_hal_pmu + - esp_driver_touch_sens + - esp_hal_touch_sens + +examples/system/ulp/ulp_riscv/uart_print: + enable: + - if: SOC_RISCV_COPROC_SUPPORTED == 1 + depends_components: + - ulp + - esp_hw_support + - esp_hal_pmu