1#!/usr/bin/env bash 2# 3# Copyright (c) 2020-2022 Nordic Semiconductor ASA 4# 5# SPDX-License-Identifier: Apache-2.0 6 7source ${ZEPHYR_BASE}/tests/bsim/sh_common.source 8 9SIMULATION_ID="micp" 10VERBOSITY_LEVEL=2 11 12cd ${BSIM_OUT_PATH}/bin 13 14printf "\n\n==== Running MICP Microphone Device Only (API) test ====n\n" 15 16Execute ./bs_${BOARD_TS}_tests_bsim_bluetooth_audio_prj_conf \ 17 -v=${VERBOSITY_LEVEL} -s=${SIMULATION_ID} -d=0 -testid=micp_mic_dev_only -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 MICP Microphone Device and MICP Microphone Controller test ====n\n" 26 27Execute ./bs_${BOARD_TS}_tests_bsim_bluetooth_audio_prj_conf \ 28 -v=${VERBOSITY_LEVEL} -s=${SIMULATION_ID} -d=0 -testid=micp_mic_dev -rs=23 -D=2 29 30Execute ./bs_${BOARD_TS}_tests_bsim_bluetooth_audio_prj_conf \ 31 -v=${VERBOSITY_LEVEL} -s=${SIMULATION_ID} -d=1 -testid=micp_mic_ctlr -rs=46 -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