1#!/usr/bin/env bash
2# Copyright 2024 Nordic Semiconductor ASA
3# SPDX-License-Identifier: Apache-2.0
4
5source ${ZEPHYR_BASE}/tests/bsim/sh_common.source
6
7test_name="$(guess_test_long_name)"
8test_exe="${BSIM_OUT_PATH}/bin/bs_${BOARD_TS}_${test_name}_prj_conf"
9
10simulation_id=${test_name}
11verbosity_level=2
12zephyr_log_level=3
13
14cd ${BSIM_OUT_PATH}/bin
15
16Execute ./bs_2G4_phy_v1 -v=${verbosity_level} -s="${simulation_id}" \
17  -D=2 -sim_length=100e6
18
19Execute "${test_exe}" \
20    -v=${verbosity_level} -s="${simulation_id}" -d=1 \
21    -testid=peer -argstest log_level ${zephyr_log_level}
22
23Execute "${test_exe}" \
24    -v=${verbosity_level} -s="${simulation_id}" -d=0 \
25    -testid=dut -argstest log_level ${zephyr_log_level}
26
27wait_for_background_jobs
28