refactor(build_test_rules): invert the logic to avoid involving preview target

Only set enable condition for the app will introduce the preview target in README.md
Replace with disable logic instead
This commit is contained in:
laokaiyao 2023-11-27 21:03:30 +08:00
parent bb0879b3f8
commit 7fa0d61c35
3 changed files with 17 additions and 19 deletions

View File

@ -119,7 +119,7 @@ mainmenu "Espressif IoT Development Framework Configuration"
default "y" if IDF_TARGET="esp32c5" default "y" if IDF_TARGET="esp32c5"
select FREERTOS_UNICORE select FREERTOS_UNICORE
select IDF_TARGET_ARCH_RISCV select IDF_TARGET_ARCH_RISCV
select IDF_ENV_FPGA select IDF_ENV_BRINGUP
config IDF_TARGET_ESP32P4 config IDF_TARGET_ESP32P4
bool bool

View File

@ -54,8 +54,8 @@ examples/system/deep_sleep_wake_stub:
reason: target(s) is not supported yet reason: target(s) is not supported yet
examples/system/efuse: examples/system/efuse:
enable: disable:
- if: IDF_TARGET == "esp32" or (NIGHTLY_RUN == "1" and IDF_TARGET != "linux") - if: IDF_TARGET != "esp32" and (NIGHTLY_RUN != "1" or IDF_TARGET == "linux")
reason: no target specific functionality, testing on a single target is sufficient reason: no target specific functionality, testing on a single target is sufficient
depends_components: depends_components:
- efuse - efuse
@ -74,11 +74,9 @@ examples/system/esp_timer:
- esp_timer - esp_timer
examples/system/eventfd: examples/system/eventfd:
enable:
- if: IDF_TARGET == "esp32" or (NIGHTLY_RUN == "1" and IDF_TARGET != "linux")
reason: no target specific functionality, testing on a single target is sufficient
disable: disable:
- if: SOC_GPTIMER_SUPPORTED != 1 - if: SOC_GPTIMER_SUPPORTED != 1 and (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: depends_components:
- vfs - vfs
- esp_driver_gptimer - esp_driver_gptimer
@ -90,8 +88,8 @@ examples/system/flash_suspend:
reason: the other targets are not tested yet reason: the other targets are not tested yet
examples/system/freertos: examples/system/freertos:
enable: disable:
- if: IDF_TARGET == "esp32" or (NIGHTLY_RUN == "1" and IDF_TARGET != "linux") - if: IDF_TARGET != "esp32" and (NIGHTLY_RUN != "1" or IDF_TARGET == "linux")
reason: no target specific functionality, testing on a single target is sufficient reason: no target specific functionality, testing on a single target is sufficient
depends_components: depends_components:
- freertos - freertos
@ -109,8 +107,8 @@ examples/system/gdbstub:
reason: not supported yet #TODO: IDF-7510 reason: not supported yet #TODO: IDF-7510
examples/system/heap_task_tracking: examples/system/heap_task_tracking:
enable: disable:
- if: IDF_TARGET == "esp32c3" or (NIGHTLY_RUN == "1" and IDF_TARGET != "linux") - if: IDF_TARGET != "esp32c3" and (NIGHTLY_RUN != "1" or IDF_TARGET == "linux")
reason: no target specific functionality, testing on a single target is sufficient reason: no target specific functionality, testing on a single target is sufficient
depends_components: depends_components:
- heap - heap
@ -201,15 +199,15 @@ examples/system/perfmon:
- perfmon - perfmon
examples/system/pthread: examples/system/pthread:
enable: disable:
- if: IDF_TARGET == "esp32" or (NIGHTLY_RUN == "1" and IDF_TARGET != "linux") - if: IDF_TARGET != "esp32" and (NIGHTLY_RUN != "1" or IDF_TARGET == "linux")
reason: no target specific functionality, testing on a single target is sufficient reason: no target specific functionality, testing on a single target is sufficient
depends_components: depends_components:
- pthread - pthread
examples/system/select: examples/system/select:
enable: disable:
- if: IDF_TARGET == "esp32c3" or (NIGHTLY_RUN == "1" and IDF_TARGET != "linux") - if: IDF_TARGET != "esp32c3" and (NIGHTLY_RUN != "1" or IDF_TARGET == "linux")
reason: no target specific functionality, testing on a single target is sufficient reason: no target specific functionality, testing on a single target is sufficient
depends_components: depends_components:
- vfs - vfs
@ -237,8 +235,8 @@ examples/system/sysview_tracing_heap_log:
reason: lack of runners reason: lack of runners
examples/system/task_watchdog: examples/system/task_watchdog:
enable: disable:
- if: IDF_TARGET == "esp32" or (NIGHTLY_RUN == "1" and IDF_TARGET != "linux") - if: IDF_TARGET != "esp32" and (NIGHTLY_RUN != "1" or IDF_TARGET == "linux")
reason: no target specific functionality, testing on a single target is sufficient reason: no target specific functionality, testing on a single target is sufficient
depends_components: depends_components:
- esp_system - esp_system
@ -326,8 +324,8 @@ examples/system/ulp/ulp_riscv/uart_print:
- ulp - ulp
examples/system/unit_test/: examples/system/unit_test/:
enable: disable:
- if: IDF_TARGET == "esp32" or (NIGHTLY_RUN == "1" and IDF_TARGET != "linux") - if: IDF_TARGET != "esp32" and (NIGHTLY_RUN != "1" or IDF_TARGET == "linux")
reason: no target specific functionality, testing on a single target is sufficient reason: no target specific functionality, testing on a single target is sufficient
depends_components: depends_components:
- unity - unity