tests: source Zephyr before project() call
Fixes: #73831 find_package(Zephyr) should be called before first project() call. Zephyr package will test and force-set the correct toolchain, especially the C compiler. The project() will also set the C compiler, if not set already. If project() is called first, then conflict arises on the C compiler selection and thus the following message is seen: > You have changed variables that require your cache to be deleted. > Configure will be re-run and you may have to reset some variables. > The following variables have changed: > CMAKE_C_COMPILER= /usr/bin/gcc This cache deletion results in other errors, such as a missing BOARD setting. Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
This commit is contained in:
parent
e02a5fb139
commit
b939e720a6
58 changed files with 127 additions and 68 deletions
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue