1#!/usr/bin/env bash 2# 3# Copyright (c) 2019 Bose Corporation 4# Copyright (c) 2021 Nordic Semiconductor ASA 5# 6# SPDX-License-Identifier: Apache-2.0 7 8source ${ZEPHYR_BASE}/tests/bsim/sh_common.source 9 10SIMULATION_ID="tbs_ccp" 11VERBOSITY_LEVEL=2 12 13cd ${BSIM_OUT_PATH}/bin 14 15printf "\n\n==== Running TBS Server Only (API) test ====n\n" 16 17Execute ./bs_${BOARD_TS}_tests_bsim_bluetooth_audio_prj_conf \ 18 -v=${VERBOSITY_LEVEL} -s=${SIMULATION_ID} -d=0 -testid=tbs_test_server_only -rs=23 -D=1 19 20# Simulation time should be larger than the WAIT_TIME in common.h 21Execute ./bs_2G4_phy_v1 -v=${VERBOSITY_LEVEL} -s=${SIMULATION_ID} \ 22 -D=1 -sim_length=60e6 $@ 23 24wait_for_background_jobs 25 26printf "\n\n==== Running TBS server & client tests ====n\n" 27 28Execute ./bs_${BOARD_TS}_tests_bsim_bluetooth_audio_prj_conf \ 29 -v=${VERBOSITY_LEVEL} -s=${SIMULATION_ID} -d=0 -testid=tbs -rs=23 -D=2 30 31Execute ./bs_${BOARD_TS}_tests_bsim_bluetooth_audio_prj_conf \ 32 -v=${VERBOSITY_LEVEL} -s=${SIMULATION_ID} -d=1 -testid=tbs_client -rs=6 -D=2 33 34# Simulation time should be larger than the WAIT_TIME in common.h 35Execute ./bs_2G4_phy_v1 -v=${VERBOSITY_LEVEL} -s=${SIMULATION_ID} \ 36 -D=2 -sim_length=60e6 $@ 37 38wait_for_background_jobs 39