Merge branch 'ci/trim_test_apps' into 'master'

core-system: limit build components for core-system test apps

Closes IDF-7092

See merge request espressif/esp-idf!24167
pull/11692/head
Marius Vikhammer 2023-06-13 15:31:00 +08:00
commit 86c5b437b5
17 zmienionych plików z 43 dodań i 6 usunięć

Wyświetl plik

@ -2,4 +2,8 @@
cmake_minimum_required(VERSION 3.16)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
#"Trim" the build. Include the minimal set of components, main, and anything it depends on.
set(COMPONENTS main)
project(esp_rom_test)

Wyświetl plik

@ -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
WHOLE_ARCHIVE)

Wyświetl plik

@ -2,4 +2,8 @@
cmake_minimum_required(VERSION 3.16)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
#"Trim" the build. Include the minimal set of components, main, and anything it depends on.
set(COMPONENTS main)
project(rtc_8md256)

Wyświetl plik

@ -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)

Wyświetl plik

@ -2,4 +2,8 @@
cmake_minimum_required(VERSION 3.5)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
#"Trim" the build. Include the minimal set of components, main, and anything it depends on.
set(COMPONENTS main)
project(rtc_power_modes)

Wyświetl plik

@ -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)

Wyświetl plik

@ -15,10 +15,7 @@ list(APPEND EXTRA_COMPONENT_DIRS
"$ENV{IDF_PATH}/tools/unit-test-app/components") # For test_utils component
#"Trim" the build. Include the minimal set of components, main, and anything it depends on.
# Note: This is commented out for now due to pthread depending on vPortCleanUpTCB provided by "test_freertos_hooks.c".
# pthread is no used in FreeRTOS unit tests, but is pulled in by esp_system due to another dependency.
# Todo: Resolve this by either moving the "test_freertos_hooks.c" out, or solving the component dependencies.
#set(COMPONENTS main)
set(COMPONENTS main esp_psram ${test_types})
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(freertos_test)

Wyświetl plik

@ -1,5 +1,5 @@
CONFIG_ESP_MAIN_TASK_STACK_SIZE=8192
CONFIG_ESP_TASK_WDT=n
CONFIG_ESP_TASK_WDT_INIT=n
CONFIG_FREERTOS_HZ=1000
CONFIG_FREERTOS_THREAD_LOCAL_STORAGE_POINTERS=3
CONFIG_FREERTOS_QUEUE_REGISTRY_SIZE=7

Wyświetl plik

@ -3,4 +3,8 @@
cmake_minimum_required(VERSION 3.16)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
#"Trim" the build. Include the minimal set of components, main, and anything it depends on.
set(COMPONENTS main)
project(test_freertos_orig_inc_path)

Wyświetl plik

@ -3,6 +3,10 @@
cmake_minimum_required(VERSION 3.16)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
#"Trim" the build. Include the minimal set of components, main, and anything it depends on.
set(COMPONENTS main)
project(test_heap)
if(CONFIG_COMPILER_DUMP_RTL_FILES)

Wyświetl plik

@ -11,4 +11,5 @@ set(src_test "test_heap_main.c"
idf_component_register(SRCS ${src_test}
INCLUDE_DIRS "."
REQUIRES unity esp_psram spi_flash
WHOLE_ARCHIVE)

Wyświetl plik

@ -3,5 +3,8 @@ 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(mbedtls_test)

Wyświetl plik

@ -7,7 +7,7 @@ set(TEST_CRTS "crts/server_cert_chain.pem"
idf_component_register(SRC_DIRS "."
PRIV_INCLUDE_DIRS "."
PRIV_REQUIRES cmock test_utils mbedtls esp_timer unity spi_flash
PRIV_REQUIRES cmock test_utils mbedtls esp_timer unity spi_flash esp_psram
EMBED_TXTFILES ${TEST_CRTS}
WHOLE_ARCHIVE)

Wyświetl plik

@ -3,4 +3,8 @@
cmake_minimum_required(VERSION 3.16)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
#"Trim" the build. Include the minimal set of components, main, and anything it depends on.
set(COMPONENTS main)
project(file_embed_test)

Wyświetl plik

@ -3,6 +3,10 @@
cmake_minimum_required(VERSION 3.16)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
#"Trim" the build. Include the minimal set of components, main, and anything it depends on.
set(COMPONENTS main)
project(ldalign_test)
idf_build_get_property(python PYTHON)

Wyświetl plik

@ -3,6 +3,10 @@
cmake_minimum_required(VERSION 3.16)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
#"Trim" the build. Include the minimal set of components, main, and anything it depends on.
set(COMPONENTS main)
project(ldgen_test)
idf_build_get_property(python PYTHON)

Wyświetl plik

@ -3,4 +3,5 @@
cmake_minimum_required(VERSION 3.16)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(test_build)