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:
parent
a7d381854e
commit
a7ea72cee0
2 changed files with 9 additions and 7 deletions
|
@ -3,11 +3,14 @@
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
set -eu
|
set -eu
|
||||||
bash_source_dir="$(realpath "$(dirname "${BASH_SOURCE[0]}")")"
|
|
||||||
|
|
||||||
bsim_bin="${BSIM_OUT_PATH}/bin"
|
: "${ZEPHYR_BASE:?ZEPHYR_BASE must be defined}"
|
||||||
BOARD="${BOARD:-nrf52_bsim}"
|
|
||||||
test_exe="${bsim_bin}/bs_${BOARD}_tests_bsim_bluetooth_host_id_settings_prj_conf"
|
|
||||||
|
|
||||||
west build -b nrf52_bsim -d build && \
|
WORK_DIR="${WORK_DIR:-${ZEPHYR_BASE}/bsim_out}"
|
||||||
cp -v build/zephyr/zephyr.exe "${test_exe}"
|
INCR_BUILD=1
|
||||||
|
|
||||||
|
source ${ZEPHYR_BASE}/tests/bsim/compile.source
|
||||||
|
|
||||||
|
app="$(guess_test_relpath)" compile
|
||||||
|
|
||||||
|
wait_for_background_jobs
|
||||||
|
|
|
@ -7,7 +7,6 @@ source ${ZEPHYR_BASE}/tests/bsim/sh_common.source
|
||||||
test_exe="bs_${BOARD}_tests_bsim_bluetooth_host_id_settings_prj_conf"
|
test_exe="bs_${BOARD}_tests_bsim_bluetooth_host_id_settings_prj_conf"
|
||||||
simulation_id="id_settings"
|
simulation_id="id_settings"
|
||||||
verbosity_level=2
|
verbosity_level=2
|
||||||
EXECUTE_TIMEOUT=30
|
|
||||||
|
|
||||||
cd ${BSIM_OUT_PATH}/bin
|
cd ${BSIM_OUT_PATH}/bin
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue