tests: Bluetooth: Add BSim tests with BT_CTLR_SCAN_AUX_USE_CHAINS

Add overlay setting CONFIG_BT_CTLR_SCAN_AUX_USE_CHAINS for advx
and bis tests

Signed-off-by: Troels Nilsson <trnn@demant.com>
This commit is contained in:
Troels Nilsson 2024-10-22 12:58:57 +02:00 committed by Fabio Baltieri
commit e07076df87
5 changed files with 53 additions and 0 deletions

View file

@ -0,0 +1,2 @@
CONFIG_BT_CTLR_ADVANCED_FEATURES=y
CONFIG_BT_CTLR_SCAN_AUX_USE_CHAINS=y

View file

@ -0,0 +1,24 @@
#!/usr/bin/env bash
# Copyright 2018 Oticon A/S
# SPDX-License-Identifier: Apache-2.0
source ${ZEPHYR_BASE}/tests/bsim/sh_common.source
# Basic connection test: a central connects to a peripheral and expects a
# notification, using the split controller (ULL LLL)
simulation_id="basic_advx_scan_aux_use_chains"
verbosity_level=2
EXECUTE_TIMEOUT=120
cd ${BSIM_OUT_PATH}/bin
Execute ./bs_${BOARD_TS}_tests_bsim_bluetooth_ll_advx_prj_conf_overlay-scan_aux_use_chains_conf \
-v=${verbosity_level} -s=${simulation_id} -d=0 -testid=advx
Execute ./bs_${BOARD_TS}_tests_bsim_bluetooth_ll_advx_prj_conf_overlay-scan_aux_use_chains_conf \
-v=${verbosity_level} -s=${simulation_id} -d=1 -testid=scanx
Execute ./bs_2G4_phy_v1 -v=${verbosity_level} -s=${simulation_id} \
-D=2 -sim_length=60e6 $@
wait_for_background_jobs

View file

@ -0,0 +1,2 @@
CONFIG_BT_CTLR_ADVANCED_FEATURES=y
CONFIG_BT_CTLR_SCAN_AUX_USE_CHAINS=y

View file

@ -0,0 +1,23 @@
#!/usr/bin/env bash
# Copyright 2020 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0
source ${ZEPHYR_BASE}/tests/bsim/sh_common.source
# Basic ISO broadcast test: a broadcaster transmits a BIS and a receiver listens
# to the BIS.
simulation_id="broadcast_iso_scan_aux_use_chains"
verbosity_level=2
cd ${BSIM_OUT_PATH}/bin
Execute ./bs_${BOARD_TS}_tests_bsim_bluetooth_ll_bis_prj_conf_overlay-scan_aux_use_chains_conf \
-v=${verbosity_level} -s=${simulation_id} -d=0 -testid=receive
Execute ./bs_${BOARD_TS}_tests_bsim_bluetooth_ll_bis_prj_conf_overlay-scan_aux_use_chains_conf \
-v=${verbosity_level} -s=${simulation_id} -d=1 -testid=broadcast
Execute ./bs_2G4_phy_v1 -v=${verbosity_level} -s=${simulation_id} \
-D=2 -sim_length=30e6 $@
wait_for_background_jobs

View file

@ -15,6 +15,7 @@ ${ZEPHYR_BASE}/tests/bsim/bluetooth/ll/cis/compile.sh
app=tests/bsim/bluetooth/ll/advx compile
app=tests/bsim/bluetooth/ll/advx \
conf_overlay=overlay-ticker_expire_info.conf compile
app=tests/bsim/bluetooth/ll/advx conf_overlay=overlay-scan_aux_use_chains.conf compile
app=tests/bsim/bluetooth/ll/conn conf_file=prj_split.conf compile
app=tests/bsim/bluetooth/ll/conn conf_file=prj_split_1ms.conf compile
@ -26,6 +27,7 @@ app=tests/bsim/bluetooth/ll/conn conf_file=prj_split_single_timer.conf compile
app=tests/bsim/bluetooth/ll/bis compile
app=tests/bsim/bluetooth/ll/bis conf_overlay=overlay-ll_interface.conf compile
app=tests/bsim/bluetooth/ll/bis conf_overlay=overlay-ticker_expire_info.conf compile
app=tests/bsim/bluetooth/ll/bis conf_overlay=overlay-scan_aux_use_chains.conf compile
app=tests/bsim/bluetooth/ll/bis conf_file=prj_vs_dp.conf compile
app=tests/bsim/bluetooth/ll/bis conf_file=prj_past.conf compile