diff --git a/tests/bluetooth/audio/ccid/CMakeLists.txt b/tests/bluetooth/audio/ccid/CMakeLists.txt index c304cddfb885c..dbb75cdcfff2d 100644 --- a/tests/bluetooth/audio/ccid/CMakeLists.txt +++ b/tests/bluetooth/audio/ccid/CMakeLists.txt @@ -2,16 +2,10 @@ cmake_minimum_required(VERSION 3.20.0) +find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE}) project(bluetooth_ccid) -find_package(Zephyr COMPONENTS unittest HINTS $ENV{ZEPHYR_BASE}) -add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/audio/ccid/uut uut) - -target_link_libraries(testbinary PRIVATE uut) - -target_include_directories(testbinary PRIVATE include) - -target_sources(testbinary - PRIVATE - src/main.c +target_sources(app PRIVATE + # Test source files + src/main.c ) diff --git a/tests/bluetooth/audio/ccid/prj.conf b/tests/bluetooth/audio/ccid/prj.conf index 165ddccf9041e..53a381c240c8c 100644 --- a/tests/bluetooth/audio/ccid/prj.conf +++ b/tests/bluetooth/audio/ccid/prj.conf @@ -1,6 +1,7 @@ CONFIG_ZTEST=y CONFIG_BT=y +CONFIG_BT_PERIPHERAL=y CONFIG_BT_GATT_DYNAMIC_DB=y CONFIG_BT_AUDIO=y diff --git a/tests/bluetooth/audio/ccid/testcase.yaml b/tests/bluetooth/audio/ccid/testcase.yaml index b40f79c52116b..642377a194a2d 100644 --- a/tests/bluetooth/audio/ccid/testcase.yaml +++ b/tests/bluetooth/audio/ccid/testcase.yaml @@ -4,4 +4,7 @@ common: - bluetooth_audio tests: bluetooth.audio.ccid.test: - type: unit + platform_allow: + - native_sim + integration_platforms: + - native_sim diff --git a/tests/bluetooth/audio/ccid/uut/CMakeLists.txt b/tests/bluetooth/audio/ccid/uut/CMakeLists.txt deleted file mode 100644 index 727d5fa4a79b7..0000000000000 --- a/tests/bluetooth/audio/ccid/uut/CMakeLists.txt +++ /dev/null @@ -1,17 +0,0 @@ -# -# Copyright (c) 2024 Nordic Semiconductor ASA -# -# SPDX-License-Identifier: Apache-2.0 -# -# CMakeLists.txt file for creating of uut library. -# - -add_library(uut STATIC - ${ZEPHYR_BASE}/subsys/bluetooth/audio/ccid.c -) - -add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/audio/mocks mocks) - -target_link_libraries(uut PUBLIC test_interface mocks) - -target_compile_options(uut PRIVATE -std=c11 -include ztest.h)