1#!/usr/bin/env bash 2# Copyright 2024 Demant A/S 3# SPDX-License-Identifier: Apache-2.0 4 5source ${ZEPHYR_BASE}/tests/bsim/sh_common.source 6 7# Battery service test: a central connects to a peripheral and expects a 8# indication/notification of BAS chars from peripheral 9simulation_id="battery_service_test" 10verbosity_level=2 11 12cd ${BSIM_OUT_PATH}/bin 13 14Execute ./bs_${BOARD_TS}_tests_bsim_bluetooth_samples_battery_service_prj_conf \ 15 -v=${verbosity_level} -s=${simulation_id} -d=0 \ 16 -testid=peripheral -rs=23 17 18Execute ./bs_${BOARD_TS}_tests_bsim_bluetooth_samples_battery_service_prj_conf\ 19 -v=${verbosity_level} -s=${simulation_id} -d=1 \ 20 -testid=central -rs=6 21 22Execute ./bs_${BOARD_TS}_tests_bsim_bluetooth_samples_battery_service_prj_conf\ 23 -v=${verbosity_level} -s=${simulation_id} -d=2 \ 24 -testid=central -rs=6 25 26Execute ./bs_2G4_phy_v1 -v=${verbosity_level} -s=${simulation_id} \ 27 -D=3 -sim_length=10e6 $@ 28 29wait_for_background_jobs 30