2021-11-09 15:36:17 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
#
|
|
|
|
# Copyright (c) 2020 Nordic Semiconductor ASA
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2023-03-20 11:09:38 +01:00
|
|
|
source ${ZEPHYR_BASE}/tests/bsim/sh_common.source
|
|
|
|
|
2021-11-09 15:36:17 +01:00
|
|
|
SIMULATION_ID="mcs_mcc"
|
|
|
|
VERBOSITY_LEVEL=2
|
2024-06-17 16:23:12 +02:00
|
|
|
EXECUTE_TIMEOUT=180
|
2021-11-09 15:36:17 +01:00
|
|
|
|
|
|
|
cd ${BSIM_OUT_PATH}/bin
|
|
|
|
|
|
|
|
printf "\n\n======== Running MCS and MCC test =========\n\n"
|
|
|
|
|
2024-03-20 14:41:16 +01:00
|
|
|
Execute ./bs_${BOARD_TS}_tests_bsim_bluetooth_audio_prj_conf \
|
2024-08-28 15:00:25 +02:00
|
|
|
-v=${VERBOSITY_LEVEL} -s=${SIMULATION_ID} -d=0 -testid=mcc \
|
|
|
|
-RealEncryption=1 -rs=46 -D=2
|
2021-11-09 15:36:17 +01:00
|
|
|
|
2024-03-20 14:41:16 +01:00
|
|
|
Execute ./bs_${BOARD_TS}_tests_bsim_bluetooth_audio_prj_conf \
|
2024-08-28 15:00:25 +02:00
|
|
|
-v=${VERBOSITY_LEVEL} -s=${SIMULATION_ID} -d=1 -testid=mcs \
|
|
|
|
-RealEncryption=1 -rs=23 -D=2
|
2021-11-09 15:36:17 +01:00
|
|
|
|
2022-01-21 15:21:45 +01:00
|
|
|
# Simulation time should be larger than the WAIT_TIME in common.h
|
2021-11-09 15:36:17 +01:00
|
|
|
Execute ./bs_2G4_phy_v1 -v=${VERBOSITY_LEVEL} -s=${SIMULATION_ID} \
|
2022-01-21 15:21:45 +01:00
|
|
|
-D=2 -sim_length=60e6 $@
|
2021-11-09 15:36:17 +01:00
|
|
|
|
2023-03-20 11:09:38 +01:00
|
|
|
wait_for_background_jobs
|