tests: bsim: bluetooth: host: hfc_multilink: Run test on nRF5340
Run test on nRF5340 to check if recombination works with HCI IPC driver. Signed-off-by: Pavel Vasilyev <pavel.vasilyev@nordicsemi.no>
This commit is contained in:
parent
82a7110406
commit
f46fd075d4
@ -0,0 +1,14 @@
|
||||
# Copyright 2025 Nordic Semiconductor ASA
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
source "share/sysbuild/Kconfig"
|
||||
|
||||
config NET_CORE_BOARD
|
||||
string
|
||||
default "nrf5340bsim/nrf5340/cpunet" if $(BOARD_TARGET_STRING) = "NRF5340BSIM_NRF5340_CPUAPP"
|
||||
|
||||
config NATIVE_SIMULATOR_PRIMARY_MCU_INDEX
|
||||
int
|
||||
# Let's pass the test arguments to the application MCU test
|
||||
# otherwise by default they would have gone to the net core.
|
||||
default 0 if $(BOARD_TARGET_STRING) = "NRF5340BSIM_NRF5340_CPUAPP"
|
||||
@ -0,0 +1,24 @@
|
||||
CONFIG_IPC_SERVICE=y
|
||||
CONFIG_MBOX=y
|
||||
|
||||
CONFIG_ISR_STACK_SIZE=1024
|
||||
CONFIG_IDLE_STACK_SIZE=256
|
||||
CONFIG_MAIN_STACK_SIZE=512
|
||||
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=512
|
||||
CONFIG_IPC_SERVICE_BACKEND_RPMSG_WQ_STACK_SIZE=512
|
||||
CONFIG_HEAP_MEM_POOL_SIZE=8192
|
||||
CONFIG_CBPRINTF_REDUCED_INTEGRAL=y
|
||||
|
||||
CONFIG_ISR_TABLES_LOCAL_DECLARATION=y
|
||||
CONFIG_LTO=y
|
||||
|
||||
CONFIG_BT=y
|
||||
CONFIG_BT_HCI_RAW=y
|
||||
CONFIG_BT_MAX_CONN=3
|
||||
|
||||
# Host features
|
||||
CONFIG_BT_EXT_ADV=y
|
||||
|
||||
# Controller
|
||||
CONFIG_BT_LL_SW_SPLIT=y
|
||||
CONFIG_BT_CTLR_ASSERT_HANDLER=y
|
||||
@ -0,0 +1,20 @@
|
||||
# Copyright (c) 2025 Nordic Semiconductor ASA
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if(NOT("${SB_CONFIG_NET_CORE_BOARD}" STREQUAL ""))
|
||||
set(NET_APP hci_ipc)
|
||||
set(NET_APP_SRC_DIR ${ZEPHYR_BASE}/samples/bluetooth/${NET_APP})
|
||||
|
||||
ExternalZephyrProject_Add(
|
||||
APPLICATION ${NET_APP}
|
||||
SOURCE_DIR ${NET_APP_SRC_DIR}
|
||||
BOARD ${SB_CONFIG_NET_CORE_BOARD}
|
||||
)
|
||||
|
||||
set(${NET_APP}_CONF_FILE ${APP_DIR}/nrf5340_cpunet-bt_ll_sw_split.conf CACHE INTERNAL "")
|
||||
|
||||
native_simulator_set_primary_mcu_index(${DEFAULT_IMAGE} ${NET_APP})
|
||||
native_simulator_set_child_images(${DEFAULT_IMAGE} ${NET_APP})
|
||||
endif()
|
||||
|
||||
native_simulator_set_final_executable(${DEFAULT_IMAGE})
|
||||
@ -1,10 +1,12 @@
|
||||
tests:
|
||||
bluetooth.host.misc.hfc_multilink.dut:
|
||||
build_only: true
|
||||
sysbuild: true
|
||||
tags:
|
||||
- bluetooth
|
||||
platform_allow:
|
||||
- nrf52_bsim/native
|
||||
- nrf5340bsim/nrf5340/cpuapp
|
||||
harness: bsim
|
||||
harness_config:
|
||||
bsim_exe_name: tests_bsim_bluetooth_host_misc_hfc_multilink_dut_prj_conf
|
||||
|
||||
@ -0,0 +1,14 @@
|
||||
# Copyright 2025 Nordic Semiconductor ASA
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
source "share/sysbuild/Kconfig"
|
||||
|
||||
config NET_CORE_BOARD
|
||||
string
|
||||
default "nrf5340bsim/nrf5340/cpunet" if $(BOARD_TARGET_STRING) = "NRF5340BSIM_NRF5340_CPUAPP"
|
||||
|
||||
config NATIVE_SIMULATOR_PRIMARY_MCU_INDEX
|
||||
int
|
||||
# Let's pass the test arguments to the application MCU test
|
||||
# otherwise by default they would have gone to the net core.
|
||||
default 0 if $(BOARD_TARGET_STRING) = "NRF5340BSIM_NRF5340_CPUAPP"
|
||||
@ -0,0 +1,28 @@
|
||||
CONFIG_IPC_SERVICE=y
|
||||
CONFIG_MBOX=y
|
||||
|
||||
CONFIG_ISR_STACK_SIZE=1024
|
||||
CONFIG_IDLE_STACK_SIZE=256
|
||||
CONFIG_MAIN_STACK_SIZE=512
|
||||
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=512
|
||||
CONFIG_IPC_SERVICE_BACKEND_RPMSG_WQ_STACK_SIZE=512
|
||||
CONFIG_HEAP_MEM_POOL_SIZE=8192
|
||||
CONFIG_CBPRINTF_REDUCED_INTEGRAL=y
|
||||
|
||||
CONFIG_ISR_TABLES_LOCAL_DECLARATION=y
|
||||
CONFIG_LTO=y
|
||||
|
||||
CONFIG_BT=y
|
||||
CONFIG_BT_HCI_RAW=y
|
||||
CONFIG_BT_MAX_CONN=1
|
||||
|
||||
# Host features
|
||||
CONFIG_BT_EXT_ADV=y
|
||||
|
||||
# Controller
|
||||
CONFIG_BT_LL_SW_SPLIT=y
|
||||
CONFIG_BT_CTLR_ASSERT_HANDLER=y
|
||||
|
||||
CONFIG_BT_BUF_ACL_RX_SIZE=255
|
||||
CONFIG_BT_BUF_CMD_TX_SIZE=255
|
||||
CONFIG_BT_BUF_EVT_DISCARDABLE_SIZE=255
|
||||
@ -0,0 +1,20 @@
|
||||
# Copyright (c) 2025 Nordic Semiconductor ASA
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if(NOT("${SB_CONFIG_NET_CORE_BOARD}" STREQUAL ""))
|
||||
set(NET_APP hci_ipc)
|
||||
set(NET_APP_SRC_DIR ${ZEPHYR_BASE}/samples/bluetooth/${NET_APP})
|
||||
|
||||
ExternalZephyrProject_Add(
|
||||
APPLICATION ${NET_APP}
|
||||
SOURCE_DIR ${NET_APP_SRC_DIR}
|
||||
BOARD ${SB_CONFIG_NET_CORE_BOARD}
|
||||
)
|
||||
|
||||
set(${NET_APP}_CONF_FILE ${APP_DIR}/nrf5340_cpunet-bt_ll_sw_split.conf CACHE INTERNAL "")
|
||||
|
||||
native_simulator_set_primary_mcu_index(${DEFAULT_IMAGE} ${NET_APP})
|
||||
native_simulator_set_child_images(${DEFAULT_IMAGE} ${NET_APP})
|
||||
endif()
|
||||
|
||||
native_simulator_set_final_executable(${DEFAULT_IMAGE})
|
||||
@ -1,10 +1,12 @@
|
||||
tests:
|
||||
bluetooth.host.misc.hfc_multilink.tester:
|
||||
build_only: true
|
||||
sysbuild: true
|
||||
tags:
|
||||
- bluetooth
|
||||
platform_allow:
|
||||
- nrf52_bsim/native
|
||||
- nrf5340bsim/nrf5340/cpuapp
|
||||
harness: bsim
|
||||
harness_config:
|
||||
bsim_exe_name: tests_bsim_bluetooth_host_misc_hfc_multilink_tester_prj_conf
|
||||
|
||||
@ -11,4 +11,5 @@ tests/bsim/bluetooth/audio_samples/
|
||||
tests/bsim/bluetooth/audio/
|
||||
tests/bsim/bluetooth/host/gatt/notify_stress/
|
||||
tests/bsim/bluetooth/host/misc/hfc/
|
||||
tests/bsim/bluetooth/host/misc/hfc_multilink/
|
||||
tests/bsim/bluetooth/tester/
|
||||
|
||||
Loading…
Reference in New Issue
Block a user