blob: bfd6c01768e2db4272c53feb665d0cffd007c569 [file] [log] [blame]
# SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.20.0)
project(bt_keys_clear)
find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE})
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host host_mocks)
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/host/keys/mocks mocks)
target_link_libraries(testbinary PRIVATE mocks host_mocks)
target_sources(testbinary
PRIVATE
src/main.c
src/test_suite_bt_settings.c
src/test_suite_clear_invalid_inputs.c
# Unit under test
${ZEPHYR_BASE}/subsys/bluetooth/host/keys.c
${ZEPHYR_BASE}/subsys/bluetooth/common/addr.c
)