1#!/usr/bin/env bash
2#
3# Copyright (c) 2025 Nordic Semiconductor ASA
4#
5# SPDX-License-Identifier: Apache-2.0
6
7SIMULATION_ID="cap_handover_central"
8VERBOSITY_LEVEL=2
9NR_OF_DEVICES=3
10EXECUTE_TIMEOUT=240
11
12source ${ZEPHYR_BASE}/tests/bsim/sh_common.source
13
14cd ${BSIM_OUT_PATH}/bin
15
16printf "\n\n======== Running CAP handover unicast to broadcast =========\n\n"
17
18Execute ./bs_${BOARD_TS}_tests_bsim_bluetooth_audio_prj_conf \
19  -v=${VERBOSITY_LEVEL} -s=${SIMULATION_ID} -d=0 \
20  -testid=cap_handover_central \
21  -RealEncryption=1 -rs=23 -D=${NR_OF_DEVICES}
22
23Execute ./bs_${BOARD_TS}_tests_bsim_bluetooth_audio_prj_conf \
24  -v=${VERBOSITY_LEVEL} -s=${SIMULATION_ID} -d=1 \
25  -testid=cap_handover_peripheral_unicast_to_broadcast \
26  -RealEncryption=1 -rs=46 -D=${NR_OF_DEVICES}
27
28Execute ./bs_${BOARD_TS}_tests_bsim_bluetooth_audio_prj_conf \
29  -v=${VERBOSITY_LEVEL} -s=${SIMULATION_ID} -d=2 \
30  -testid=cap_handover_peripheral_unicast_to_broadcast \
31  -RealEncryption=1 -rs=69 -D=${NR_OF_DEVICES}
32
33Execute ./bs_2G4_phy_v1 -v=${VERBOSITY_LEVEL} -s=${SIMULATION_ID} \
34  -D=${NR_OF_DEVICES} -sim_length=120e6 $@
35
36wait_for_background_jobs
37