1#!/usr/bin/env bash
2#
3# Copyright (c) 2020 Nordic Semiconductor ASA
4#
5# SPDX-License-Identifier: Apache-2.0
6
7source ${ZEPHYR_BASE}/tests/bsim/sh_common.source
8
9SIMULATION_ID="mcs_mcc"
10VERBOSITY_LEVEL=2
11EXECUTE_TIMEOUT=20
12
13cd ${BSIM_OUT_PATH}/bin
14
15printf "\n\n======== Running MCS  and MCC test =========\n\n"
16
17Execute ./bs_${BOARD}_tests_bsim_bluetooth_audio_prj_conf \
18  -v=${VERBOSITY_LEVEL} -s=${SIMULATION_ID} -d=0 -testid=mcc -rs=46 -D=2
19
20Execute ./bs_${BOARD}_tests_bsim_bluetooth_audio_prj_conf \
21  -v=${VERBOSITY_LEVEL} -s=${SIMULATION_ID} -d=1 -testid=mcs -rs=23 -D=2
22
23# Simulation time should be larger than the WAIT_TIME in common.h
24Execute ./bs_2G4_phy_v1 -v=${VERBOSITY_LEVEL} -s=${SIMULATION_ID} \
25  -D=2 -sim_length=60e6 $@
26
27wait_for_background_jobs
28