test: declare requirements and include dirs private

This commit is contained in:
Renz Bagaporo
2020-03-22 18:30:24 +08:00
parent 4d9c573fb6
commit 3d0967a58a
41 changed files with 74 additions and 74 deletions

View File

@@ -1,3 +1,3 @@
idf_component_register(SRC_DIRS "." idf_component_register(SRC_DIRS "."
INCLUDE_DIRS "." PRIV_INCLUDE_DIRS "."
REQUIRES unity) PRIV_REQUIRES unity)

View File

@@ -1,4 +1,4 @@
idf_component_register(SRC_DIRS "." idf_component_register(SRC_DIRS "."
INCLUDE_DIRS "." PRIV_INCLUDE_DIRS "."
REQUIRES unity test_utils app_update bootloader_support nvs_flash PRIV_REQUIRES unity test_utils app_update bootloader_support nvs_flash
) )

View File

@@ -1,3 +1,3 @@
idf_component_register(SRC_DIRS "." idf_component_register(SRC_DIRS "."
INCLUDE_DIRS "." PRIV_INCLUDE_DIRS "."
REQUIRES unity bootloader_support app_update) PRIV_REQUIRES unity bootloader_support app_update)

View File

@@ -1,5 +1,5 @@
if(CONFIG_BT_ENABLED OR CMAKE_BUILD_EARLY_EXPANSION) if(CONFIG_BT_ENABLED OR CMAKE_BUILD_EARLY_EXPANSION)
idf_component_register(SRC_DIRS "." idf_component_register(SRC_DIRS "."
INCLUDE_DIRS "." PRIV_INCLUDE_DIRS "."
REQUIRES unity nvs_flash bt) PRIV_REQUIRES unity nvs_flash bt)
endif() endif()

View File

@@ -1,3 +1,3 @@
idf_component_register(SRC_DIRS . idf_component_register(SRC_DIRS .
INCLUDE_DIRS . PRIV_INCLUDE_DIRS .
PRIV_REQUIRES unity test_utils console) PRIV_REQUIRES unity test_utils console)

View File

@@ -1,3 +1,3 @@
idf_component_register(SRC_DIRS "." idf_component_register(SRC_DIRS "."
INCLUDE_DIRS "." PRIV_INCLUDE_DIRS "."
REQUIRES unity) PRIV_REQUIRES unity)

View File

@@ -1,3 +1,3 @@
idf_component_register(SRC_DIRS . param_test idf_component_register(SRC_DIRS . param_test
INCLUDE_DIRS include param_test/include PRIV_INCLUDE_DIRS include param_test/include
REQUIRES unity test_utils driver nvs_flash esp_serial_slave_link infrared_tools) PRIV_REQUIRES unity test_utils driver nvs_flash esp_serial_slave_link infrared_tools)

View File

@@ -1,5 +1,5 @@
idf_component_register(SRC_DIRS "." idf_component_register(SRC_DIRS "."
INCLUDE_DIRS "." "include" PRIV_INCLUDE_DIRS "." "include"
PRIV_INCLUDE_DIRS "../private_include" PRIV_INCLUDE_DIRS "../private_include"
REQUIRES unity test_utils efuse bootloader_support PRIV_REQUIRES unity test_utils efuse bootloader_support
) )

View File

