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