This test is overly sensitive to the relative timing of the devices and/or their random number generation. Due to this the test failed with its current setup when chanding the random generation for the nrf54. Let's work around it by offsetting a bit one of the devices. This is a provisional workaround until the underlying issue is addressed. Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
37 lines
1.2 KiB
Bash
Executable File
37 lines
1.2 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
#
|
|
# Copyright (c) 2024 Nordic Semiconductor ASA
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
SIMULATION_ID="cap_broadcast_reception"
|
|
VERBOSITY_LEVEL=2
|
|
NR_OF_DEVICES=3
|
|
EXECUTE_TIMEOUT=180
|
|
|
|
source ${ZEPHYR_BASE}/tests/bsim/sh_common.source
|
|
|
|
cd ${BSIM_OUT_PATH}/bin
|
|
|
|
printf "\n\n======== Running CAP commander broadcast reception start and stop test =========\n\n"
|
|
|
|
Execute ./bs_${BOARD_TS}_tests_bsim_bluetooth_audio_prj_conf \
|
|
-v=${VERBOSITY_LEVEL} -s=${SIMULATION_ID} -d=0 -testid=cap_commander_broadcast_reception \
|
|
-RealEncryption=1 -rs=46 -D=${NR_OF_DEVICES}
|
|
|
|
Execute ./bs_${BOARD_TS}_tests_bsim_bluetooth_audio_prj_conf \
|
|
-v=${VERBOSITY_LEVEL} -s=${SIMULATION_ID} -d=1 -testid=broadcast_source \
|
|
-RealEncryption=1 -rs=23 -D=${NR_OF_DEVICES}
|
|
|
|
Execute ./bs_${BOARD_TS}_tests_bsim_bluetooth_audio_prj_conf \
|
|
-v=${VERBOSITY_LEVEL} -s=${SIMULATION_ID} -d=2 -testid=cap_acceptor_broadcast_reception \
|
|
-RealEncryption=1 -rs=69 -D=${NR_OF_DEVICES} -start_offset=7e3
|
|
|
|
# Simulation time should be larger than the WAIT_TIME in common.h
|
|
Execute ./bs_2G4_phy_v1 -v=${VERBOSITY_LEVEL} -s=${SIMULATION_ID} \
|
|
-D=${NR_OF_DEVICES} -sim_length=60e6 $@
|
|
|
|
|
|
|
|
wait_for_background_jobs
|