@@ -1,7 +1,7 @@
if(IDF_TARGET STREQUAL "esp32") if(IDF_TARGET STREQUAL "esp32")
idf_component_register(SRC_DIRS . idf_component_register(SRC_DIRS .
INCLUDE_DIRS . ${CMAKE_CURRENT_BINARY_DIR} PRIV_INCLUDE_DIRS . ${CMAKE_CURRENT_BINARY_DIR}
REQUIRES unity test_utils nvs_flash ulp esp_common PRIV_REQUIRES unity test_utils nvs_flash ulp esp_common
) )
add_custom_command(OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/test_tjpgd_logo.h" add_custom_command(OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/test_tjpgd_logo.h"

View File

@@ -1,7 +1,7 @@
if(IDF_TARGET STREQUAL "esp32s2") if(IDF_TARGET STREQUAL "esp32s2")
idf_component_register(SRC_DIRS . idf_component_register(SRC_DIRS .
INCLUDE_DIRS . ${CMAKE_CURRENT_BINARY_DIR} PRIV_INCLUDE_DIRS . ${CMAKE_CURRENT_BINARY_DIR}
REQUIRES unity test_utils nvs_flash ulp esp_common PRIV_REQUIRES unity test_utils nvs_flash ulp esp_common
) )
add_custom_command(OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/test_tjpgd_logo.h" add_custom_command(OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/test_tjpgd_logo.h"

View File

@@ -1,3 +1,3 @@
idf_component_register(SRC_DIRS . idf_component_register(SRC_DIRS .
REQUIRES unity spi_flash PRIV_REQUIRES unity spi_flash
) )

View File

@@ -1,4 +1,4 @@
idf_component_register(SRC_DIRS . idf_component_register(SRC_DIRS .
INCLUDE_DIRS . PRIV_INCLUDE_DIRS .
PRIV_REQUIRES unity test_utils esp_eth esp_http_client PRIV_REQUIRES unity test_utils esp_eth esp_http_client
) )

View File

@@ -1,3 +1,3 @@
idf_component_register(SRC_DIRS "." idf_component_register(SRC_DIRS "."
INCLUDE_DIRS "." PRIV_INCLUDE_DIRS "."
REQUIRES unity test_utils esp_http_client) PRIV_REQUIRES unity test_utils esp_http_client)

View File

@@ -1,3 +1,3 @@
idf_component_register(SRC_DIRS "." idf_component_register(SRC_DIRS "."
INCLUDE_DIRS "." PRIV_INCLUDE_DIRS "."
REQUIRES unity test_utils esp_http_server) PRIV_REQUIRES unity test_utils esp_http_server)

View File

@@ -1,3 +1,3 @@
idf_component_register(SRC_DIRS "." idf_component_register(SRC_DIRS "."
INCLUDE_DIRS "../private_include" "." PRIV_INCLUDE_DIRS "../private_include" "."
PRIV_REQUIRES unity test_utils esp_netif nvs_flash) PRIV_REQUIRES unity test_utils esp_netif nvs_flash)

View File

@@ -1,3 +1,3 @@
idf_component_register(SRC_DIRS "." idf_component_register(SRC_DIRS "."
INCLUDE_DIRS "." PRIV_INCLUDE_DIRS "."
REQUIRES unity test_utils) PRIV_REQUIRES unity test_utils)

View File

@@ -1,6 +1,6 @@
idf_component_register(SRC_DIRS "." idf_component_register(SRC_DIRS "."
PRIV_INCLUDE_DIRS "../private_include" PRIV_INCLUDE_DIRS "../private_include"
REQUIRES unity test_utils) PRIV_REQUIRES unity test_utils)
if(CONFIG_ESP_TIMER_IMPL_FRC2) if(CONFIG_ESP_TIMER_IMPL_FRC2)
idf_build_set_property(COMPILE_DEFINITIONS "-DESP_TIMER_DYNAMIC_OVERFLOW_VAL" APPEND) idf_build_set_property(COMPILE_DEFINITIONS "-DESP_TIMER_DYNAMIC_OVERFLOW_VAL" APPEND)

View File

@@ -1,4 +1,4 @@
idf_component_register(SRC_DIRS . idf_component_register(SRC_DIRS .
INCLUDE_DIRS . ${CMAKE_CURRENT_BINARY_DIR} PRIV_INCLUDE_DIRS . ${CMAKE_CURRENT_BINARY_DIR}
REQUIRES unity test_utils nvs_flash ulp esp_common PRIV_REQUIRES unity test_utils nvs_flash ulp esp_common
) )

View File

@@ -2,6 +2,6 @@ if(TESTS_ALL EQUAL 1)
message("not linking coredump test from CI.") message("not linking coredump test from CI.")
else() else()
idf_component_register(SRC_DIRS "." idf_component_register(SRC_DIRS "."
INCLUDE_DIRS "." PRIV_INCLUDE_DIRS "."
REQUIRES unity nvs_flash) PRIV_REQUIRES unity nvs_flash)
endif() endif()

View File

@@ -1,3 +1,3 @@
idf_component_register(SRC_DIRS "." idf_component_register(SRC_DIRS "."
INCLUDE_DIRS "." PRIV_INCLUDE_DIRS "."
REQUIRES unity expat) PRIV_REQUIRES unity expat)

View File

@@ -1,5 +1,5 @@
idf_component_register(SRC_DIRS . idf_component_register(SRC_DIRS .
INCLUDE_DIRS . PRIV_INCLUDE_DIRS .
REQUIRES unity test_utils vfs fatfs PRIV_REQUIRES unity test_utils vfs fatfs
EMBED_TXTFILES fatfs.img EMBED_TXTFILES fatfs.img
) )

View File

@@ -1,4 +1,4 @@
idf_component_register(SRC_DIRS . idf_component_register(SRC_DIRS .
INCLUDE_DIRS . PRIV_INCLUDE_DIRS .
REQUIRES unity test_utils PRIV_REQUIRES unity test_utils
) )

View File

@@ -1,3 +1,3 @@
idf_component_register(SRC_DIRS "." idf_component_register(SRC_DIRS "."
INCLUDE_DIRS "." PRIV_INCLUDE_DIRS "."
REQUIRES unity test_utils heap) PRIV_REQUIRES unity test_utils heap)

View File

@@ -11,8 +11,8 @@ else()
endforeach() endforeach()
idf_component_register(SRCS "${TEST_CASES_FILES}" "test_sodium.c" idf_component_register(SRCS "${TEST_CASES_FILES}" "test_sodium.c"
INCLUDE_DIRS "." "${LS_TESTDIR}/../quirks" PRIV_INCLUDE_DIRS "." "${LS_TESTDIR}/../quirks"
REQUIRES unity libsodium) PRIV_REQUIRES unity libsodium)
# The libsodium test suite is designed to be run each test case as an executable on a desktop computer and uses # The libsodium test suite is designed to be run each test case as an executable on a desktop computer and uses
# filesytem to write & then compare contents of each file. # filesytem to write & then compare contents of each file.

View File

@@ -1,6 +1,6 @@
idf_component_register(SRC_DIRS "." idf_component_register(SRC_DIRS "."
INCLUDE_DIRS "." PRIV_INCLUDE_DIRS "."
REQUIRES unity test_utils mbedtls libsodium PRIV_REQUIRES unity test_utils mbedtls libsodium
EMBED_TXTFILES server_cert_chain.pem prvtkey.pem server_cert_bundle) EMBED_TXTFILES server_cert_chain.pem prvtkey.pem server_cert_bundle)

View File

@@ -1,3 +1,3 @@
idf_component_register(SRC_DIRS "." idf_component_register(SRC_DIRS "."
INCLUDE_DIRS "." PRIV_INCLUDE_DIRS "."
REQUIRES unity test_utils) PRIV_REQUIRES unity test_utils)

View File

@@ -1,3 +1,3 @@
idf_component_register(SRC_DIRS "." idf_component_register(SRC_DIRS "."
INCLUDE_DIRS "." PRIV_INCLUDE_DIRS "."
REQUIRES unity test_utils nvs_flash bootloader_support) PRIV_REQUIRES unity test_utils nvs_flash bootloader_support)

View File

@@ -1,3 +1,3 @@
idf_component_register(SRC_DIRS "." idf_component_register(SRC_DIRS "."
INCLUDE_DIRS "." PRIV_INCLUDE_DIRS "."
REQUIRES unity test_utils) PRIV_REQUIRES unity test_utils)

View File

@@ -1,3 +1,3 @@
idf_component_register(SRC_DIRS "." idf_component_register(SRC_DIRS "."
INCLUDE_DIRS "." PRIV_INCLUDE_DIRS "."
PRIV_REQUIRES unity xtensa perfmon) PRIV_REQUIRES unity xtensa perfmon)

View File

@@ -1,4 +1,4 @@
idf_component_register(SRC_DIRS "." idf_component_register(SRC_DIRS "."
INCLUDE_DIRS "." PRIV_INCLUDE_DIRS "."
PRIV_INCLUDE_DIRS "../proto-c/" PRIV_INCLUDE_DIRS "../proto-c/"
REQUIRES unity mbedtls protocomm protobuf-c) PRIV_REQUIRES unity mbedtls protocomm protobuf-c)

View File

@@ -1,3 +1,3 @@
idf_component_register(SRC_DIRS "." idf_component_register(SRC_DIRS "."
INCLUDE_DIRS "." PRIV_INCLUDE_DIRS "."
REQUIRES unity test_utils pthread) PRIV_REQUIRES unity test_utils pthread)

View File

@@ -1,4 +1,4 @@
idf_component_register(SRC_DIRS "." idf_component_register(SRC_DIRS "."
INCLUDE_DIRS "." PRIV_INCLUDE_DIRS "."
REQUIRES unity sdmmc PRIV_REQUIRES unity sdmmc
) )

View File

@@ -1,5 +1,5 @@
idf_build_get_property(soc_name IDF_TARGET) idf_build_get_property(soc_name IDF_TARGET)
idf_component_register(SRC_DIRS "." idf_component_register(SRC_DIRS "."
INCLUDE_DIRS "${include_dirs}" PRIV_INCLUDE_DIRS "${include_dirs}"
REQUIRES unity test_utils) PRIV_REQUIRES unity test_utils)

View File

@@ -4,6 +4,6 @@ endif()
idf_component_register(SRC_DIRS "." idf_component_register(SRC_DIRS "."
EXCLUDE_SRCS "${exclude_srcs}" EXCLUDE_SRCS "${exclude_srcs}"
INCLUDE_DIRS "." PRIV_INCLUDE_DIRS "."
REQUIRES unity test_utils spi_flash bootloader_support app_update) PRIV_REQUIRES unity test_utils spi_flash bootloader_support app_update)

View File

@@ -1,3 +1,3 @@
idf_component_register(SRC_DIRS "." idf_component_register(SRC_DIRS "."
INCLUDE_DIRS "." PRIV_INCLUDE_DIRS "."
REQUIRES unity test_utils spiffs) PRIV_REQUIRES unity test_utils spiffs)

View File

@@ -1,3 +1,3 @@
idf_component_register(SRC_DIRS "." idf_component_register(SRC_DIRS "."
INCLUDE_DIRS "../private_include" "." PRIV_INCLUDE_DIRS "../private_include" "."
PRIV_REQUIRES unity test_utils tcp_transport) PRIV_REQUIRES unity test_utils tcp_transport)

View File

@@ -1,7 +1,7 @@
if(IDF_TARGET STREQUAL "esp32") if(IDF_TARGET STREQUAL "esp32")
idf_component_register(SRC_DIRS esp32 idf_component_register(SRC_DIRS esp32
INCLUDE_DIRS . PRIV_INCLUDE_DIRS .
REQUIRES unity ulp soc esp_common) PRIV_REQUIRES unity ulp soc esp_common)
set(ulp_app_name ulp_test_app) set(ulp_app_name ulp_test_app)
set(ulp_s_sources "ulp/test_jumps_esp32.S") set(ulp_s_sources "ulp/test_jumps_esp32.S")

View File

@@ -1,3 +1,3 @@
idf_component_register(SRC_DIRS "." idf_component_register(SRC_DIRS "."
INCLUDE_DIRS . PRIV_INCLUDE_DIRS .
REQUIRES unity test_utils vfs fatfs spiffs) PRIV_REQUIRES unity test_utils vfs fatfs spiffs)

View File

@@ -1,5 +1,5 @@
idf_component_register(SRC_DIRS . idf_component_register(SRC_DIRS .
INCLUDE_DIRS . PRIV_INCLUDE_DIRS .
REQUIRES unity test_utils wear_levelling PRIV_REQUIRES unity test_utils wear_levelling
EMBED_FILES test_partition_v1.bin EMBED_FILES test_partition_v1.bin
) )

View File

@@ -1,7 +1,7 @@
idf_component_register(SRC_DIRS "." idf_component_register(SRC_DIRS "."
INCLUDE_DIRS "." "${CMAKE_CURRENT_BINARY_DIR}" PRIV_INCLUDE_DIRS "." "${CMAKE_CURRENT_BINARY_DIR}"
PRIV_INCLUDE_DIRS "../src" PRIV_INCLUDE_DIRS "../src"
REQUIRES unity esp_common test_utils wpa_supplicant mbedtls) PRIV_REQUIRES unity esp_common test_utils wpa_supplicant mbedtls)
idf_component_get_property(esp_supplicant_dir wpa_supplicant COMPONENT_DIR) idf_component_get_property(esp_supplicant_dir wpa_supplicant COMPONENT_DIR)

View File

@@ -1,3 +1,3 @@
idf_component_register(SRC_DIRS "." idf_component_register(SRC_DIRS "."
PRIV_INCLUDE_DIRS "." PRIV_INCLUDE_DIRS "."
REQUIRES unity test_utils perfmon) PRIV_REQUIRES unity test_utils perfmon)