Skip to content

Commit e7a7c59

Browse files
PavelVPVfabiobaltieri
authored andcommitted
tests: bsim: bluetooth: host: privacy: peripheral: Enable nRF5340
Enable privacy peripheral test for nRF5340. After fixing scan interval, the test started passing on nRF5340 as well. Enable it for regressions. Signed-off-by: Pavel Vasilyev <pavel.vasilyev@nordicsemi.no>
1 parent dacdf7d commit e7a7c59

File tree

5 files changed

+61
-0
lines changed

5 files changed

+61
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Copyright 2025 Nordic Semiconductor ASA
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
source "share/sysbuild/Kconfig"
5+
6+
config NET_CORE_BOARD
7+
string
8+
default "nrf5340bsim/nrf5340/cpunet" if $(BOARD_TARGET_STRING) = "NRF5340BSIM_NRF5340_CPUAPP"
9+
10+
config NATIVE_SIMULATOR_PRIMARY_MCU_INDEX
11+
int
12+
# Let's pass the test arguments to the application MCU test
13+
# otherwise by default they would have gone to the net core.
14+
default 0 if $(BOARD_TARGET_STRING) = "NRF5340BSIM_NRF5340_CPUAPP"
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
CONFIG_IPC_SERVICE=y
2+
CONFIG_MBOX=y
3+
CONFIG_ISR_STACK_SIZE=1024
4+
CONFIG_IDLE_STACK_SIZE=256
5+
CONFIG_MAIN_STACK_SIZE=512
6+
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=512
7+
CONFIG_IPC_SERVICE_BACKEND_RPMSG_WQ_STACK_SIZE=512
8+
CONFIG_HEAP_MEM_POOL_SIZE=4096
9+
CONFIG_CBPRINTF_REDUCED_INTEGRAL=y
10+
CONFIG_ISR_TABLES_LOCAL_DECLARATION=y
11+
12+
CONFIG_BT=y
13+
CONFIG_BT_HCI_RAW=y
14+
CONFIG_BT_EXT_ADV=y
15+
CONFIG_BT_PRIVACY=y
16+
CONFIG_BT_EXT_ADV_MAX_ADV_SET=3
17+
CONFIG_BT_CTLR_ADVANCED_FEATURES=y
18+
CONFIG_BT_CTLR_ADV_DATA_BUF_MAX=3
19+
CONFIG_BT_EXT_ADV_MAX_ADV_SET=4
20+
CONFIG_BT_CTLR_ADV_DATA_BUF_MAX=4
21+
22+
# Controller
23+
CONFIG_BT_LL_SW_SPLIT=y
24+
CONFIG_BT_CTLR_ASSERT_HANDLER=y
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Copyright (c) 2025 Nordic Semiconductor ASA
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
if(NOT("${SB_CONFIG_NET_CORE_BOARD}" STREQUAL ""))
5+
set(NET_APP hci_ipc)
6+
set(NET_APP_SRC_DIR ${ZEPHYR_BASE}/samples/bluetooth/${NET_APP})
7+
8+
ExternalZephyrProject_Add(
9+
APPLICATION ${NET_APP}
10+
SOURCE_DIR ${NET_APP_SRC_DIR}
11+
BOARD ${SB_CONFIG_NET_CORE_BOARD}
12+
)
13+
14+
set(${NET_APP}_CONF_FILE ${APP_DIR}/nrf5340_cpunet-bt_ll_sw_split.conf CACHE INTERNAL "")
15+
16+
native_simulator_set_primary_mcu_index(${DEFAULT_IMAGE} ${NET_APP})
17+
native_simulator_set_child_images(${DEFAULT_IMAGE} ${NET_APP})
18+
endif()
19+
20+
native_simulator_set_final_executable(${DEFAULT_IMAGE})

tests/bsim/bluetooth/host/privacy/peripheral/testcase.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
common:
22
build_only: true
3+
sysbuild: true
34
tags:
45
- bluetooth
56
platform_allow:
67
- nrf52_bsim/native
8+
- nrf5340bsim/nrf5340/cpuapp
79
harness: bsim
810

911
tests:

tests/bsim/bluetooth/tests.nrf5340bsim_nrf5340_cpuapp.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ tests/bsim/bluetooth/audio/
1212
tests/bsim/bluetooth/host/gatt/notify_stress/
1313
tests/bsim/bluetooth/host/misc/hfc/
1414
tests/bsim/bluetooth/host/misc/hfc_multilink/
15+
tests/bsim/bluetooth/host/privacy/peripheral
1516
tests/bsim/bluetooth/tester/

0 commit comments

Comments
 (0)