diff --git a/components/app_update/test_apps/CMakeLists.txt b/components/app_update/test_apps/CMakeLists.txt index 3253e2231a..35fff8ca41 100644 --- a/components/app_update/test_apps/CMakeLists.txt +++ b/components/app_update/test_apps/CMakeLists.txt @@ -2,6 +2,7 @@ cmake_minimum_required(VERSION 3.16) set(EXTRA_COMPONENT_DIRS "$ENV{IDF_PATH}/tools/unit-test-app/components") +set(COMPONENTS main) include($ENV{IDF_PATH}/tools/cmake/project.cmake) project(app_update_test) diff --git a/components/esp-tls/test_apps/CMakeLists.txt b/components/esp-tls/test_apps/CMakeLists.txt index 086455137b..a7ae249d6e 100644 --- a/components/esp-tls/test_apps/CMakeLists.txt +++ b/components/esp-tls/test_apps/CMakeLists.txt @@ -2,6 +2,7 @@ cmake_minimum_required(VERSION 3.16) set(EXTRA_COMPONENT_DIRS "$ENV{IDF_PATH}/tools/unit-test-app/components") +set(COMPONENTS main) include($ENV{IDF_PATH}/tools/cmake/project.cmake) project(esp-tls_test) diff --git a/components/esp_http_client/test_apps/CMakeLists.txt b/components/esp_http_client/test_apps/CMakeLists.txt index e26a96a791..c1475171d7 100644 --- a/components/esp_http_client/test_apps/CMakeLists.txt +++ b/components/esp_http_client/test_apps/CMakeLists.txt @@ -2,6 +2,7 @@ cmake_minimum_required(VERSION 3.16) set(EXTRA_COMPONENT_DIRS "$ENV{IDF_PATH}/tools/unit-test-app/components") +set(COMPONENTS main) include($ENV{IDF_PATH}/tools/cmake/project.cmake) project(esp_http_client_test) diff --git a/components/esp_http_server/test_apps/CMakeLists.txt b/components/esp_http_server/test_apps/CMakeLists.txt index 3d62a12c41..ac7ac108f5 100644 --- a/components/esp_http_server/test_apps/CMakeLists.txt +++ b/components/esp_http_server/test_apps/CMakeLists.txt @@ -2,6 +2,7 @@ cmake_minimum_required(VERSION 3.16) set(EXTRA_COMPONENT_DIRS "$ENV{IDF_PATH}/tools/unit-test-app/components") +set(COMPONENTS main) include($ENV{IDF_PATH}/tools/cmake/project.cmake) project(esp_http_server_test) diff --git a/components/hal/test_apps/hal_i2c/CMakeLists.txt b/components/hal/test_apps/hal_i2c/CMakeLists.txt index d40fddfb9b..c646fa9119 100644 --- a/components/hal/test_apps/hal_i2c/CMakeLists.txt +++ b/components/hal/test_apps/hal_i2c/CMakeLists.txt @@ -2,5 +2,7 @@ # in this exact order for cmake to work correctly cmake_minimum_required(VERSION 3.16) +set(COMPONENTS main) + include($ENV{IDF_PATH}/tools/cmake/project.cmake) project(hal_i2c) diff --git a/components/hal/test_apps/hal_i2c/main/CMakeLists.txt b/components/hal/test_apps/hal_i2c/main/CMakeLists.txt index e99392033c..75d55d2e84 100644 --- a/components/hal/test_apps/hal_i2c/main/CMakeLists.txt +++ b/components/hal/test_apps/hal_i2c/main/CMakeLists.txt @@ -1,4 +1,5 @@ set(srcs "hal_i2c_main.c") idf_component_register(SRCS ${srcs} - INCLUDE_DIRS ".") + INCLUDE_DIRS "." + PRIV_REQUIRES hal_i2c) diff --git a/components/lwip/test_apps/CMakeLists.txt b/components/lwip/test_apps/CMakeLists.txt index 69a0d3445b..a6cce379eb 100644 --- a/components/lwip/test_apps/CMakeLists.txt +++ b/components/lwip/test_apps/CMakeLists.txt @@ -2,6 +2,7 @@ cmake_minimum_required(VERSION 3.16) set(EXTRA_COMPONENT_DIRS "$ENV{IDF_PATH}/tools/unit-test-app/components") +set(COMPONENTS main) include($ENV{IDF_PATH}/tools/cmake/project.cmake) project(lwip_test) diff --git a/components/protocomm/test_apps/CMakeLists.txt b/components/protocomm/test_apps/CMakeLists.txt index a5df5df3af..b0356c1b2d 100644 --- a/components/protocomm/test_apps/CMakeLists.txt +++ b/components/protocomm/test_apps/CMakeLists.txt @@ -2,6 +2,7 @@ cmake_minimum_required(VERSION 3.16) set(EXTRA_COMPONENT_DIRS "$ENV{IDF_PATH}/tools/unit-test-app/components") +set(COMPONENTS main) include($ENV{IDF_PATH}/tools/cmake/project.cmake) project(protocomm_test) diff --git a/components/tcp_transport/test_apps/CMakeLists.txt b/components/tcp_transport/test_apps/CMakeLists.txt index 7e4a88e3d0..cad519eb86 100644 --- a/components/tcp_transport/test_apps/CMakeLists.txt +++ b/components/tcp_transport/test_apps/CMakeLists.txt @@ -2,6 +2,7 @@ cmake_minimum_required(VERSION 3.16) set(EXTRA_COMPONENT_DIRS "$ENV{IDF_PATH}/tools/unit-test-app/components") +set(COMPONENTS main) include($ENV{IDF_PATH}/tools/cmake/project.cmake) project(esp_tcp_transport_test) diff --git a/components/tcp_transport/test_apps/main/CMakeLists.txt b/components/tcp_transport/test_apps/main/CMakeLists.txt index bc36d6b03d..9c9c85da0e 100644 --- a/components/tcp_transport/test_apps/main/CMakeLists.txt +++ b/components/tcp_transport/test_apps/main/CMakeLists.txt @@ -1,5 +1,5 @@ set(srcs "test_app_main.c" "test_transport_basic.c" "test_transport_connect" "test_transport_fixtures.c") idf_component_register(SRCS ${srcs} PRIV_INCLUDE_DIRS "../../private_include" "." - PRIV_REQUIRES cmock test_utils tcp_transport unity + PRIV_REQUIRES cmock test_utils tcp_transport unity esp_psram WHOLE_ARCHIVE) diff --git a/components/tcp_transport/test_apps/sdkconfig.ci.psram_esp32 b/components/tcp_transport/test_apps/sdkconfig.ci.psram_esp32 index 366c10c2ce..6a20d2b531 100644 --- a/components/tcp_transport/test_apps/sdkconfig.ci.psram_esp32 +++ b/components/tcp_transport/test_apps/sdkconfig.ci.psram_esp32 @@ -3,8 +3,6 @@ CONFIG_UNITY_ENABLE_FIXTURE=y CONFIG_SPIRAM=y CONFIG_ESP_INT_WDT_TIMEOUT_MS=800 CONFIG_SPIRAM_OCCUPY_NO_HOST=y -CONFIG_ESP_WIFI_RX_IRAM_OPT=n -CONFIG_ESP_WIFI_IRAM_OPT=n # Disable encrypted flash reads/writes to save IRAM in this build configuration CONFIG_SPI_FLASH_ENABLE_ENCRYPTED_READ_WRITE=n CONFIG_SPIRAM_ALLOW_NOINIT_SEG_EXTERNAL_MEMORY=y diff --git a/components/touch_element/test_apps/CMakeLists.txt b/components/touch_element/test_apps/CMakeLists.txt index d31bc59565..f68329df02 100644 --- a/components/touch_element/test_apps/CMakeLists.txt +++ b/components/touch_element/test_apps/CMakeLists.txt @@ -1,5 +1,7 @@ # This is the project CMakeLists.txt file for the test subproject cmake_minimum_required(VERSION 3.16) +set(COMPONENTS main) + include($ENV{IDF_PATH}/tools/cmake/project.cmake) project(touch_element_test) diff --git a/components/touch_element/test_apps/main/CMakeLists.txt b/components/touch_element/test_apps/main/CMakeLists.txt index ebf7e88d23..813e3e60b4 100644 --- a/components/touch_element/test_apps/main/CMakeLists.txt +++ b/components/touch_element/test_apps/main/CMakeLists.txt @@ -1,4 +1,5 @@ idf_component_register(SRCS "test_app_main.c" "test_touch_element.c" "test_touch_button.c" "test_touch_slider.c" "test_touch_matrix.c" + PRIV_REQUIRES unity touch_element WHOLE_ARCHIVE )