tests/bsim: All scripts: Use boardtarget string instead of BOARD

In all scripts, where we were using the BOARD variable
let's use BOARD_TS which is the full BOARD target string
with "/" replaced with "_"
This is neccessary to support hwmv2 board names

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
This commit is contained in:
Alberto Escolar Piedras 2024-03-20 14:41:16 +01:00 committed by Alberto Escolar
commit fd8857539d
167 changed files with 390 additions and 382 deletions

View file

@ -10,10 +10,10 @@ EXECUTE_TIMEOUT=120
cd ${BSIM_OUT_PATH}/bin
Execute ./bs_${BOARD}_tests_bsim_bluetooth_host_gatt_authorization_prj_conf \
Execute ./bs_${BOARD_TS}_tests_bsim_bluetooth_host_gatt_authorization_prj_conf \
-v=${verbosity_level} -s=${simulation_id} -d=0 -testid=gatt_client
Execute ./bs_${BOARD}_tests_bsim_bluetooth_host_gatt_authorization_prj_conf \
Execute ./bs_${BOARD_TS}_tests_bsim_bluetooth_host_gatt_authorization_prj_conf \
-v=${verbosity_level} -s=${simulation_id} -d=1 -testid=gatt_server
Execute ./bs_2G4_phy_v1 -v=${verbosity_level} -s=${simulation_id} \

View file

@ -9,10 +9,10 @@ EXECUTE_TIMEOUT=120
cd ${BSIM_OUT_PATH}/bin
Execute ./bs_${BOARD}_tests_bsim_bluetooth_host_gatt_caching_prj_conf \
Execute ./bs_${BOARD_TS}_tests_bsim_bluetooth_host_gatt_caching_prj_conf \
-v=${verbosity_level} -s=${simulation_id} -d=0 -testid=${client_id}
Execute ./bs_${BOARD}_tests_bsim_bluetooth_host_gatt_caching_prj_conf \
Execute ./bs_${BOARD_TS}_tests_bsim_bluetooth_host_gatt_caching_prj_conf \
-v=${verbosity_level} -s=${simulation_id} -d=1 -testid=${server_id}
Execute ./bs_2G4_phy_v1 -v=${verbosity_level} -s=${simulation_id} \

View file

@ -4,7 +4,7 @@
source ${ZEPHYR_BASE}/tests/bsim/sh_common.source
test_exe="bs_${BOARD}_$(guess_test_long_name)_prj_conf"
test_exe="bs_${BOARD_TS}_$(guess_test_long_name)_prj_conf"
simulation_id="ccc_store"
verbosity_level=2

View file

@ -4,7 +4,7 @@
source ${ZEPHYR_BASE}/tests/bsim/sh_common.source
test_exe="bs_${BOARD}_$(guess_test_long_name)_prj_2_conf"
test_exe="bs_${BOARD_TS}_$(guess_test_long_name)_prj_2_conf"
simulation_id="ccc_store_2"
verbosity_level=2

View file

@ -14,10 +14,10 @@ EXECUTE_TIMEOUT=120
cd ${BSIM_OUT_PATH}/bin
Execute ./bs_${BOARD}_tests_bsim_bluetooth_host_gatt_general_prj_conf \
Execute ./bs_${BOARD_TS}_tests_bsim_bluetooth_host_gatt_general_prj_conf \
-v=${verbosity_level} -s=${simulation_id} -d=0 -testid=gatt_client
Execute ./bs_${BOARD}_tests_bsim_bluetooth_host_gatt_general_prj_conf \
Execute ./bs_${BOARD_TS}_tests_bsim_bluetooth_host_gatt_general_prj_conf \
-v=${verbosity_level} -s=${simulation_id} -d=1 -testid=gatt_server
Execute ./bs_2G4_phy_v1 -v=${verbosity_level} -s=${simulation_id} \

View file

