1#!/usr/bin/env bash
2# Copyright (c) 2023 Nordic Semiconductor
3# SPDX-License-Identifier: Apache-2.0
4
5set -eu
6
7source ${ZEPHYR_BASE}/tests/bsim/sh_common.source
8
9test_path=$(guess_test_long_name)
10dev_exe="bs_${BOARD_TS}_${test_path}_prj_conf"
11simulation_id="${test_path}"
12
13EXECUTE_TIMEOUT=120
14
15cd "${BSIM_OUT_PATH}/bin"
16
17args_all=(-s="${simulation_id}" -D=2)
18args_dev=(-v=2 -RealEncryption=1 -testid=the_test)
19
20Execute ./"${dev_exe}" "${args_all[@]}" "${args_dev[@]}" -d=1
21Execute ./bs_2G4_phy_v1 "${args_all[@]}" -v=6 -sim_length=200e6
22Execute ./"${dev_exe}" "${args_all[@]}" "${args_dev[@]}" -d=0
23
24wait_for_background_jobs
25