1#!/usr/bin/env bash
2# Copyright 2023 Nordic Semiconductor ASA
3# SPDX-License-Identifier: Apache-2.0
4
5source ${ZEPHYR_BASE}/tests/bsim/sh_common.source
6
7test_exe="bs_${BOARD_TS}_tests_bsim_bluetooth_host_id_settings_prj_conf"
8simulation_id="id_settings"
9verbosity_level=2
10
11cd ${BSIM_OUT_PATH}/bin
12
13Execute "./${test_exe}" \
14  -v=${verbosity_level} -s="${simulation_id}_1" -d=0 -testid=dut1 \
15  -flash="${simulation_id}.log.bin"
16
17Execute ./bs_2G4_phy_v1 -v=${verbosity_level} -s="${simulation_id}_1" \
18  -D=1 -sim_length=60e6
19
20wait_for_background_jobs
21
22Execute "./${test_exe}" \
23  -v=${verbosity_level} -s="${simulation_id}_2" -d=0 -testid=dut2 \
24  -flash="${simulation_id}.log.bin" -flash_rm
25
26Execute ./bs_2G4_phy_v1 -v=${verbosity_level} -s="${simulation_id}_2" \
27  -D=1 -sim_length=60e6
28
29wait_for_background_jobs
30