diff --git a/tests/bluetooth/audio/ascs/CMakeLists.txt b/tests/bluetooth/audio/ascs/CMakeLists.txt index 96d0d3382e1..5fb4df5f683 100644 --- a/tests/bluetooth/audio/ascs/CMakeLists.txt +++ b/tests/bluetooth/audio/ascs/CMakeLists.txt @@ -2,9 +2,10 @@ cmake_minimum_required(VERSION 3.20.0) -project(bluetooth_ascs) find_package(Zephyr COMPONENTS unittest HINTS $ENV{ZEPHYR_BASE}) +project(bluetooth_ascs) + add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/audio/ascs/uut uut) target_link_libraries(testbinary PRIVATE uut) diff --git a/tests/bluetooth/audio/bap_base/CMakeLists.txt b/tests/bluetooth/audio/bap_base/CMakeLists.txt index 040cf14cd28..b4f16d6cc35 100644 --- a/tests/bluetooth/audio/bap_base/CMakeLists.txt +++ b/tests/bluetooth/audio/bap_base/CMakeLists.txt @@ -2,9 +2,10 @@ cmake_minimum_required(VERSION 3.20.0) -project(bluetooth_codec) find_package(Zephyr COMPONENTS unittest HINTS $ENV{ZEPHYR_BASE}) +project(bluetooth_codec) + add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/audio/bap_base/uut uut) target_link_libraries(testbinary PRIVATE uut) diff --git a/tests/bluetooth/audio/bap_broadcast_source/CMakeLists.txt b/tests/bluetooth/audio/bap_broadcast_source/CMakeLists.txt index 46976424220..ef097b64e7a 100644 --- a/tests/bluetooth/audio/bap_broadcast_source/CMakeLists.txt +++ b/tests/bluetooth/audio/bap_broadcast_source/CMakeLists.txt @@ -2,9 +2,10 @@ cmake_minimum_required(VERSION 3.20.0) -project(bluetooth_ascs) find_package(Zephyr COMPONENTS unittest HINTS $ENV{ZEPHYR_BASE}) +project(bluetooth_ascs) + add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/audio/bap_broadcast_source/uut uut) target_link_libraries(testbinary PRIVATE uut) diff --git a/tests/bluetooth/audio/cap_commander/CMakeLists.txt b/tests/bluetooth/audio/cap_commander/CMakeLists.txt index a947f47b8ea..1823159a7bf 100644 --- a/tests/bluetooth/audio/cap_commander/CMakeLists.txt +++ b/tests/bluetooth/audio/cap_commander/CMakeLists.txt @@ -2,9 +2,10 @@ cmake_minimum_required(VERSION 3.20.0) -project(bluetooth_ascs) find_package(Zephyr COMPONENTS unittest HINTS $ENV{ZEPHYR_BASE}) +project(bluetooth_ascs) + add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/audio/cap_commander/uut uut) target_link_libraries(testbinary PRIVATE uut) diff --git a/tests/bluetooth/audio/cap_initiator/CMakeLists.txt b/tests/bluetooth/audio/cap_initiator/CMakeLists.txt index 7e3f68e454e..f1683d6035f 100644 --- a/tests/bluetooth/audio/cap_initiator/CMakeLists.txt +++ b/tests/bluetooth/audio/cap_initiator/CMakeLists.txt @@ -2,9 +2,10 @@ cmake_minimum_required(VERSION 3.20.0) -project(bluetooth_ascs) find_package(Zephyr COMPONENTS unittest HINTS $ENV{ZEPHYR_BASE}) +project(bluetooth_ascs) + add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/audio/cap_initiator/uut uut) target_link_libraries(testbinary PRIVATE uut) diff --git a/tests/bluetooth/audio/codec/CMakeLists.txt b/tests/bluetooth/audio/codec/CMakeLists.txt index 2b874fbd086..eeaf3a264ea 100644 --- a/tests/bluetooth/audio/codec/CMakeLists.txt +++ b/tests/bluetooth/audio/codec/CMakeLists.txt @@ -2,9 +2,10 @@ cmake_minimum_required(VERSION 3.20.0) -project(bluetooth_codec) find_package(Zephyr COMPONENTS unittest HINTS $ENV{ZEPHYR_BASE}) +project(bluetooth_codec) + add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/audio/codec/uut uut) target_link_libraries(testbinary PRIVATE uut) diff --git a/tests/bluetooth/controller/ctrl_api/CMakeLists.txt b/tests/bluetooth/controller/ctrl_api/CMakeLists.txt index 7961cc031c5..f33374d9e1d 100644 --- a/tests/bluetooth/controller/ctrl_api/CMakeLists.txt +++ b/tests/bluetooth/controller/ctrl_api/CMakeLists.txt @@ -2,9 +2,10 @@ cmake_minimum_required(VERSION 3.20.0) -project(bluetooth_ull_llcp_api) find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE}) +project(bluetooth_ull_llcp_api) + add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/controller/common common) add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/controller/uut uut) diff --git a/tests/bluetooth/controller/ctrl_chmu/CMakeLists.txt b/tests/bluetooth/controller/ctrl_chmu/CMakeLists.txt index bb39f58248e..99058844d05 100644 --- a/tests/bluetooth/controller/ctrl_chmu/CMakeLists.txt +++ b/tests/bluetooth/controller/ctrl_chmu/CMakeLists.txt @@ -2,9 +2,10 @@ cmake_minimum_required(VERSION 3.20.0) -project(bluetooth_ull_llcp_chmu) find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE}) +project(bluetooth_ull_llcp_chmu) + add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/controller/common common) add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/controller/uut uut) diff --git a/tests/bluetooth/controller/ctrl_cis_create/CMakeLists.txt b/tests/bluetooth/controller/ctrl_cis_create/CMakeLists.txt index 07032598c07..d19c750cb49 100644 --- a/tests/bluetooth/controller/ctrl_cis_create/CMakeLists.txt +++ b/tests/bluetooth/controller/ctrl_cis_create/CMakeLists.txt @@ -2,9 +2,10 @@ cmake_minimum_required(VERSION 3.20.0) -project(bluetooth_ull_llcp_cis_create) find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE}) +project(bluetooth_ull_llcp_cis_create) + add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/controller/common common) add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/controller/uut uut) diff --git a/tests/bluetooth/controller/ctrl_cis_terminate/CMakeLists.txt b/tests/bluetooth/controller/ctrl_cis_terminate/CMakeLists.txt index 612064e1098..674df29cbcd 100644 --- a/tests/bluetooth/controller/ctrl_cis_terminate/CMakeLists.txt +++ b/tests/bluetooth/controller/ctrl_cis_terminate/CMakeLists.txt @@ -2,9 +2,10 @@ cmake_minimum_required(VERSION 3.20.0) -project(bluetooth_ull_llcp_cis_terminate) find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE}) +project(bluetooth_ull_llcp_cis_terminate) + add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/controller/common common) add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/controller/uut uut) diff --git a/tests/bluetooth/controller/ctrl_collision/CMakeLists.txt b/tests/bluetooth/controller/ctrl_collision/CMakeLists.txt index cc6680d6c22..97d99534bd4 100644 --- a/tests/bluetooth/controller/ctrl_collision/CMakeLists.txt +++ b/tests/bluetooth/controller/ctrl_collision/CMakeLists.txt @@ -2,9 +2,10 @@ cmake_minimum_required(VERSION 3.20.0) -project(bluetooth_ull_llcp_collision) find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE}) +project(bluetooth_ull_llcp_collision) + add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/controller/common common) add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/controller/uut uut) diff --git a/tests/bluetooth/controller/ctrl_conn_update/CMakeLists.txt b/tests/bluetooth/controller/ctrl_conn_update/CMakeLists.txt index bb72550b58f..76c4c011ffd 100644 --- a/tests/bluetooth/controller/ctrl_conn_update/CMakeLists.txt +++ b/tests/bluetooth/controller/ctrl_conn_update/CMakeLists.txt @@ -2,9 +2,10 @@ cmake_minimum_required(VERSION 3.20.0) -project(bluetooth_ull_llcp_conn_update) find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE}) +project(bluetooth_ull_llcp_conn_update) + add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/controller/common common) add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/controller/uut uut) diff --git a/tests/bluetooth/controller/ctrl_cte_req/CMakeLists.txt b/tests/bluetooth/controller/ctrl_cte_req/CMakeLists.txt index 5a92c256d72..8a511b5e3a8 100644 --- a/tests/bluetooth/controller/ctrl_cte_req/CMakeLists.txt +++ b/tests/bluetooth/controller/ctrl_cte_req/CMakeLists.txt @@ -2,9 +2,10 @@ cmake_minimum_required(VERSION 3.20.0) -project(bluetooth_ull_llcp_cte_req) find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE}) +project(bluetooth_ull_llcp_cte_req) + add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/controller/common common) add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/controller/uut uut) diff --git a/tests/bluetooth/controller/ctrl_data_length_update/CMakeLists.txt b/tests/bluetooth/controller/ctrl_data_length_update/CMakeLists.txt index 764c6a98a37..0f2feb47b6e 100644 --- a/tests/bluetooth/controller/ctrl_data_length_update/CMakeLists.txt +++ b/tests/bluetooth/controller/ctrl_data_length_update/CMakeLists.txt @@ -2,9 +2,10 @@ cmake_minimum_required(VERSION 3.20.0) -project(bluetooth_ull_llcp_data_length_update) find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE}) +project(bluetooth_ull_llcp_data_length_update) + add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/controller/common common) add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/controller/uut uut) diff --git a/tests/bluetooth/controller/ctrl_encrypt/CMakeLists.txt b/tests/bluetooth/controller/ctrl_encrypt/CMakeLists.txt index d5caebb529a..260677224f7 100644 --- a/tests/bluetooth/controller/ctrl_encrypt/CMakeLists.txt +++ b/tests/bluetooth/controller/ctrl_encrypt/CMakeLists.txt @@ -2,9 +2,10 @@ cmake_minimum_required(VERSION 3.20.0) -project(bluetooth_ull_llcp_encrypt) find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE}) +project(bluetooth_ull_llcp_encrypt) + add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/controller/common common) add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/controller/uut uut) diff --git a/tests/bluetooth/controller/ctrl_feature_exchange/CMakeLists.txt b/tests/bluetooth/controller/ctrl_feature_exchange/CMakeLists.txt index 8521a689e21..ef162b64f2f 100644 --- a/tests/bluetooth/controller/ctrl_feature_exchange/CMakeLists.txt +++ b/tests/bluetooth/controller/ctrl_feature_exchange/CMakeLists.txt @@ -5,9 +5,10 @@ cmake_minimum_required(VERSION 3.20.0) -project(bluetooth_ull_llcp_feature_exchange) find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE}) +project(bluetooth_ull_llcp_feature_exchange) + add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/controller/common common) add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/controller/uut uut) diff --git a/tests/bluetooth/controller/ctrl_hci/CMakeLists.txt b/tests/bluetooth/controller/ctrl_hci/CMakeLists.txt index 4a479e468ef..10206d418c0 100644 --- a/tests/bluetooth/controller/ctrl_hci/CMakeLists.txt +++ b/tests/bluetooth/controller/ctrl_hci/CMakeLists.txt @@ -2,9 +2,10 @@ cmake_minimum_required(VERSION 3.20.0) -project(bluetooth_ull_llcp_hci_api) find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE}) +project(bluetooth_ull_llcp_hci_api) + add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/controller/common common) add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/controller/uut uut) diff --git a/tests/bluetooth/controller/ctrl_invalid/CMakeLists.txt b/tests/bluetooth/controller/ctrl_invalid/CMakeLists.txt index 6c65fef11fa..3c712ba0030 100644 --- a/tests/bluetooth/controller/ctrl_invalid/CMakeLists.txt +++ b/tests/bluetooth/controller/ctrl_invalid/CMakeLists.txt @@ -2,9 +2,10 @@ cmake_minimum_required(VERSION 3.20.0) -project(bluetooth_ull_llcp_invalid) find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE}) +project(bluetooth_ull_llcp_invalid) + add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/controller/common common) add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/controller/uut uut) diff --git a/tests/bluetooth/controller/ctrl_le_ping/CMakeLists.txt b/tests/bluetooth/controller/ctrl_le_ping/CMakeLists.txt index 5f621d191b1..49cabbb5801 100644 --- a/tests/bluetooth/controller/ctrl_le_ping/CMakeLists.txt +++ b/tests/bluetooth/controller/ctrl_le_ping/CMakeLists.txt @@ -2,9 +2,10 @@ cmake_minimum_required(VERSION 3.20.0) -project(bluetooth_ull_llcp_le_ping) find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE}) +project(bluetooth_ull_llcp_le_ping) + add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/controller/common common) add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/controller/uut uut) diff --git a/tests/bluetooth/controller/ctrl_min_used_chans/CMakeLists.txt b/tests/bluetooth/controller/ctrl_min_used_chans/CMakeLists.txt index 0c29b4b399e..cd5de6e459f 100644 --- a/tests/bluetooth/controller/ctrl_min_used_chans/CMakeLists.txt +++ b/tests/bluetooth/controller/ctrl_min_used_chans/CMakeLists.txt @@ -2,9 +2,10 @@ cmake_minimum_required(VERSION 3.20.0) -project(bluetooth_ull_llcp_min_used_chans) find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE}) +project(bluetooth_ull_llcp_min_used_chans) + add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/controller/common common) add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/controller/uut uut) diff --git a/tests/bluetooth/controller/ctrl_phy_update/CMakeLists.txt b/tests/bluetooth/controller/ctrl_phy_update/CMakeLists.txt index e5369b95298..6ab17574a90 100644 --- a/tests/bluetooth/controller/ctrl_phy_update/CMakeLists.txt +++ b/tests/bluetooth/controller/ctrl_phy_update/CMakeLists.txt @@ -2,9 +2,10 @@ cmake_minimum_required(VERSION 3.20.0) -project(bluetooth_ull_llcp_phy_update) find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE}) +project(bluetooth_ull_llcp_phy_update) + add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/controller/common common) add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/controller/uut uut) diff --git a/tests/bluetooth/controller/ctrl_sca_update/CMakeLists.txt b/tests/bluetooth/controller/ctrl_sca_update/CMakeLists.txt index 6f22aef88fd..70bd4d5c3f9 100644 --- a/tests/bluetooth/controller/ctrl_sca_update/CMakeLists.txt +++ b/tests/bluetooth/controller/ctrl_sca_update/CMakeLists.txt @@ -2,9 +2,10 @@ cmake_minimum_required(VERSION 3.20.0) -project(bluetooth_ull_llcp_sca_update) find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE}) +project(bluetooth_ull_llcp_sca_update) + add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/controller/common common) add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/controller/uut uut) diff --git a/tests/bluetooth/controller/ctrl_terminate/CMakeLists.txt b/tests/bluetooth/controller/ctrl_terminate/CMakeLists.txt index 30339b10dac..cbcb89abd2e 100644 --- a/tests/bluetooth/controller/ctrl_terminate/CMakeLists.txt +++ b/tests/bluetooth/controller/ctrl_terminate/CMakeLists.txt @@ -2,9 +2,10 @@ cmake_minimum_required(VERSION 3.20.0) -project(bluetooth_ull_llcp_terminate) find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE}) +project(bluetooth_ull_llcp_terminate) + add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/controller/common common) add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/controller/uut uut) diff --git a/tests/bluetooth/controller/ctrl_tx_buffer_alloc/CMakeLists.txt b/tests/bluetooth/controller/ctrl_tx_buffer_alloc/CMakeLists.txt index a340cb879ab..b0df196c6da 100644 --- a/tests/bluetooth/controller/ctrl_tx_buffer_alloc/CMakeLists.txt +++ b/tests/bluetooth/controller/ctrl_tx_buffer_alloc/CMakeLists.txt @@ -2,9 +2,10 @@ cmake_minimum_required(VERSION 3.20.0) -project(bluetooth_ull_llcp_tx_buffer_alloc) find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE}) +project(bluetooth_ull_llcp_tx_buffer_alloc) + add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/controller/common common) add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/controller/uut uut) diff --git a/tests/bluetooth/controller/ctrl_tx_queue/CMakeLists.txt b/tests/bluetooth/controller/ctrl_tx_queue/CMakeLists.txt index 72e31d1facb..791b0387189 100644 --- a/tests/bluetooth/controller/ctrl_tx_queue/CMakeLists.txt +++ b/tests/bluetooth/controller/ctrl_tx_queue/CMakeLists.txt @@ -2,9 +2,10 @@ cmake_minimum_required(VERSION 3.20.0) -project(bluetooth_ull_llcp_tx_queue) find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE}) +project(bluetooth_ull_llcp_tx_queue) + add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/controller/common common) add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/controller/uut uut) diff --git a/tests/bluetooth/controller/ctrl_unsupported/CMakeLists.txt b/tests/bluetooth/controller/ctrl_unsupported/CMakeLists.txt index 1f0df204d88..82b5f19b7e6 100644 --- a/tests/bluetooth/controller/ctrl_unsupported/CMakeLists.txt +++ b/tests/bluetooth/controller/ctrl_unsupported/CMakeLists.txt @@ -2,9 +2,10 @@ cmake_minimum_required(VERSION 3.20.0) -project(bluetooth_ull_llcp_unsupported) find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE}) +project(bluetooth_ull_llcp_unsupported) + add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/controller/common common) add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/controller/uut uut) diff --git a/tests/bluetooth/controller/ctrl_version/CMakeLists.txt b/tests/bluetooth/controller/ctrl_version/CMakeLists.txt index 02ba28adf00..3ff6b20ec0e 100644 --- a/tests/bluetooth/controller/ctrl_version/CMakeLists.txt +++ b/tests/bluetooth/controller/ctrl_version/CMakeLists.txt @@ -2,9 +2,10 @@ cmake_minimum_required(VERSION 3.20.0) -project(bluetooth_ull_llcp_version) find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE}) +project(bluetooth_ull_llcp_version) + add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/controller/common common) add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/controller/uut uut) diff --git a/tests/bluetooth/host/crypto/bt_encrypt_be/CMakeLists.txt b/tests/bluetooth/host/crypto/bt_encrypt_be/CMakeLists.txt index 01d383c7c4b..23724fe1db0 100644 --- a/tests/bluetooth/host/crypto/bt_encrypt_be/CMakeLists.txt +++ b/tests/bluetooth/host/crypto/bt_encrypt_be/CMakeLists.txt @@ -7,10 +7,10 @@ set(SOURCES src/test_suite_invalid_inputs.c ) -project(bt_encrypt_be) - find_package(Zephyr COMPONENTS unittest HINTS $ENV{ZEPHYR_BASE}) +project(bt_encrypt_be) + add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host host_mocks) add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host/crypto mocks) diff --git a/tests/bluetooth/host/crypto/bt_encrypt_le/CMakeLists.txt b/tests/bluetooth/host/crypto/bt_encrypt_le/CMakeLists.txt index 515194c85cb..d5191f5b4ab 100644 --- a/tests/bluetooth/host/crypto/bt_encrypt_le/CMakeLists.txt +++ b/tests/bluetooth/host/crypto/bt_encrypt_le/CMakeLists.txt @@ -7,10 +7,10 @@ set(SOURCES src/test_suite_invalid_inputs.c ) -project(bt_encrypt_le) - find_package(Zephyr COMPONENTS unittest HINTS $ENV{ZEPHYR_BASE}) +project(bt_encrypt_le) + add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host host_mocks) add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host/crypto mocks) diff --git a/tests/bluetooth/host/crypto/bt_rand/CMakeLists.txt b/tests/bluetooth/host/crypto/bt_rand/CMakeLists.txt index 51abecdc50c..146e328340b 100644 --- a/tests/bluetooth/host/crypto/bt_rand/CMakeLists.txt +++ b/tests/bluetooth/host/crypto/bt_rand/CMakeLists.txt @@ -7,10 +7,10 @@ set(SOURCES src/test_suite_invalid_inputs.c ) -project(bt_rand) - find_package(Zephyr COMPONENTS unittest HINTS $ENV{ZEPHYR_BASE}) +project(bt_rand) + add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host host_mocks) add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host/crypto mocks) diff --git a/tests/bluetooth/host/crypto/prng_init/CMakeLists.txt b/tests/bluetooth/host/crypto/prng_init/CMakeLists.txt index 8fd8d7ec965..8b219f65c91 100644 --- a/tests/bluetooth/host/crypto/prng_init/CMakeLists.txt +++ b/tests/bluetooth/host/crypto/prng_init/CMakeLists.txt @@ -7,10 +7,10 @@ set(SOURCES src/test_suite_invalid_inputs.c ) -project(prng_init) - find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE}) +project(prng_init) + add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host host_mocks) add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host/crypto mocks) diff --git a/tests/bluetooth/host/data/bt_data_parse/CMakeLists.txt b/tests/bluetooth/host/data/bt_data_parse/CMakeLists.txt index 32592896a7c..7ff79dd7108 100644 --- a/tests/bluetooth/host/data/bt_data_parse/CMakeLists.txt +++ b/tests/bluetooth/host/data/bt_data_parse/CMakeLists.txt @@ -2,10 +2,10 @@ cmake_minimum_required(VERSION 3.20.0) -project(bt_data_parse) - find_package(Zephyr COMPONENTS unittest HINTS $ENV{ZEPHYR_BASE}) +project(bt_data_parse) + add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host host_mocks) target_link_libraries(testbinary PRIVATE host_mocks) diff --git a/tests/bluetooth/host/ecc/bt_dh_key_gen/CMakeLists.txt b/tests/bluetooth/host/ecc/bt_dh_key_gen/CMakeLists.txt index aac575f6f93..1ff36c26648 100644 --- a/tests/bluetooth/host/ecc/bt_dh_key_gen/CMakeLists.txt +++ b/tests/bluetooth/host/ecc/bt_dh_key_gen/CMakeLists.txt @@ -7,10 +7,10 @@ set(SOURCES src/test_suite_invalid_inputs.c ) -project(bt_dh_key_gen) - find_package(Zephyr COMPONENTS unittest HINTS $ENV{ZEPHYR_BASE}) +project(bt_dh_key_gen) + add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host host_mocks) add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host/ecc mocks) diff --git a/tests/bluetooth/host/ecc/bt_pub_key_gen/CMakeLists.txt b/tests/bluetooth/host/ecc/bt_pub_key_gen/CMakeLists.txt index 2e0f6c046d5..8068d567ad6 100644 --- a/tests/bluetooth/host/ecc/bt_pub_key_gen/CMakeLists.txt +++ b/tests/bluetooth/host/ecc/bt_pub_key_gen/CMakeLists.txt @@ -7,10 +7,10 @@ set(SOURCES src/test_suite_invalid_inputs.c ) -project(bt_pub_key_gen) - find_package(Zephyr COMPONENTS unittest HINTS $ENV{ZEPHYR_BASE}) +project(bt_pub_key_gen) + add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host host_mocks) add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host/ecc mocks) diff --git a/tests/bluetooth/host/ecc/bt_pub_key_get/CMakeLists.txt b/tests/bluetooth/host/ecc/bt_pub_key_get/CMakeLists.txt index 88de552aca4..6b0ecb43eb1 100644 --- a/tests/bluetooth/host/ecc/bt_pub_key_get/CMakeLists.txt +++ b/tests/bluetooth/host/ecc/bt_pub_key_get/CMakeLists.txt @@ -7,10 +7,10 @@ set(SOURCES src/test_suite_invalid_inputs.c ) -project(bt_pub_key_get) - find_package(Zephyr COMPONENTS unittest HINTS $ENV{ZEPHYR_BASE}) +project(bt_pub_key_get) + add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host host_mocks) add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host/ecc mocks) diff --git a/tests/bluetooth/host/ecc/bt_pub_key_is_debug/CMakeLists.txt b/tests/bluetooth/host/ecc/bt_pub_key_is_debug/CMakeLists.txt index 47f0b07b4a8..4d50614c13d 100644 --- a/tests/bluetooth/host/ecc/bt_pub_key_is_debug/CMakeLists.txt +++ b/tests/bluetooth/host/ecc/bt_pub_key_is_debug/CMakeLists.txt @@ -6,10 +6,10 @@ set(SOURCES src/main.c ) -project(bt_pub_key_is_debug) - find_package(Zephyr COMPONENTS unittest HINTS $ENV{ZEPHYR_BASE}) +project(bt_pub_key_is_debug) + add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host host_mocks) add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host/ecc mocks) diff --git a/tests/bluetooth/host/keys/bt_keys_add_type/CMakeLists.txt b/tests/bluetooth/host/keys/bt_keys_add_type/CMakeLists.txt index b2e7821d8c8..d484bfe7d60 100644 --- a/tests/bluetooth/host/keys/bt_keys_add_type/CMakeLists.txt +++ b/tests/bluetooth/host/keys/bt_keys_add_type/CMakeLists.txt @@ -2,9 +2,10 @@ cmake_minimum_required(VERSION 3.20.0) -project(bt_keys_add_type) find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE}) +project(bt_keys_add_type) + add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host host_mocks) add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host/keys/mocks mocks) diff --git a/tests/bluetooth/host/keys/bt_keys_clear/CMakeLists.txt b/tests/bluetooth/host/keys/bt_keys_clear/CMakeLists.txt index bfd6c01768e..05f9e353957 100644 --- a/tests/bluetooth/host/keys/bt_keys_clear/CMakeLists.txt +++ b/tests/bluetooth/host/keys/bt_keys_clear/CMakeLists.txt @@ -2,9 +2,10 @@ cmake_minimum_required(VERSION 3.20.0) -project(bt_keys_clear) find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE}) +project(bt_keys_clear) + add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host host_mocks) add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host/keys/mocks mocks) diff --git a/tests/bluetooth/host/keys/bt_keys_find/CMakeLists.txt b/tests/bluetooth/host/keys/bt_keys_find/CMakeLists.txt index e5f7df3d87a..2403151d284 100644 --- a/tests/bluetooth/host/keys/bt_keys_find/CMakeLists.txt +++ b/tests/bluetooth/host/keys/bt_keys_find/CMakeLists.txt @@ -2,9 +2,10 @@ cmake_minimum_required(VERSION 3.20.0) -project(bt_keys_find) find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE}) +project(bt_keys_find) + add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host host_mocks) add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host/keys/mocks mocks) diff --git a/tests/bluetooth/host/keys/bt_keys_find_addr/CMakeLists.txt b/tests/bluetooth/host/keys/bt_keys_find_addr/CMakeLists.txt index 52980beb5ba..48db7b76b4f 100644 --- a/tests/bluetooth/host/keys/bt_keys_find_addr/CMakeLists.txt +++ b/tests/bluetooth/host/keys/bt_keys_find_addr/CMakeLists.txt @@ -2,9 +2,10 @@ cmake_minimum_required(VERSION 3.20.0) -project(bt_keys_find_addr) find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE}) +project(bt_keys_find_addr) + add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host host_mocks) add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host/keys/mocks mocks) diff --git a/tests/bluetooth/host/keys/bt_keys_find_irk/CMakeLists.txt b/tests/bluetooth/host/keys/bt_keys_find_irk/CMakeLists.txt index 7f99f0ba712..0de54680180 100644 --- a/tests/bluetooth/host/keys/bt_keys_find_irk/CMakeLists.txt +++ b/tests/bluetooth/host/keys/bt_keys_find_irk/CMakeLists.txt @@ -2,9 +2,10 @@ cmake_minimum_required(VERSION 3.20.0) -project(bt_keys_find_irk) find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE}) +project(bt_keys_find_irk) + add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host host_mocks) add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host/keys/mocks mocks) diff --git a/tests/bluetooth/host/keys/bt_keys_foreach_bond/CMakeLists.txt b/tests/bluetooth/host/keys/bt_keys_foreach_bond/CMakeLists.txt index 54cc9db9379..f6920e233a3 100644 --- a/tests/bluetooth/host/keys/bt_keys_foreach_bond/CMakeLists.txt +++ b/tests/bluetooth/host/keys/bt_keys_foreach_bond/CMakeLists.txt @@ -2,9 +2,10 @@ cmake_minimum_required(VERSION 3.20.0) -project(bt_keys_foreach_bond) find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE}) +project(bt_keys_foreach_bond) + add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host host_mocks) add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host/keys/mocks mocks) diff --git a/tests/bluetooth/host/keys/bt_keys_foreach_type/CMakeLists.txt b/tests/bluetooth/host/keys/bt_keys_foreach_type/CMakeLists.txt index c109173f86b..f48a2d24280 100644 --- a/tests/bluetooth/host/keys/bt_keys_foreach_type/CMakeLists.txt +++ b/tests/bluetooth/host/keys/bt_keys_foreach_type/CMakeLists.txt @@ -2,9 +2,10 @@ cmake_minimum_required(VERSION 3.20.0) -project(bt_keys_foreach_type) find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE}) +project(bt_keys_foreach_type) + add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host host_mocks) add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host/keys/mocks mocks) diff --git a/tests/bluetooth/host/keys/bt_keys_get_type/CMakeLists.txt b/tests/bluetooth/host/keys/bt_keys_get_type/CMakeLists.txt index c2de914ce04..ec1b6a84e62 100644 --- a/tests/bluetooth/host/keys/bt_keys_get_type/CMakeLists.txt +++ b/tests/bluetooth/host/keys/bt_keys_get_type/CMakeLists.txt @@ -2,9 +2,10 @@ cmake_minimum_required(VERSION 3.20.0) -project(bt_keys_get_type) find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE}) +project(bt_keys_get_type) + add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host host_mocks) add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host/keys/mocks mocks) diff --git a/tests/bluetooth/host/keys/bt_keys_store/CMakeLists.txt b/tests/bluetooth/host/keys/bt_keys_store/CMakeLists.txt index 4e407257cd5..34704ffc3b1 100644 --- a/tests/bluetooth/host/keys/bt_keys_store/CMakeLists.txt +++ b/tests/bluetooth/host/keys/bt_keys_store/CMakeLists.txt @@ -2,9 +2,10 @@ cmake_minimum_required(VERSION 3.20.0) -project(bt_keys_store) find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE}) +project(bt_keys_store) + add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host host_mocks) add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host/keys/mocks mocks) diff --git a/tests/bluetooth/host/keys/bt_keys_update_usage/CMakeLists.txt b/tests/bluetooth/host/keys/bt_keys_update_usage/CMakeLists.txt index aceae1c382a..da19d1217ff 100644 --- a/tests/bluetooth/host/keys/bt_keys_update_usage/CMakeLists.txt +++ b/tests/bluetooth/host/keys/bt_keys_update_usage/CMakeLists.txt @@ -2,9 +2,10 @@ cmake_minimum_required(VERSION 3.20.0) -project(bt_keys_update_usage) find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE}) +project(bt_keys_update_usage) + add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host host_mocks) add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host/keys/mocks mocks) diff --git a/tests/lib/acpi/unit/CMakeLists.txt b/tests/lib/acpi/unit/CMakeLists.txt index c62ee890a5e..80ef6b82b94 100644 --- a/tests/lib/acpi/unit/CMakeLists.txt +++ b/tests/lib/acpi/unit/CMakeLists.txt @@ -2,9 +2,10 @@ cmake_minimum_required(VERSION 3.20.0) -project(lib_acpi) find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE}) +project(lib_acpi) + # Assert library add_library(mock_assert STATIC src/assert.c) target_link_libraries(mock_assert PRIVATE test_interface) diff --git a/tests/net/buf_simple/CMakeLists.txt b/tests/net/buf_simple/CMakeLists.txt index 3feb1b01bfd..ea1cedaffc4 100644 --- a/tests/net/buf_simple/CMakeLists.txt +++ b/tests/net/buf_simple/CMakeLists.txt @@ -2,10 +2,10 @@ cmake_minimum_required(VERSION 3.20.0) -project(buf_simple) - find_package(Zephyr COMPONENTS unittest HINTS $ENV{ZEPHYR_BASE}) +project(buf_simple) + add_subdirectory(${ZEPHYR_BASE}/tests/net/mocks net_mocks) target_link_libraries(testbinary PRIVATE net_mocks) diff --git a/tests/unit/base64/CMakeLists.txt b/tests/unit/base64/CMakeLists.txt index 9f3dd3475c3..d39a181c303 100644 --- a/tests/unit/base64/CMakeLists.txt +++ b/tests/unit/base64/CMakeLists.txt @@ -2,6 +2,8 @@ cmake_minimum_required(VERSION 3.20.0) -project(base64) find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE}) + +project(base64) + target_sources(testbinary PRIVATE main.c) diff --git a/tests/unit/cbprintf/CMakeLists.txt b/tests/unit/cbprintf/CMakeLists.txt index 594396784a7..d7428a2d5c8 100644 --- a/tests/unit/cbprintf/CMakeLists.txt +++ b/tests/unit/cbprintf/CMakeLists.txt @@ -2,6 +2,8 @@ cmake_minimum_required(VERSION 3.20.0) -project(lib_os_cbprintf) find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE}) + +project(lib_os_cbprintf) + target_sources(testbinary PRIVATE main.c) diff --git a/tests/unit/intmath/CMakeLists.txt b/tests/unit/intmath/CMakeLists.txt index 9f3dd3475c3..d39a181c303 100644 --- a/tests/unit/intmath/CMakeLists.txt +++ b/tests/unit/intmath/CMakeLists.txt @@ -2,6 +2,8 @@ cmake_minimum_required(VERSION 3.20.0) -project(base64) find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE}) + +project(base64) + target_sources(testbinary PRIVATE main.c) diff --git a/tests/unit/list/CMakeLists.txt b/tests/unit/list/CMakeLists.txt index 9104e94e88e..d1244ba2ef9 100644 --- a/tests/unit/list/CMakeLists.txt +++ b/tests/unit/list/CMakeLists.txt @@ -2,8 +2,10 @@ cmake_minimum_required(VERSION 3.20.0) -project(list) find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE}) + +project(list) + target_sources(testbinary PRIVATE main.c diff --git a/tests/unit/math_extras/CMakeLists.txt b/tests/unit/math_extras/CMakeLists.txt index 45458a61c57..393ee3d9536 100644 --- a/tests/unit/math_extras/CMakeLists.txt +++ b/tests/unit/math_extras/CMakeLists.txt @@ -2,6 +2,8 @@ cmake_minimum_required(VERSION 3.20.0) -project(math_extras) find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE}) + +project(math_extras) + target_sources(testbinary PRIVATE main.c) diff --git a/tests/unit/net_timeout/CMakeLists.txt b/tests/unit/net_timeout/CMakeLists.txt index 23fe60e8aa8..44cb6c38446 100644 --- a/tests/unit/net_timeout/CMakeLists.txt +++ b/tests/unit/net_timeout/CMakeLists.txt @@ -2,6 +2,8 @@ cmake_minimum_required(VERSION 3.20.0) -project(lib_net_timeout) find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE}) + +project(lib_net_timeout) + target_sources(testbinary PRIVATE main.c) diff --git a/tests/unit/rbtree/CMakeLists.txt b/tests/unit/rbtree/CMakeLists.txt index 5cc7aa4c70a..0d0aecd1b45 100644 --- a/tests/unit/rbtree/CMakeLists.txt +++ b/tests/unit/rbtree/CMakeLists.txt @@ -2,6 +2,8 @@ cmake_minimum_required(VERSION 3.20.0) -project(rbtree) find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE}) + +project(rbtree) + target_sources(testbinary PRIVATE main.c) diff --git a/tests/unit/timeutil/CMakeLists.txt b/tests/unit/timeutil/CMakeLists.txt index c1804fad6ae..0981463e879 100644 --- a/tests/unit/timeutil/CMakeLists.txt +++ b/tests/unit/timeutil/CMakeLists.txt @@ -3,8 +3,10 @@ cmake_minimum_required(VERSION 3.20.0) -project(timeutil) find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE}) + +project(timeutil) + target_sources(testbinary PRIVATE main.c diff --git a/tests/unit/util/CMakeLists.txt b/tests/unit/util/CMakeLists.txt index 8c550241bd7..ecdc5f67979 100644 --- a/tests/unit/util/CMakeLists.txt +++ b/tests/unit/util/CMakeLists.txt @@ -2,8 +2,10 @@ cmake_minimum_required(VERSION 3.20.0) -project(util) find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE}) + +project(util) + target_sources(testbinary PRIVATE main.c diff --git a/tests/unit/winstream/CMakeLists.txt b/tests/unit/winstream/CMakeLists.txt index 04849de6992..1880cb87a77 100644 --- a/tests/unit/winstream/CMakeLists.txt +++ b/tests/unit/winstream/CMakeLists.txt @@ -1,5 +1,8 @@ # SPDX-License-Identifier: Apache-2.0 -project(winstream) cmake_minimum_required(VERSION 3.20.0) + find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE}) + +project(winstream) + target_sources(testbinary PRIVATE main.c)