Commit ffc09835 authored by Yuval Peress's avatar Yuval Peress Committed by Anas Nashif
Browse files

test: unittest: Fix deprecated ZephyrUnittest



Fix the deprecated calls to loading ZephyrUnittest by replacing them
with `Zephyr COMPONENTS unittest`.

Signed-off-by: default avatarYuval Peress <peress@google.com>
parent d06d1397
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -11,6 +11,6 @@ FILE(GLOB SOURCES
)

project(bluetooth_ull_llcp_api)
find_package(ZephyrUnittest HINTS $ENV{ZEPHYR_BASE})
find_package(Zephyr COMPONENTS unittest HINTS $ENV{ZEPHYR_BASE})
include(${ZEPHYR_BASE}/tests/bluetooth/controller/common/defaults_cmake.txt)
target_sources(testbinary PRIVATE ${ll_sw_sources} ${mock_sources} ${common_sources})
+1 −1
Original line number Diff line number Diff line
@@ -11,6 +11,6 @@ FILE(GLOB SOURCES
)

project(bluetooth_ctrl_ull_conn)
find_package(ZephyrUnittest HINTS $ENV{ZEPHYR_BASE})
find_package(Zephyr COMPONENTS unittest HINTS $ENV{ZEPHYR_BASE})
include(${ZEPHYR_BASE}/tests/bluetooth/controller/common/defaults_cmake.txt)
target_sources(testbinary PRIVATE ${ll_sw_sources} ${mock_sources} ${common_sources})
+1 −1
Original line number Diff line number Diff line
@@ -11,7 +11,7 @@ FILE(GLOB SOURCES
)

project(bluetooth_ull_llcp_collision)
find_package(ZephyrUnittest HINTS $ENV{ZEPHYR_BASE})
find_package(Zephyr COMPONENTS unittest HINTS $ENV{ZEPHYR_BASE})
include(${ZEPHYR_BASE}/tests/bluetooth/controller/common/defaults_cmake.txt)

target_sources(testbinary PRIVATE ${ll_sw_sources} ${mock_sources} ${common_sources})
+1 −1
Original line number Diff line number Diff line
@@ -11,6 +11,6 @@ FILE(GLOB SOURCES
)

project(bluetooth_ctrl_ull_conn)
find_package(ZephyrUnittest HINTS $ENV{ZEPHYR_BASE})
find_package(Zephyr COMPONENTS unittest HINTS $ENV{ZEPHYR_BASE})
include(${ZEPHYR_BASE}/tests/bluetooth/controller/common/defaults_cmake.txt)
target_sources(testbinary PRIVATE ${ll_sw_sources} ${mock_sources} ${common_sources})
+1 −1
Original line number Diff line number Diff line
@@ -14,7 +14,7 @@ FILE(GLOB SOURCES
)

project(bluetooth_ull_llcp_le_cte_req)
find_package(ZephyrUnittest HINTS $ENV{ZEPHYR_BASE})
find_package(Zephyr COMPONENTS unittest HINTS $ENV{ZEPHYR_BASE})
include(${ZEPHYR_BASE}/tests/bluetooth/controller/common/defaults_cmake.txt)
target_sources(testbinary PRIVATE ${ll_sw_sources} ${mock_sources} ${common_sources})
set(CMAKE_BUILD_TYPE Debug)
Loading