@ -10,10 +10,10 @@ EXECUTE_TIMEOUT=30
cd ${BSIM_OUT_PATH}/bin
Execute ./bs_${BOARD}_tests_bsim_bluetooth_host_gatt_notify_prj_conf \
Execute ./bs_${BOARD_TS}_tests_bsim_bluetooth_host_gatt_notify_prj_conf \
-v=${verbosity_level} -s=${simulation_id} -d=0 -testid=${client_id}
Execute ./bs_${BOARD}_tests_bsim_bluetooth_host_gatt_notify_prj_conf \
Execute ./bs_${BOARD_TS}_tests_bsim_bluetooth_host_gatt_notify_prj_conf \
-v=${verbosity_level} -s=${simulation_id} -d=1 -testid=${server_id}
Execute ./bs_2G4_phy_v1 -v=${verbosity_level} -s=${simulation_id} \

View file

@ -26,11 +26,11 @@ if [[ $2 == "debug" ]]; then
fi
if [[ $1 == "client" ]]; then
$GDB_P ./bs_${BOARD}_tests_bsim_bluetooth_host_gatt_notify_multiple_prj_conf \
$GDB_P ./bs_${BOARD_TS}_tests_bsim_bluetooth_host_gatt_notify_multiple_prj_conf \
-v=${verbosity_level} -s=${simulation_id} -d=0 -testid=gatt_client
elif [[ $1 == "server" ]]; then
$GDB_P ./bs_${BOARD}_tests_bsim_bluetooth_host_gatt_notify_multiple_prj_conf \
$GDB_P ./bs_${BOARD_TS}_tests_bsim_bluetooth_host_gatt_notify_multiple_prj_conf \
-v=${verbosity_level} -s=${simulation_id} -d=1 -testid=gatt_server
else

View file

@ -11,10 +11,10 @@ EXECUTE_TIMEOUT=120
cd ${BSIM_OUT_PATH}/bin
Execute ./bs_${BOARD}_tests_bsim_bluetooth_host_gatt_notify_multiple_prj_conf \
Execute ./bs_${BOARD_TS}_tests_bsim_bluetooth_host_gatt_notify_multiple_prj_conf \
-v=${verbosity_level} -s=${simulation_id} -d=0 -testid=gatt_client
Execute ./bs_${BOARD}_tests_bsim_bluetooth_host_gatt_notify_multiple_prj_conf \
Execute ./bs_${BOARD_TS}_tests_bsim_bluetooth_host_gatt_notify_multiple_prj_conf \
-v=${verbosity_level} -s=${simulation_id} -d=1 -testid=gatt_server
Execute ./bs_2G4_phy_v1 -v=${verbosity_level} -s=${simulation_id} \

View file

@ -5,7 +5,7 @@
source ${ZEPHYR_BASE}/tests/bsim/sh_common.source
test_name='sc_indicate'
test_exe="bs_${BOARD}_tests_bsim_bluetooth_host_gatt_${test_name}_prj_conf"
test_exe="bs_${BOARD_TS}_tests_bsim_bluetooth_host_gatt_${test_name}_prj_conf"
simulation_id="${test_name}"
verbosity_level=2
EXECUTE_TIMEOUT=30

View file

@ -8,7 +8,7 @@ source ${ZEPHYR_BASE}/tests/bsim/sh_common.source
simulation_id="settings"
verbosity_level=2
EXECUTE_TIMEOUT=120
test_exe="./bs_${BOARD}_$(guess_test_long_name)_prj_conf"
test_exe="./bs_${BOARD_TS}_$(guess_test_long_name)_prj_conf"
cd ${BSIM_OUT_PATH}/bin

View file

@ -8,7 +8,7 @@ source ${ZEPHYR_BASE}/tests/bsim/sh_common.source
simulation_id="settings_2"
verbosity_level=2
EXECUTE_TIMEOUT=120
test_2_exe="./bs_${BOARD}_$(guess_test_long_name)_prj_2_conf"
test_2_exe="./bs_${BOARD_TS}_$(guess_test_long_name)_prj_2_conf"
cd ${BSIM_OUT_PATH}/bin