1#!/usr/bin/env bash 2# 3# Copyright (c) 2024 Nordic Semiconductor ASA 4# 5# SPDX-License-Identifier: Apache-2.0 6 7SIMULATION_ID="cap_broadcast_reception" 8VERBOSITY_LEVEL=2 9NR_OF_DEVICES=3 10EXECUTE_TIMEOUT=180 11 12source ${ZEPHYR_BASE}/tests/bsim/sh_common.source 13 14cd ${BSIM_OUT_PATH}/bin 15 16printf "\n\n======== Running CAP commander broadcast reception start and stop test =========\n\n" 17 18Execute ./bs_${BOARD_TS}_tests_bsim_bluetooth_audio_prj_conf \ 19 -v=${VERBOSITY_LEVEL} -s=${SIMULATION_ID} -d=0 -testid=cap_commander_broadcast_reception \ 20 -RealEncryption=1 -rs=46 -D=${NR_OF_DEVICES} 21 22Execute ./bs_${BOARD_TS}_tests_bsim_bluetooth_audio_prj_conf \ 23 -v=${VERBOSITY_LEVEL} -s=${SIMULATION_ID} -d=1 -testid=broadcast_source \ 24 -RealEncryption=1 -rs=23 -D=${NR_OF_DEVICES} 25 26Execute ./bs_${BOARD_TS}_tests_bsim_bluetooth_audio_prj_conf \ 27 -v=${VERBOSITY_LEVEL} -s=${SIMULATION_ID} -d=2 -testid=cap_acceptor_broadcast_reception \ 28 -RealEncryption=1 -rs=69 -D=${NR_OF_DEVICES} 29 30# Simulation time should be larger than the WAIT_TIME in common.h 31Execute ./bs_2G4_phy_v1 -v=${VERBOSITY_LEVEL} -s=${SIMULATION_ID} \ 32 -D=${NR_OF_DEVICES} -sim_length=60e6 $@ 33 34 35 36wait_for_background_jobs 37