tests/bsim bt host/id/settings: Test scripts cleanup

Use the common scripts to perform common functions
and do a cleanup.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
This commit is contained in:
Alberto Escolar Piedras 2024-03-21 14:09:38 +01:00 committed by Alberto Escolar
commit a7ea72cee0
2 changed files with 9 additions and 7 deletions

View file

@ -3,11 +3,14 @@
# SPDX-License-Identifier: Apache-2.0
set -eu
bash_source_dir="$(realpath "$(dirname "${BASH_SOURCE[0]}")")"
bsim_bin="${BSIM_OUT_PATH}/bin"
BOARD="${BOARD:-nrf52_bsim}"
test_exe="${bsim_bin}/bs_${BOARD}_tests_bsim_bluetooth_host_id_settings_prj_conf"
: "${ZEPHYR_BASE:?ZEPHYR_BASE must be defined}"
west build -b nrf52_bsim -d build && \
cp -v build/zephyr/zephyr.exe "${test_exe}"
WORK_DIR="${WORK_DIR:-${ZEPHYR_BASE}/bsim_out}"
INCR_BUILD=1
source ${ZEPHYR_BASE}/tests/bsim/compile.source
app="$(guess_test_relpath)" compile
wait_for_background_jobs

View file

@ -7,7 +7,6 @@ source ${ZEPHYR_BASE}/tests/bsim/sh_common.source
test_exe="bs_${BOARD}_tests_bsim_bluetooth_host_id_settings_prj_conf"
simulation_id="id_settings"
verbosity_level=2
EXECUTE_TIMEOUT=30
cd ${BSIM_OUT_PATH}/bin