1#!/usr/bin/env bash
2# Copyright 2025 Nordic Semiconductor ASA
3# SPDX-License-Identifier: Apache-2.0
4set -eu
5
6source ${ZEPHYR_BASE}/tests/bsim/sh_common.source
7
8test_name="$(guess_test_long_name)"
9simulation_id=${test_name}
10
11verbosity_level=2
12
13EXECUTE_TIMEOUT=120
14
15SIM_LEN_US=$((2 * 1000 * 1000))
16
17test_exe="${BSIM_OUT_PATH}/bin/bs_${BOARD_TS}_${test_name}_prj_conf"
18
19cd ${BSIM_OUT_PATH}/bin
20
21Execute ./bs_2G4_phy_v1 -v=${verbosity_level} -s=${simulation_id} -D=2 -sim_length=${SIM_LEN_US} $@
22
23Execute "${test_exe}" -v=${verbosity_level} -s=${simulation_id} -d=0 -rs=420 -testid=server \
24    -RealEncryption=1
25Execute "${test_exe}" -v=${verbosity_level} -s=${simulation_id} -d=1 -rs=69  -testid=client \
26    -RealEncryption=1
27
28wait_for_background_jobs
29