File tree Expand file tree Collapse file tree
tests/unit/subsys/bluetooth/services/ble_lbs Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ #
2+ # Copyright (c) 2026 Nordic Semiconductor ASA
3+ #
4+ # SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+ #
6+
7+ cmake_minimum_required (VERSION 3.20.0 )
8+
9+ find_package (Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE} )
10+
11+ project (unit_test_ble_lbs)
12+
13+ softdevice_unity_setup ()
14+
15+ cmock_handle (${SOFTDEVICE_INCLUDE_DIR} /ble.h )
16+ cmock_handle (${SOFTDEVICE_INCLUDE_DIR} /ble_gatts.h )
17+
18+ # Generate and add test file
19+ test_runner_generate (src/unity_test.c )
20+ target_sources (app PRIVATE src/unity_test.c )
Original file line number Diff line number Diff line change 1+ # Redefine this symbol without dependencies, so that tests
2+ # can enable it without having to enable the dependencies too.
3+ config BLE_LBS
4+ default y
5+
6+ # Redefine Kconfigs used by the tested module that are defined in
7+ # other modules we do not want to enable.
8+ config NRF_SDH_BLE_TOTAL_LINK_COUNT
9+ default 1
10+
11+ source "Kconfig.zephyr"
Original file line number Diff line number Diff line change 1+ CONFIG_UNITY=y
You can’t perform that action at this time.
0 commit comments