File tree Expand file tree Collapse file tree 5 files changed +413
-0
lines changed Expand file tree Collapse file tree 5 files changed +413
-0
lines changed Original file line number Diff line number Diff line change 9393/tests /lib /ble_qwr / @ nrfconnect/ncs-bm
9494/tests /lib /ble_racp / @ nrfconnect/ncs-bm
9595/tests /lib /ble_adv / @ nrfconnect/ncs-bm-test
96+ /tests /lib /ble_gq / @ nrfconnect/ncs-bm @ nrfconnect/ncs-bm-test
9697/tests /lib /bm_storage / @ nrfconnect/ncs-bm
9798/tests /subsys /bluetooth /services /ble_nus / @ nrfconnect/ncs-bm @ nrfconnect/ncs-bm-test
9899
Original file line number Diff line number Diff line change 1+ #
2+ # Copyright (c) 2025 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_gq)
12+
13+ set (SOFTDEVICE_VARIANT "s115" )
14+ set (SOFTDEVICE_INCLUDE_DIR "${ZEPHYR_NRF_BM_MODULE_DIR} /components/softdevice/\
15+ ${SOFTDEVICE_VARIANT} /${SOFTDEVICE_VARIANT} _API/include" )
16+
17+ cmock_handle(${SOFTDEVICE_INCLUDE_DIR} /ble_gattc.h)
18+ cmock_handle(${SOFTDEVICE_INCLUDE_DIR} /ble_gatts.h)
19+
20+ target_compile_definitions (app PRIVATE
21+ NRF54L15_XXAA
22+ SVCALL_AS_NORMAL_FUNCTION
23+ SUPPRESS_INLINE_IMPLEMENTATION
24+ CONFIG_NRF_SDH_BLE_TOTAL_LINK_COUNT=2
25+ CONFIG_BLE_GQ_HEAP_SIZE=1024
26+ )
27+
28+ target_include_directories (app PRIVATE
29+ ${SOFTDEVICE_INCLUDE_DIR}
30+ ${ZEPHYR_HAL_NORDIC_MODULE_DIR} /nrfx/mdk
31+ )
32+
33+ # Generate and add test file
34+ test_runner_generate(src/unity_test.c)
35+ target_sources (app PRIVATE src/unity_test.c)
36+
37+ # Unit under test
38+ target_sources (app PRIVATE ${ZEPHYR_NRF_BM_MODULE_DIR} /lib/ble_gq/gatt_queue.c)
Original file line number Diff line number Diff line change 1+ #
2+ # Copyright (c) 2025 Nordic Semiconductor ASA
3+ #
4+ # SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+ #
6+ CONFIG_UNITY=y
You can’t perform that action at this time.
0 commit comments