Kaynağa Gözat

test: declare requirements and include dirs private

Renz Bagaporo 6 yıl önce
ebeveyn
işleme
3d0967a58a
41 değiştirilmiş dosya ile 74 ekleme ve 74 silme
  1. 2 2
      components/app_trace/test/CMakeLists.txt
  2. 2 2
      components/app_update/test/CMakeLists.txt
  3. 2 2
      components/bootloader_support/test/CMakeLists.txt
  4. 2 2
      components/bt/test/CMakeLists.txt
  5. 1 1
      components/console/test/CMakeLists.txt
  6. 2 2
      components/cxx/test/CMakeLists.txt
  7. 2 2
      components/driver/test/CMakeLists.txt
  8. 2 2
      components/efuse/test/CMakeLists.txt
  9. 2 2
      components/esp32/test/CMakeLists.txt
  10. 2 2
      components/esp32s2/test/CMakeLists.txt
  11. 1 1
      components/esp_common/test/CMakeLists.txt
  12. 1 1
      components/esp_eth/test/CMakeLists.txt
  13. 2 2
      components/esp_http_client/test/CMakeLists.txt
  14. 2 2
      components/esp_http_server/test/CMakeLists.txt
  15. 1 1
      components/esp_netif/test/CMakeLists.txt
  16. 2 2
      components/esp_ringbuf/test/CMakeLists.txt
  17. 1 1
      components/esp_timer/test/CMakeLists.txt
  18. 2 2
      components/esp_wifi/test/CMakeLists.txt
  19. 2 2
      components/espcoredump/test/CMakeLists.txt
  20. 2 2
      components/expat/test/CMakeLists.txt
  21. 2 2
      components/fatfs/test/CMakeLists.txt
  22. 2 2
      components/freertos/test/CMakeLists.txt
  23. 2 2
      components/heap/test/CMakeLists.txt
  24. 2 2
      components/libsodium/test/CMakeLists.txt
  25. 2 2
      components/mbedtls/test/CMakeLists.txt
  26. 2 2
      components/newlib/test/CMakeLists.txt
  27. 2 2
      components/nvs_flash/test/CMakeLists.txt
  28. 2 2
      components/partition_table/test/CMakeLists.txt
  29. 1 1
      components/perfmon/test/CMakeLists.txt
  30. 2 2
      components/protocomm/test/CMakeLists.txt
  31. 2 2
      components/pthread/test/CMakeLists.txt
  32. 2 2
      components/sdmmc/test/CMakeLists.txt
  33. 2 2
      components/soc/test/CMakeLists.txt
  34. 2 2
      components/spi_flash/test/CMakeLists.txt
  35. 2 2
      components/spiffs/test/CMakeLists.txt
  36. 1 1
      components/tcp_transport/test/CMakeLists.txt
  37. 2 2
      components/ulp/test/CMakeLists.txt
  38. 2 2
      components/vfs/test/CMakeLists.txt
  39. 2 2
      components/wear_levelling/test/CMakeLists.txt
  40. 2 2
      components/wpa_supplicant/test/CMakeLists.txt
  41. 1 1
      tools/unit-test-app/components/test_utils/test/CMakeLists.txt

+ 2 - 2
components/app_trace/test/CMakeLists.txt

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

+ 2 - 2
components/app_update/test/CMakeLists.txt

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

+ 2 - 2
components/bootloader_support/test/CMakeLists.txt

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

+ 2 - 2
components/bt/test/CMakeLists.txt

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

+ 1 - 1
components/console/test/CMakeLists.txt

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

+ 2 - 2
components/cxx/test/CMakeLists.txt

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

+ 2 - 2
components/driver/test/CMakeLists.txt

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

+ 2 - 2
components/efuse/test/CMakeLists.txt

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

+ 2 - 2
components/esp32/test/CMakeLists.txt

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

+ 2 - 2
components/esp32s2/test/CMakeLists.txt

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

+ 1 - 1
components/esp_common/test/CMakeLists.txt

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

+ 1 - 1
components/esp_eth/test/CMakeLists.txt

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

+ 2 - 2
components/esp_http_client/test/CMakeLists.txt

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

+ 2 - 2
components/esp_http_server/test/CMakeLists.txt

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

+ 1 - 1
components/esp_netif/test/CMakeLists.txt

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

+ 2 - 2
components/esp_ringbuf/test/CMakeLists.txt

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

+ 1 - 1
components/esp_timer/test/CMakeLists.txt

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

+ 2 - 2
components/esp_wifi/test/CMakeLists.txt

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

+ 2 - 2
components/espcoredump/test/CMakeLists.txt

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

+ 2 - 2
components/expat/test/CMakeLists.txt

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

+ 2 - 2
components/fatfs/test/CMakeLists.txt

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

+ 2 - 2
components/freertos/test/CMakeLists.txt

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

+ 2 - 2
components/heap/test/CMakeLists.txt

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

+ 2 - 2
components/libsodium/test/CMakeLists.txt

@@ -11,8 +11,8 @@ else()
     endforeach()
 
     idf_component_register(SRCS "${TEST_CASES_FILES}" "test_sodium.c"
-                        INCLUDE_DIRS "." "${LS_TESTDIR}/../quirks"
-                        REQUIRES unity libsodium)
+                        PRIV_INCLUDE_DIRS "." "${LS_TESTDIR}/../quirks"
+                        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
     # filesytem to write & then compare contents of each file.

+ 2 - 2
components/mbedtls/test/CMakeLists.txt

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

+ 2 - 2
components/newlib/test/CMakeLists.txt

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

+ 2 - 2
components/nvs_flash/test/CMakeLists.txt

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

+ 2 - 2
components/partition_table/test/CMakeLists.txt

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

+ 1 - 1
components/perfmon/test/CMakeLists.txt

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

+ 2 - 2
components/protocomm/test/CMakeLists.txt

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

+ 2 - 2
components/pthread/test/CMakeLists.txt

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

+ 2 - 2
components/sdmmc/test/CMakeLists.txt

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

+ 2 - 2
components/soc/test/CMakeLists.txt

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

+ 2 - 2
components/spi_flash/test/CMakeLists.txt

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

+ 2 - 2
components/spiffs/test/CMakeLists.txt

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

+ 1 - 1
components/tcp_transport/test/CMakeLists.txt

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

+ 2 - 2
components/ulp/test/CMakeLists.txt

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

+ 2 - 2
components/vfs/test/CMakeLists.txt

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

+ 2 - 2
components/wear_levelling/test/CMakeLists.txt

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

+ 2 - 2
components/wpa_supplicant/test/CMakeLists.txt

@@ -1,7 +1,7 @@
 idf_component_register(SRC_DIRS "."
-                    INCLUDE_DIRS "." "${CMAKE_CURRENT_BINARY_DIR}"
+                    PRIV_INCLUDE_DIRS "." "${CMAKE_CURRENT_BINARY_DIR}"
                     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)
 

+ 1 - 1
tools/unit-test-app/components/test_utils/test/CMakeLists.txt

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