diff --git a/components/driver/test_apps/analog_comparator/CMakeLists.txt b/components/driver/test_apps/analog_comparator/CMakeLists.txt index 1b4500c607..4da21a865e 100644 --- a/components/driver/test_apps/analog_comparator/CMakeLists.txt +++ b/components/driver/test_apps/analog_comparator/CMakeLists.txt @@ -1,6 +1,9 @@ # This is the project CMakeLists.txt file for the test subproject cmake_minimum_required(VERSION 3.16) +# "Trim" the build. Include the minimal set of components, main, and anything it depends on. +set(COMPONENTS main) + include($ENV{IDF_PATH}/tools/cmake/project.cmake) project(test_ana_cmpr) diff --git a/components/driver/test_apps/analog_comparator/main/CMakeLists.txt b/components/driver/test_apps/analog_comparator/main/CMakeLists.txt index beb627afb1..bad9d9c331 100644 --- a/components/driver/test_apps/analog_comparator/main/CMakeLists.txt +++ b/components/driver/test_apps/analog_comparator/main/CMakeLists.txt @@ -8,4 +8,5 @@ endif() idf_component_register(SRCS ${srcs} INCLUDE_DIRS "." + PRIV_REQUIRES unity driver WHOLE_ARCHIVE) diff --git a/components/driver/test_apps/dac_test_apps/dac/CMakeLists.txt b/components/driver/test_apps/dac_test_apps/dac/CMakeLists.txt index 465309e6fb..82cd7773cf 100644 --- a/components/driver/test_apps/dac_test_apps/dac/CMakeLists.txt +++ b/components/driver/test_apps/dac_test_apps/dac/CMakeLists.txt @@ -1,6 +1,9 @@ # This is the project CMakeLists.txt file for the test subproject cmake_minimum_required(VERSION 3.16) +# "Trim" the build. Include the minimal set of components, main, and anything it depends on. +set(COMPONENTS main) + include($ENV{IDF_PATH}/tools/cmake/project.cmake) project(dac_test) diff --git a/components/driver/test_apps/dac_test_apps/dac/main/CMakeLists.txt b/components/driver/test_apps/dac_test_apps/dac/main/CMakeLists.txt index 7c837283f1..9ae8264930 100644 --- a/components/driver/test_apps/dac_test_apps/dac/main/CMakeLists.txt +++ b/components/driver/test_apps/dac_test_apps/dac/main/CMakeLists.txt @@ -8,4 +8,5 @@ endif() # In order for the cases defined by `TEST_CASE` to be linked into the final elf, # the component can be registered as WHOLE_ARCHIVE idf_component_register(SRCS ${srcs} + PRIV_REQUIRES unity driver esp_adc WHOLE_ARCHIVE) diff --git a/components/driver/test_apps/dac_test_apps/legacy_dac_driver/CMakeLists.txt b/components/driver/test_apps/dac_test_apps/legacy_dac_driver/CMakeLists.txt index 2c3ca20b22..e1d9d13991 100644 --- a/components/driver/test_apps/dac_test_apps/legacy_dac_driver/CMakeLists.txt +++ b/components/driver/test_apps/dac_test_apps/legacy_dac_driver/CMakeLists.txt @@ -1,6 +1,9 @@ # This is the project CMakeLists.txt file for the test subproject cmake_minimum_required(VERSION 3.16) +# "Trim" the build. Include the minimal set of components, main, and anything it depends on. +set(COMPONENTS main) + include($ENV{IDF_PATH}/tools/cmake/project.cmake) project(dac_legacy_test) diff --git a/components/driver/test_apps/dac_test_apps/legacy_dac_driver/main/CMakeLists.txt b/components/driver/test_apps/dac_test_apps/legacy_dac_driver/main/CMakeLists.txt index c34334492f..a2545a57ee 100644 --- a/components/driver/test_apps/dac_test_apps/legacy_dac_driver/main/CMakeLists.txt +++ b/components/driver/test_apps/dac_test_apps/legacy_dac_driver/main/CMakeLists.txt @@ -4,4 +4,5 @@ set(srcs "test_app_main.c" # In order for the cases defined by `TEST_CASE` to be linked into the final elf, # the component can be registered as WHOLE_ARCHIVE idf_component_register(SRCS ${srcs} + PRIV_REQUIRES unity driver esp_event esp_adc WHOLE_ARCHIVE) diff --git a/components/driver/test_apps/dac_test_apps/legacy_dac_driver/main/test_legacy_dac.c b/components/driver/test_apps/dac_test_apps/legacy_dac_driver/main/test_legacy_dac.c index d6cabe93c4..7a2a5da90b 100644 --- a/components/driver/test_apps/dac_test_apps/legacy_dac_driver/main/test_legacy_dac.c +++ b/components/driver/test_apps/dac_test_apps/legacy_dac_driver/main/test_legacy_dac.c @@ -1,5 +1,5 @@ /* - * SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD + * SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 */ @@ -13,9 +13,7 @@ #include "unity_test_utils.h" #include "esp_system.h" #include "esp_event.h" -#include "esp_wifi.h" #include "esp_log.h" -#include "nvs_flash.h" #include "soc/soc_caps.h" #define CONFIG_ADC_SUPPRESS_DEPRECATE_WARN 1 #include "driver/adc.h" diff --git a/components/driver/test_apps/gpio/CMakeLists.txt b/components/driver/test_apps/gpio/CMakeLists.txt index 707353c92a..22d3b5b082 100644 --- a/components/driver/test_apps/gpio/CMakeLists.txt +++ b/components/driver/test_apps/gpio/CMakeLists.txt @@ -1,6 +1,9 @@ # This is the project CMakeLists.txt file for the test subproject cmake_minimum_required(VERSION 3.16) +# "Trim" the build. Include the minimal set of components, main, and anything it depends on. +set(COMPONENTS main) + include($ENV{IDF_PATH}/tools/cmake/project.cmake) project(gpio_test) diff --git a/components/driver/test_apps/gpio/main/CMakeLists.txt b/components/driver/test_apps/gpio/main/CMakeLists.txt index ebc552aaf8..8e1c0d8274 100644 --- a/components/driver/test_apps/gpio/main/CMakeLists.txt +++ b/components/driver/test_apps/gpio/main/CMakeLists.txt @@ -12,4 +12,5 @@ endif() # In order for the cases defined by `TEST_CASE` to be linked into the final elf, # the component can be registered as WHOLE_ARCHIVE idf_component_register(SRCS ${srcs} + PRIV_REQUIRES unity driver spi_flash WHOLE_ARCHIVE) diff --git a/components/driver/test_apps/gpio_extensions/CMakeLists.txt b/components/driver/test_apps/gpio_extensions/CMakeLists.txt index 17a9e49590..68baccb97d 100644 --- a/components/driver/test_apps/gpio_extensions/CMakeLists.txt +++ b/components/driver/test_apps/gpio_extensions/CMakeLists.txt @@ -1,6 +1,9 @@ # This is the project CMakeLists.txt file for the test subproject cmake_minimum_required(VERSION 3.16) +# "Trim" the build. Include the minimal set of components, main, and anything it depends on. +set(COMPONENTS main) + include($ENV{IDF_PATH}/tools/cmake/project.cmake) project(gpio_extension_test) diff --git a/components/driver/test_apps/gpio_extensions/main/CMakeLists.txt b/components/driver/test_apps/gpio_extensions/main/CMakeLists.txt index eaa36681ad..81700812a4 100644 --- a/components/driver/test_apps/gpio_extensions/main/CMakeLists.txt +++ b/components/driver/test_apps/gpio_extensions/main/CMakeLists.txt @@ -19,4 +19,5 @@ endif() # In order for the cases defined by `TEST_CASE` to be linked into the final elf, # the component can be registered as WHOLE_ARCHIVE idf_component_register(SRCS ${srcs} + PRIV_REQUIRES unity driver WHOLE_ARCHIVE) diff --git a/components/driver/test_apps/gptimer/CMakeLists.txt b/components/driver/test_apps/gptimer/CMakeLists.txt index 58a4e018f7..798b4e119d 100644 --- a/components/driver/test_apps/gptimer/CMakeLists.txt +++ b/components/driver/test_apps/gptimer/CMakeLists.txt @@ -1,6 +1,9 @@ # This is the project CMakeLists.txt file for the test subproject cmake_minimum_required(VERSION 3.16) +# "Trim" the build. Include the minimal set of components, main, and anything it depends on. +set(COMPONENTS main) + include($ENV{IDF_PATH}/tools/cmake/project.cmake) project(gptimer_test) diff --git a/components/driver/test_apps/gptimer/main/CMakeLists.txt b/components/driver/test_apps/gptimer/main/CMakeLists.txt index be6096026a..7e2ef128f4 100644 --- a/components/driver/test_apps/gptimer/main/CMakeLists.txt +++ b/components/driver/test_apps/gptimer/main/CMakeLists.txt @@ -8,4 +8,5 @@ endif() # In order for the cases defined by `TEST_CASE` to be linked into the final elf, # the component can be registered as WHOLE_ARCHIVE idf_component_register(SRCS ${srcs} + PRIV_REQUIRES unity driver WHOLE_ARCHIVE) diff --git a/components/driver/test_apps/i2c/CMakeLists.txt b/components/driver/test_apps/i2c/CMakeLists.txt index bc7977f61d..8c22385fec 100644 --- a/components/driver/test_apps/i2c/CMakeLists.txt +++ b/components/driver/test_apps/i2c/CMakeLists.txt @@ -1,6 +1,9 @@ # This is the project CMakeLists.txt file for the test subproject cmake_minimum_required(VERSION 3.16) +# "Trim" the build. Include the minimal set of components, main, and anything it depends on. +set(COMPONENTS main) + set(EXTRA_COMPONENT_DIRS "$ENV{IDF_PATH}/tools/unit-test-app/components" ) diff --git a/components/driver/test_apps/i2c/main/CMakeLists.txt b/components/driver/test_apps/i2c/main/CMakeLists.txt index 23741b95bc..61d8e9dae6 100644 --- a/components/driver/test_apps/i2c/main/CMakeLists.txt +++ b/components/driver/test_apps/i2c/main/CMakeLists.txt @@ -3,4 +3,5 @@ set(srcs "test_app_main.c" ) idf_component_register(SRCS ${srcs} + PRIV_REQUIRES unity driver test_utils WHOLE_ARCHIVE) diff --git a/components/driver/test_apps/i2s_test_apps/i2s/CMakeLists.txt b/components/driver/test_apps/i2s_test_apps/i2s/CMakeLists.txt index 1b4b47dae4..80a6df372b 100644 --- a/components/driver/test_apps/i2s_test_apps/i2s/CMakeLists.txt +++ b/components/driver/test_apps/i2s_test_apps/i2s/CMakeLists.txt @@ -1,6 +1,9 @@ # This is the project CMakeLists.txt file for the test subproject cmake_minimum_required(VERSION 3.16) +# "Trim" the build. Include the minimal set of components, main, and anything it depends on. +set(COMPONENTS main) + include($ENV{IDF_PATH}/tools/cmake/project.cmake) project(i2s_test) diff --git a/components/driver/test_apps/i2s_test_apps/i2s/main/CMakeLists.txt b/components/driver/test_apps/i2s_test_apps/i2s/main/CMakeLists.txt index 22bdc0d96d..9e911f818e 100644 --- a/components/driver/test_apps/i2s_test_apps/i2s/main/CMakeLists.txt +++ b/components/driver/test_apps/i2s_test_apps/i2s/main/CMakeLists.txt @@ -3,4 +3,5 @@ set(srcs "test_app_main.c" "test_i2s_iram.c") idf_component_register(SRCS ${srcs} + PRIV_REQUIRES unity driver spi_flash WHOLE_ARCHIVE) diff --git a/components/driver/test_apps/i2s_test_apps/i2s_tdm/CMakeLists.txt b/components/driver/test_apps/i2s_test_apps/i2s_tdm/CMakeLists.txt index c66f4b2e96..d4ac1c8599 100644 --- a/components/driver/test_apps/i2s_test_apps/i2s_tdm/CMakeLists.txt +++ b/components/driver/test_apps/i2s_test_apps/i2s_tdm/CMakeLists.txt @@ -2,6 +2,9 @@ # in this exact order for cmake to work correctly cmake_minimum_required(VERSION 3.16) +# "Trim" the build. Include the minimal set of components, main, and anything it depends on. +set(COMPONENTS main) + set(EXTRA_COMPONENT_DIRS "$ENV{IDF_PATH}/tools/unit-test-app/components" ) diff --git a/components/driver/test_apps/i2s_test_apps/i2s_tdm/main/CMakeLists.txt b/components/driver/test_apps/i2s_test_apps/i2s_tdm/main/CMakeLists.txt index e86a24fe8e..356755d43c 100644 --- a/components/driver/test_apps/i2s_test_apps/i2s_tdm/main/CMakeLists.txt +++ b/components/driver/test_apps/i2s_test_apps/i2s_tdm/main/CMakeLists.txt @@ -1,4 +1,5 @@ idf_component_register(SRCS "test_app_main.c" "test_i2s_tdm_full_duplex.c" + PRIV_REQUIRES unity driver test_utils INCLUDE_DIRS "." WHOLE_ARCHIVE ) diff --git a/components/driver/test_apps/i2s_test_apps/legacy_i2s_adc_dac/CMakeLists.txt b/components/driver/test_apps/i2s_test_apps/legacy_i2s_adc_dac/CMakeLists.txt index af458843d5..b774ebdba4 100644 --- a/components/driver/test_apps/i2s_test_apps/legacy_i2s_adc_dac/CMakeLists.txt +++ b/components/driver/test_apps/i2s_test_apps/legacy_i2s_adc_dac/CMakeLists.txt @@ -1,5 +1,8 @@ # This is the project CMakeLists.txt file for the test subproject cmake_minimum_required(VERSION 3.16) +# "Trim" the build. Include the minimal set of components, main, and anything it depends on. +set(COMPONENTS main) + include($ENV{IDF_PATH}/tools/cmake/project.cmake) project(i2s_adc_dac_test) diff --git a/components/driver/test_apps/i2s_test_apps/legacy_i2s_adc_dac/main/CMakeLists.txt b/components/driver/test_apps/i2s_test_apps/legacy_i2s_adc_dac/main/CMakeLists.txt index b50ed4fa22..c6922d7e37 100644 --- a/components/driver/test_apps/i2s_test_apps/legacy_i2s_adc_dac/main/CMakeLists.txt +++ b/components/driver/test_apps/i2s_test_apps/legacy_i2s_adc_dac/main/CMakeLists.txt @@ -3,4 +3,5 @@ set(srcs "test_app_main.c" "test_i2s_dac.c") idf_component_register(SRCS ${srcs} + PRIV_REQUIRES unity driver esp_event esp_adc WHOLE_ARCHIVE) diff --git a/components/driver/test_apps/i2s_test_apps/legacy_i2s_adc_dac/main/test_i2s_adc.c b/components/driver/test_apps/i2s_test_apps/legacy_i2s_adc_dac/main/test_i2s_adc.c index df6716c049..a7c29dd6c8 100644 --- a/components/driver/test_apps/i2s_test_apps/legacy_i2s_adc_dac/main/test_i2s_adc.c +++ b/components/driver/test_apps/i2s_test_apps/legacy_i2s_adc_dac/main/test_i2s_adc.c @@ -18,9 +18,7 @@ #include "unity.h" #include "esp_system.h" #include "esp_event.h" -#include "esp_wifi.h" #include "esp_log.h" -#include "nvs_flash.h" #include "esp_rom_sys.h" /* diff --git a/components/driver/test_apps/i2s_test_apps/legacy_i2s_adc_dac/main/test_i2s_dac.c b/components/driver/test_apps/i2s_test_apps/legacy_i2s_adc_dac/main/test_i2s_dac.c index 90a370153d..88c4a47e2f 100644 --- a/components/driver/test_apps/i2s_test_apps/legacy_i2s_adc_dac/main/test_i2s_dac.c +++ b/components/driver/test_apps/i2s_test_apps/legacy_i2s_adc_dac/main/test_i2s_dac.c @@ -16,9 +16,7 @@ #include "unity.h" #include "esp_system.h" #include "esp_event.h" -#include "esp_wifi.h" #include "esp_log.h" -#include "nvs_flash.h" #include "test_dac_audio_file.h" #include "driver/i2s.h" #include "driver/dac.h" diff --git a/components/driver/test_apps/i2s_test_apps/legacy_i2s_driver/CMakeLists.txt b/components/driver/test_apps/i2s_test_apps/legacy_i2s_driver/CMakeLists.txt index 0acac81f65..bbaee76ce1 100644 --- a/components/driver/test_apps/i2s_test_apps/legacy_i2s_driver/CMakeLists.txt +++ b/components/driver/test_apps/i2s_test_apps/legacy_i2s_driver/CMakeLists.txt @@ -1,5 +1,8 @@ # This is the project CMakeLists.txt file for the test subproject cmake_minimum_required(VERSION 3.16) +# "Trim" the build. Include the minimal set of components, main, and anything it depends on. +set(COMPONENTS main) + include($ENV{IDF_PATH}/tools/cmake/project.cmake) project(i2s_legacy_test) diff --git a/components/driver/test_apps/i2s_test_apps/legacy_i2s_driver/main/CMakeLists.txt b/components/driver/test_apps/i2s_test_apps/legacy_i2s_driver/main/CMakeLists.txt index 60f64e8760..8a091fba5f 100644 --- a/components/driver/test_apps/i2s_test_apps/legacy_i2s_driver/main/CMakeLists.txt +++ b/components/driver/test_apps/i2s_test_apps/legacy_i2s_driver/main/CMakeLists.txt @@ -2,4 +2,5 @@ set(srcs "test_app_main.c" "test_legacy_i2s.c") idf_component_register(SRCS ${srcs} + PRIV_REQUIRES unity driver WHOLE_ARCHIVE) diff --git a/components/driver/test_apps/ledc/CMakeLists.txt b/components/driver/test_apps/ledc/CMakeLists.txt index 0fdd71d694..a7906e6886 100644 --- a/components/driver/test_apps/ledc/CMakeLists.txt +++ b/components/driver/test_apps/ledc/CMakeLists.txt @@ -1,6 +1,9 @@ # This is the project CMakeLists.txt file for the test subproject cmake_minimum_required(VERSION 3.16) +# "Trim" the build. Include the minimal set of components, main, and anything it depends on. +set(COMPONENTS main) + include($ENV{IDF_PATH}/tools/cmake/project.cmake) project(ledc_test) diff --git a/components/driver/test_apps/ledc/main/CMakeLists.txt b/components/driver/test_apps/ledc/main/CMakeLists.txt index dd8de17139..88d1d6cfbb 100644 --- a/components/driver/test_apps/ledc/main/CMakeLists.txt +++ b/components/driver/test_apps/ledc/main/CMakeLists.txt @@ -4,4 +4,5 @@ set(srcs "test_app_main.c" # In order for the cases defined by `TEST_CASE` to be linked into the final elf, # the component can be registered as WHOLE_ARCHIVE idf_component_register(SRCS ${srcs} + PRIV_REQUIRES unity driver esp_timer WHOLE_ARCHIVE) diff --git a/components/driver/test_apps/legacy_adc_driver/CMakeLists.txt b/components/driver/test_apps/legacy_adc_driver/CMakeLists.txt index b1cf7d2df9..4372ec085e 100644 --- a/components/driver/test_apps/legacy_adc_driver/CMakeLists.txt +++ b/components/driver/test_apps/legacy_adc_driver/CMakeLists.txt @@ -1,5 +1,8 @@ # This is the project CMakeLists.txt file for the test subproject cmake_minimum_required(VERSION 3.16) +# "Trim" the build. Include the minimal set of components, main, and anything it depends on. +set(COMPONENTS main) + include($ENV{IDF_PATH}/tools/cmake/project.cmake) project(legacy_adc_driver_test) diff --git a/components/driver/test_apps/legacy_adc_driver/main/CMakeLists.txt b/components/driver/test_apps/legacy_adc_driver/main/CMakeLists.txt index ed39466490..97e214a19e 100644 --- a/components/driver/test_apps/legacy_adc_driver/main/CMakeLists.txt +++ b/components/driver/test_apps/legacy_adc_driver/main/CMakeLists.txt @@ -2,4 +2,5 @@ set(srcs "test_app_main.c" "test_legacy_adc.c") idf_component_register(SRCS ${srcs} + PRIV_REQUIRES unity driver WHOLE_ARCHIVE) diff --git a/components/driver/test_apps/legacy_mcpwm_driver/CMakeLists.txt b/components/driver/test_apps/legacy_mcpwm_driver/CMakeLists.txt index 6a6fac6b51..36966373c3 100644 --- a/components/driver/test_apps/legacy_mcpwm_driver/CMakeLists.txt +++ b/components/driver/test_apps/legacy_mcpwm_driver/CMakeLists.txt @@ -1,5 +1,8 @@ # This is the project CMakeLists.txt file for the test subproject cmake_minimum_required(VERSION 3.16) +# "Trim" the build. Include the minimal set of components, main, and anything it depends on. +set(COMPONENTS main) + include($ENV{IDF_PATH}/tools/cmake/project.cmake) project(legacy_mcpwm_driver_test) diff --git a/components/driver/test_apps/legacy_mcpwm_driver/main/CMakeLists.txt b/components/driver/test_apps/legacy_mcpwm_driver/main/CMakeLists.txt index f5ad62dfcf..8e3ba4f804 100644 --- a/components/driver/test_apps/legacy_mcpwm_driver/main/CMakeLists.txt +++ b/components/driver/test_apps/legacy_mcpwm_driver/main/CMakeLists.txt @@ -4,4 +4,5 @@ set(srcs "test_app_main.c" # In order for the cases defined by `TEST_CASE` to be linked into the final elf, # the component can be registered as WHOLE_ARCHIVE idf_component_register(SRCS ${srcs} + PRIV_REQUIRES unity driver WHOLE_ARCHIVE) diff --git a/components/driver/test_apps/legacy_pcnt_driver/CMakeLists.txt b/components/driver/test_apps/legacy_pcnt_driver/CMakeLists.txt index 3315988490..d1f6f707c1 100644 --- a/components/driver/test_apps/legacy_pcnt_driver/CMakeLists.txt +++ b/components/driver/test_apps/legacy_pcnt_driver/CMakeLists.txt @@ -1,5 +1,8 @@ # This is the project CMakeLists.txt file for the test subproject cmake_minimum_required(VERSION 3.16) +# "Trim" the build. Include the minimal set of components, main, and anything it depends on. +set(COMPONENTS main) + include($ENV{IDF_PATH}/tools/cmake/project.cmake) project(legacy_pcnt_driver_test) diff --git a/components/driver/test_apps/legacy_pcnt_driver/main/CMakeLists.txt b/components/driver/test_apps/legacy_pcnt_driver/main/CMakeLists.txt index 193f3ba02d..bd11999920 100644 --- a/components/driver/test_apps/legacy_pcnt_driver/main/CMakeLists.txt +++ b/components/driver/test_apps/legacy_pcnt_driver/main/CMakeLists.txt @@ -4,4 +4,5 @@ set(srcs "test_app_main.c" # In order for the cases defined by `TEST_CASE` to be linked into the final elf, # the component can be registered as WHOLE_ARCHIVE idf_component_register(SRCS ${srcs} + PRIV_REQUIRES unity driver WHOLE_ARCHIVE) diff --git a/components/driver/test_apps/legacy_rmt_driver/CMakeLists.txt b/components/driver/test_apps/legacy_rmt_driver/CMakeLists.txt index a8ae981672..630dc8b971 100644 --- a/components/driver/test_apps/legacy_rmt_driver/CMakeLists.txt +++ b/components/driver/test_apps/legacy_rmt_driver/CMakeLists.txt @@ -1,5 +1,8 @@ # This is the project CMakeLists.txt file for the test subproject cmake_minimum_required(VERSION 3.16) +# "Trim" the build. Include the minimal set of components, main, and anything it depends on. +set(COMPONENTS main) + include($ENV{IDF_PATH}/tools/cmake/project.cmake) project(legacy_rmt_test) diff --git a/components/driver/test_apps/legacy_rmt_driver/main/CMakeLists.txt b/components/driver/test_apps/legacy_rmt_driver/main/CMakeLists.txt index f8bd38290a..d532172f93 100644 --- a/components/driver/test_apps/legacy_rmt_driver/main/CMakeLists.txt +++ b/components/driver/test_apps/legacy_rmt_driver/main/CMakeLists.txt @@ -2,4 +2,5 @@ set(srcs "test_app_main.c" "test_legacy_rmt.c") idf_component_register(SRCS ${srcs} + PRIV_REQUIRES unity driver infrared_tools WHOLE_ARCHIVE) diff --git a/components/driver/test_apps/legacy_rtc_temp_driver/CMakeLists.txt b/components/driver/test_apps/legacy_rtc_temp_driver/CMakeLists.txt index b7da134625..16950e2f79 100644 --- a/components/driver/test_apps/legacy_rtc_temp_driver/CMakeLists.txt +++ b/components/driver/test_apps/legacy_rtc_temp_driver/CMakeLists.txt @@ -1,5 +1,8 @@ # This is the project CMakeLists.txt file for the test subproject cmake_minimum_required(VERSION 3.16) +# "Trim" the build. Include the minimal set of components, main, and anything it depends on. +set(COMPONENTS main) + include($ENV{IDF_PATH}/tools/cmake/project.cmake) project(legacy_rtc_temp_driver_test) diff --git a/components/driver/test_apps/legacy_rtc_temp_driver/main/CMakeLists.txt b/components/driver/test_apps/legacy_rtc_temp_driver/main/CMakeLists.txt index ab7674124a..82b110f259 100644 --- a/components/driver/test_apps/legacy_rtc_temp_driver/main/CMakeLists.txt +++ b/components/driver/test_apps/legacy_rtc_temp_driver/main/CMakeLists.txt @@ -4,4 +4,5 @@ set(srcs "test_app_main.c" # In order for the cases defined by `TEST_CASE` to be linked into the final elf, # the component can be registered as WHOLE_ARCHIVE idf_component_register(SRCS ${srcs} + PRIV_REQUIRES unity driver WHOLE_ARCHIVE) diff --git a/components/driver/test_apps/legacy_timer_driver/CMakeLists.txt b/components/driver/test_apps/legacy_timer_driver/CMakeLists.txt index e65bf8d0b5..9dac72a6c8 100644 --- a/components/driver/test_apps/legacy_timer_driver/CMakeLists.txt +++ b/components/driver/test_apps/legacy_timer_driver/CMakeLists.txt @@ -1,5 +1,8 @@ # This is the project CMakeLists.txt file for the test subproject cmake_minimum_required(VERSION 3.16) +# "Trim" the build. Include the minimal set of components, main, and anything it depends on. +set(COMPONENTS main) + include($ENV{IDF_PATH}/tools/cmake/project.cmake) project(legacy_timer_driver_test) diff --git a/components/driver/test_apps/legacy_timer_driver/main/CMakeLists.txt b/components/driver/test_apps/legacy_timer_driver/main/CMakeLists.txt index fea9144c4d..c0633e16ff 100644 --- a/components/driver/test_apps/legacy_timer_driver/main/CMakeLists.txt +++ b/components/driver/test_apps/legacy_timer_driver/main/CMakeLists.txt @@ -4,4 +4,5 @@ set(srcs "test_app_main.c" # In order for the cases defined by `TEST_CASE` to be linked into the final elf, # the component can be registered as WHOLE_ARCHIVE idf_component_register(SRCS ${srcs} + PRIV_REQUIRES unity driver WHOLE_ARCHIVE) diff --git a/components/driver/test_apps/mcpwm/CMakeLists.txt b/components/driver/test_apps/mcpwm/CMakeLists.txt index ad15f86dc1..48dbb3dd5d 100644 --- a/components/driver/test_apps/mcpwm/CMakeLists.txt +++ b/components/driver/test_apps/mcpwm/CMakeLists.txt @@ -1,6 +1,9 @@ # This is the project CMakeLists.txt file for the test subproject cmake_minimum_required(VERSION 3.16) +# "Trim" the build. Include the minimal set of components, main, and anything it depends on. +set(COMPONENTS main) + include($ENV{IDF_PATH}/tools/cmake/project.cmake) project(mcpwm_test) diff --git a/components/driver/test_apps/mcpwm/main/CMakeLists.txt b/components/driver/test_apps/mcpwm/main/CMakeLists.txt index 69804189bb..2ca12ca39e 100644 --- a/components/driver/test_apps/mcpwm/main/CMakeLists.txt +++ b/components/driver/test_apps/mcpwm/main/CMakeLists.txt @@ -15,4 +15,5 @@ endif() # In order for the cases defined by `TEST_CASE` to be linked into the final elf, # the component can be registered as WHOLE_ARCHIVE idf_component_register(SRCS ${srcs} + PRIV_REQUIRES unity driver WHOLE_ARCHIVE) diff --git a/components/driver/test_apps/parlio/CMakeLists.txt b/components/driver/test_apps/parlio/CMakeLists.txt index 072413fca8..0fc1057a2b 100644 --- a/components/driver/test_apps/parlio/CMakeLists.txt +++ b/components/driver/test_apps/parlio/CMakeLists.txt @@ -1,6 +1,9 @@ # This is the project CMakeLists.txt file for the test subproject cmake_minimum_required(VERSION 3.16) +# "Trim" the build. Include the minimal set of components, main, and anything it depends on. +set(COMPONENTS main) + include($ENV{IDF_PATH}/tools/cmake/project.cmake) project(parlio_test) diff --git a/components/driver/test_apps/parlio/main/CMakeLists.txt b/components/driver/test_apps/parlio/main/CMakeLists.txt index e74e89fc26..d3cd015683 100644 --- a/components/driver/test_apps/parlio/main/CMakeLists.txt +++ b/components/driver/test_apps/parlio/main/CMakeLists.txt @@ -4,4 +4,5 @@ set(srcs "test_app_main.c" # In order for the cases defined by `TEST_CASE` to be linked into the final elf, # the component can be registered as WHOLE_ARCHIVE idf_component_register(SRCS ${srcs} + PRIV_REQUIRES unity driver WHOLE_ARCHIVE) diff --git a/components/driver/test_apps/pulse_cnt/CMakeLists.txt b/components/driver/test_apps/pulse_cnt/CMakeLists.txt index a3a67ebac8..bffa04830b 100644 --- a/components/driver/test_apps/pulse_cnt/CMakeLists.txt +++ b/components/driver/test_apps/pulse_cnt/CMakeLists.txt @@ -1,6 +1,9 @@ # This is the project CMakeLists.txt file for the test subproject cmake_minimum_required(VERSION 3.16) +# "Trim" the build. Include the minimal set of components, main, and anything it depends on. +set(COMPONENTS main) + include($ENV{IDF_PATH}/tools/cmake/project.cmake) project(pcnt_test) diff --git a/components/driver/test_apps/pulse_cnt/main/CMakeLists.txt b/components/driver/test_apps/pulse_cnt/main/CMakeLists.txt index 3bfb46de82..a7ee53f40d 100644 --- a/components/driver/test_apps/pulse_cnt/main/CMakeLists.txt +++ b/components/driver/test_apps/pulse_cnt/main/CMakeLists.txt @@ -9,4 +9,5 @@ endif() # In order for the cases defined by `TEST_CASE` to be linked into the final elf, # the component can be registered as WHOLE_ARCHIVE idf_component_register(SRCS ${srcs} + PRIV_REQUIRES unity driver spi_flash WHOLE_ARCHIVE) diff --git a/components/driver/test_apps/rmt/CMakeLists.txt b/components/driver/test_apps/rmt/CMakeLists.txt index aa0d48c4e0..2e90ca7052 100644 --- a/components/driver/test_apps/rmt/CMakeLists.txt +++ b/components/driver/test_apps/rmt/CMakeLists.txt @@ -1,6 +1,9 @@ # This is the project CMakeLists.txt file for the test subproject cmake_minimum_required(VERSION 3.16) +# "Trim" the build. Include the minimal set of components, main, and anything it depends on. +set(COMPONENTS main) + include($ENV{IDF_PATH}/tools/cmake/project.cmake) project(rmt_test) diff --git a/components/driver/test_apps/rmt/main/CMakeLists.txt b/components/driver/test_apps/rmt/main/CMakeLists.txt index c686daddcc..0f606cfe21 100644 --- a/components/driver/test_apps/rmt/main/CMakeLists.txt +++ b/components/driver/test_apps/rmt/main/CMakeLists.txt @@ -9,4 +9,5 @@ if(CONFIG_RMT_ISR_IRAM_SAFE) endif() idf_component_register(SRCS "${srcs}" + PRIV_REQUIRES unity driver esp_timer WHOLE_ARCHIVE) diff --git a/components/driver/test_apps/rs485/CMakeLists.txt b/components/driver/test_apps/rs485/CMakeLists.txt index 2efdce99f1..20e715e839 100644 --- a/components/driver/test_apps/rs485/CMakeLists.txt +++ b/components/driver/test_apps/rs485/CMakeLists.txt @@ -1,6 +1,9 @@ # This is the project CMakeLists.txt file for the test subproject cmake_minimum_required(VERSION 3.16) +# "Trim" the build. Include the minimal set of components, main, and anything it depends on. +set(COMPONENTS main) + set(EXTRA_COMPONENT_DIRS "$ENV{IDF_PATH}/tools/unit-test-app/components") include($ENV{IDF_PATH}/tools/cmake/project.cmake) diff --git a/components/driver/test_apps/sdio/CMakeLists.txt b/components/driver/test_apps/sdio/CMakeLists.txt index 8ad0621207..33e36e5335 100644 --- a/components/driver/test_apps/sdio/CMakeLists.txt +++ b/components/driver/test_apps/sdio/CMakeLists.txt @@ -1,6 +1,9 @@ # This is the project CMakeLists.txt file for the test subproject cmake_minimum_required(VERSION 3.16) +# "Trim" the build. Include the minimal set of components, main, and anything it depends on. +set(COMPONENTS main) + set(EXTRA_COMPONENT_DIRS "$ENV{IDF_PATH}/tools/unit-test-app/components" "$ENV{IDF_PATH}/components/driver/test_apps/components" diff --git a/components/driver/test_apps/spi/master/CMakeLists.txt b/components/driver/test_apps/spi/master/CMakeLists.txt index 7f40d3b5ea..dae1f3be41 100644 --- a/components/driver/test_apps/spi/master/CMakeLists.txt +++ b/components/driver/test_apps/spi/master/CMakeLists.txt @@ -1,6 +1,9 @@ # This is the project CMakeLists.txt file for the test subproject cmake_minimum_required(VERSION 3.16) +# "Trim" the build. Include the minimal set of components, main, and anything it depends on. +set(COMPONENTS main) + set(EXTRA_COMPONENT_DIRS "$ENV{IDF_PATH}/tools/unit-test-app/components" "$ENV{IDF_PATH}/components/driver/test_apps/components" diff --git a/components/driver/test_apps/spi/param/CMakeLists.txt b/components/driver/test_apps/spi/param/CMakeLists.txt index 4420b8c6dc..683bf0ee2c 100644 --- a/components/driver/test_apps/spi/param/CMakeLists.txt +++ b/components/driver/test_apps/spi/param/CMakeLists.txt @@ -1,6 +1,9 @@ # This is the project CMakeLists.txt file for the test subproject cmake_minimum_required(VERSION 3.16) +# "Trim" the build. Include the minimal set of components, main, and anything it depends on. +set(COMPONENTS main) + set(EXTRA_COMPONENT_DIRS "$ENV{IDF_PATH}/tools/unit-test-app/components" "$ENV{IDF_PATH}/components/driver/test_apps/components" diff --git a/components/driver/test_apps/spi/slave/CMakeLists.txt b/components/driver/test_apps/spi/slave/CMakeLists.txt index 2419c64d2b..3fd4c7f9fd 100644 --- a/components/driver/test_apps/spi/slave/CMakeLists.txt +++ b/components/driver/test_apps/spi/slave/CMakeLists.txt @@ -1,6 +1,9 @@ # This is the project CMakeLists.txt file for the test subproject cmake_minimum_required(VERSION 3.16) +# "Trim" the build. Include the minimal set of components, main, and anything it depends on. +set(COMPONENTS main) + set(EXTRA_COMPONENT_DIRS "$ENV{IDF_PATH}/tools/unit-test-app/components" "$ENV{IDF_PATH}/components/driver/test_apps/components" diff --git a/components/driver/test_apps/spi/slave_hd/CMakeLists.txt b/components/driver/test_apps/spi/slave_hd/CMakeLists.txt index f03085bf9f..810b90fb6c 100644 --- a/components/driver/test_apps/spi/slave_hd/CMakeLists.txt +++ b/components/driver/test_apps/spi/slave_hd/CMakeLists.txt @@ -1,6 +1,9 @@ # This is the project CMakeLists.txt file for the test subproject cmake_minimum_required(VERSION 3.16) +# "Trim" the build. Include the minimal set of components, main, and anything it depends on. +set(COMPONENTS main) + set(EXTRA_COMPONENT_DIRS "$ENV{IDF_PATH}/tools/unit-test-app/components" "$ENV{IDF_PATH}/components/driver/test_apps/components" diff --git a/components/driver/test_apps/temperature_sensor/CMakeLists.txt b/components/driver/test_apps/temperature_sensor/CMakeLists.txt index e2b097024c..00e7098230 100644 --- a/components/driver/test_apps/temperature_sensor/CMakeLists.txt +++ b/components/driver/test_apps/temperature_sensor/CMakeLists.txt @@ -1,5 +1,8 @@ # This is the project CMakeLists.txt file for the test subproject cmake_minimum_required(VERSION 3.16) +# "Trim" the build. Include the minimal set of components, main, and anything it depends on. +set(COMPONENTS main) + include($ENV{IDF_PATH}/tools/cmake/project.cmake) project(test_temperature_sensor) diff --git a/components/driver/test_apps/temperature_sensor/main/CMakeLists.txt b/components/driver/test_apps/temperature_sensor/main/CMakeLists.txt index 56250ad55a..c2a5658661 100644 --- a/components/driver/test_apps/temperature_sensor/main/CMakeLists.txt +++ b/components/driver/test_apps/temperature_sensor/main/CMakeLists.txt @@ -4,4 +4,5 @@ set(srcs "test_app_main.c" # In order for the cases defined by `TEST_CASE` to be linked into the final elf, # the component can be registered as WHOLE_ARCHIVE idf_component_register(SRCS ${srcs} + PRIV_REQUIRES unity driver WHOLE_ARCHIVE) diff --git a/components/driver/test_apps/touch_sensor_v1/CMakeLists.txt b/components/driver/test_apps/touch_sensor_v1/CMakeLists.txt index 9cabb5df76..a5f8b9e67d 100644 --- a/components/driver/test_apps/touch_sensor_v1/CMakeLists.txt +++ b/components/driver/test_apps/touch_sensor_v1/CMakeLists.txt @@ -1,5 +1,8 @@ # This is the project CMakeLists.txt file for the test subproject cmake_minimum_required(VERSION 3.16) +# "Trim" the build. Include the minimal set of components, main, and anything it depends on. +set(COMPONENTS main) + include($ENV{IDF_PATH}/tools/cmake/project.cmake) project(touch_sensor_v1_test) diff --git a/components/driver/test_apps/touch_sensor_v1/main/CMakeLists.txt b/components/driver/test_apps/touch_sensor_v1/main/CMakeLists.txt index c13250644d..f690e20fa9 100644 --- a/components/driver/test_apps/touch_sensor_v1/main/CMakeLists.txt +++ b/components/driver/test_apps/touch_sensor_v1/main/CMakeLists.txt @@ -1,3 +1,4 @@ idf_component_register(SRCS "test_app_main.c" "test_touch_v1.c" + PRIV_REQUIRES unity driver WHOLE_ARCHIVE ) diff --git a/components/driver/test_apps/touch_sensor_v2/CMakeLists.txt b/components/driver/test_apps/touch_sensor_v2/CMakeLists.txt index 59a612d92c..0cc2ebc3e8 100644 --- a/components/driver/test_apps/touch_sensor_v2/CMakeLists.txt +++ b/components/driver/test_apps/touch_sensor_v2/CMakeLists.txt @@ -1,5 +1,8 @@ # This is the project CMakeLists.txt file for the test subproject cmake_minimum_required(VERSION 3.16) +# "Trim" the build. Include the minimal set of components, main, and anything it depends on. +set(COMPONENTS main) + include($ENV{IDF_PATH}/tools/cmake/project.cmake) project(touch_sensor_v2_test) diff --git a/components/driver/test_apps/touch_sensor_v2/main/CMakeLists.txt b/components/driver/test_apps/touch_sensor_v2/main/CMakeLists.txt index ef5f0d8fa2..cb731f845f 100644 --- a/components/driver/test_apps/touch_sensor_v2/main/CMakeLists.txt +++ b/components/driver/test_apps/touch_sensor_v2/main/CMakeLists.txt @@ -1,3 +1,4 @@ idf_component_register(SRCS "test_app_main.c" "test_touch_v2.c" "touch_scope.c" + PRIV_REQUIRES unity driver WHOLE_ARCHIVE ) diff --git a/components/driver/test_apps/twai/CMakeLists.txt b/components/driver/test_apps/twai/CMakeLists.txt index d1b8b52293..5c4e48ce79 100644 --- a/components/driver/test_apps/twai/CMakeLists.txt +++ b/components/driver/test_apps/twai/CMakeLists.txt @@ -1,6 +1,9 @@ # This is the project CMakeLists.txt file for the test subproject cmake_minimum_required(VERSION 3.16) +# "Trim" the build. Include the minimal set of components, main, and anything it depends on. +set(COMPONENTS main) + include($ENV{IDF_PATH}/tools/cmake/project.cmake) project(twai_test) diff --git a/components/driver/test_apps/twai/main/CMakeLists.txt b/components/driver/test_apps/twai/main/CMakeLists.txt index 24a3bff0da..525e6e2d87 100644 --- a/components/driver/test_apps/twai/main/CMakeLists.txt +++ b/components/driver/test_apps/twai/main/CMakeLists.txt @@ -5,4 +5,5 @@ set(srcs "test_app_main.c" # In order for the cases defined by `TEST_CASE` to be linked into the final elf, # the component can be registered as WHOLE_ARCHIVE idf_component_register(SRCS ${srcs} + PRIV_REQUIRES unity driver WHOLE_ARCHIVE) diff --git a/components/driver/test_apps/uart/CMakeLists.txt b/components/driver/test_apps/uart/CMakeLists.txt index be8a89bfb0..f19c5a275c 100644 --- a/components/driver/test_apps/uart/CMakeLists.txt +++ b/components/driver/test_apps/uart/CMakeLists.txt @@ -1,6 +1,9 @@ # This is the project CMakeLists.txt file for the test subproject cmake_minimum_required(VERSION 3.16) +# "Trim" the build. Include the minimal set of components, main, and anything it depends on. +set(COMPONENTS main) + set(EXTRA_COMPONENT_DIRS "$ENV{IDF_PATH}/tools/unit-test-app/components") include($ENV{IDF_PATH}/tools/cmake/project.cmake) diff --git a/components/esp_adc/test_apps/adc/CMakeLists.txt b/components/esp_adc/test_apps/adc/CMakeLists.txt index 36ae549fed..f5f69d47cb 100644 --- a/components/esp_adc/test_apps/adc/CMakeLists.txt +++ b/components/esp_adc/test_apps/adc/CMakeLists.txt @@ -3,6 +3,9 @@ cmake_minimum_required(VERSION 3.16) set(EXTRA_COMPONENT_DIRS "$ENV{IDF_PATH}/tools/unit-test-app/components") +# "Trim" the build. Include the minimal set of components, main, and anything it depends on. +set(COMPONENTS main) + include($ENV{IDF_PATH}/tools/cmake/project.cmake) project(adc_test) diff --git a/components/esp_adc/test_apps/adc/main/CMakeLists.txt b/components/esp_adc/test_apps/adc/main/CMakeLists.txt index b545b3fc48..b6cac22db4 100644 --- a/components/esp_adc/test_apps/adc/main/CMakeLists.txt +++ b/components/esp_adc/test_apps/adc/main/CMakeLists.txt @@ -9,4 +9,5 @@ set(srcs "test_app_main.c" # In order for the cases defined by `TEST_CASE` to be linked into the final elf, # the component can be registered as WHOLE_ARCHIVE idf_component_register(SRCS ${srcs} + PRIV_REQUIRES driver esp_wifi nvs_flash esp_adc test_utils WHOLE_ARCHIVE)