1#!/usr/bin/env bash 2# 3# Copyright (c) 2020-2024 Nordic Semiconductor ASA 4# 5# SPDX-License-Identifier: Apache-2.0 6 7# Basic CSIP test. A set coordinator connects to multiple set members 8# lock thems, unlocks them and disconnects. 9 10source ${ZEPHYR_BASE}/tests/bsim/sh_common.source 11 12VERBOSITY_LEVEL=2 13EXECUTE_TIMEOUT=100 14 15cd ${BSIM_OUT_PATH}/bin 16 17SIMULATION_ID="csip" 18 19Execute ./bs_${BOARD_TS}_tests_bsim_bluetooth_audio_prj_conf \ 20 -v=${VERBOSITY_LEVEL} -s=${SIMULATION_ID} -d=0 -testid=csip_set_coordinator \ 21 -RealEncryption=1 -rs=1 -D=4 22 23Execute ./bs_${BOARD_TS}_tests_bsim_bluetooth_audio_prj_conf \ 24 -v=${VERBOSITY_LEVEL} -s=${SIMULATION_ID} -d=1 -testid=csip_set_member \ 25 -RealEncryption=1 -rs=2 -D=4 -argstest rank 1 26 27Execute ./bs_${BOARD_TS}_tests_bsim_bluetooth_audio_prj_conf \ 28 -v=${VERBOSITY_LEVEL} -s=${SIMULATION_ID} -d=2 -testid=csip_set_member \ 29 -RealEncryption=1 -rs=3 -D=4 -argstest rank 2 30 31Execute ./bs_${BOARD_TS}_tests_bsim_bluetooth_audio_prj_conf \ 32 -v=${VERBOSITY_LEVEL} -s=${SIMULATION_ID} -d=3 -testid=csip_set_member \ 33 -RealEncryption=1 -rs=4 -D=4 -argstest rank 3 34 35# Simulation time should be larger than the WAIT_TIME in common.h 36Execute ./bs_2G4_phy_v1 -v=${VERBOSITY_LEVEL} -s=${SIMULATION_ID} \ 37 -D=4 -sim_length=60e6 $@ 38 39wait_for_background_jobs 40