tests/bsim/bluetooth/host/gatt: Enable RealEncryption
Let's run tests with security/privacy with the HW models acutually running the encryption, so in case of missaligned keys tests fail. Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
This commit is contained in:
parent
53adf2c617
commit
342e2988bb
7 changed files with 18 additions and 18 deletions
|
@ -11,10 +11,10 @@ BIN_SUFFIX=${bin_suffix:-}
|
||||||
cd ${BSIM_OUT_PATH}/bin
|
cd ${BSIM_OUT_PATH}/bin
|
||||||
|
|
||||||
Execute ./bs_${BOARD_TS}_tests_bsim_bluetooth_host_gatt_caching_prj_conf${BIN_SUFFIX} \
|
Execute ./bs_${BOARD_TS}_tests_bsim_bluetooth_host_gatt_caching_prj_conf${BIN_SUFFIX} \
|
||||||
-v=${verbosity_level} -s=${simulation_id} -d=0 -testid=${client_id}
|
-v=${verbosity_level} -s=${simulation_id} -d=0 -testid=${client_id} -RealEncryption=1
|
||||||
|
|
||||||
Execute ./bs_${BOARD_TS}_tests_bsim_bluetooth_host_gatt_caching_prj_conf${BIN_SUFFIX} \
|
Execute ./bs_${BOARD_TS}_tests_bsim_bluetooth_host_gatt_caching_prj_conf${BIN_SUFFIX} \
|
||||||
-v=${verbosity_level} -s=${simulation_id} -d=1 -testid=${server_id}
|
-v=${verbosity_level} -s=${simulation_id} -d=1 -testid=${server_id} -RealEncryption=1
|
||||||
|
|
||||||
Execute ./bs_2G4_phy_v1 -v=${verbosity_level} -s=${simulation_id} \
|
Execute ./bs_2G4_phy_v1 -v=${verbosity_level} -s=${simulation_id} \
|
||||||
-D=2 -sim_length=60e6 $@
|
-D=2 -sim_length=60e6 $@
|
||||||
|
|
|
@ -13,13 +13,13 @@ cd ${BSIM_OUT_PATH}/bin
|
||||||
if [ "${1}" != 'debug0' ]; then
|
if [ "${1}" != 'debug0' ]; then
|
||||||
Execute "./${test_exe}" \
|
Execute "./${test_exe}" \
|
||||||
-v=${verbosity_level} -s=${simulation_id} -d=0 -testid=central \
|
-v=${verbosity_level} -s=${simulation_id} -d=0 -testid=central \
|
||||||
-flash="${simulation_id}_client.log.bin" -flash_rm -argstest 10
|
-flash="${simulation_id}_client.log.bin" -flash_rm -RealEncryption=1 -argstest 10
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${1}" != 'debug1' ]; then
|
if [ "${1}" != 'debug1' ]; then
|
||||||
Execute "./${test_exe}" \
|
Execute "./${test_exe}" \
|
||||||
-v=${verbosity_level} -s=${simulation_id} -d=1 -testid=peripheral \
|
-v=${verbosity_level} -s=${simulation_id} -d=1 -testid=peripheral \
|
||||||
-flash="${simulation_id}_server.log.bin" -flash_rm -argstest 10
|
-flash="${simulation_id}_server.log.bin" -flash_rm -RealEncryption=1 -argstest 10
|
||||||
fi
|
fi
|
||||||
|
|
||||||
Execute ./bs_2G4_phy_v1 -v=${verbosity_level} -s=${simulation_id} \
|
Execute ./bs_2G4_phy_v1 -v=${verbosity_level} -s=${simulation_id} \
|
||||||
|
@ -28,13 +28,13 @@ Execute ./bs_2G4_phy_v1 -v=${verbosity_level} -s=${simulation_id} \
|
||||||
if [ "${1}" == 'debug0' ]; then
|
if [ "${1}" == 'debug0' ]; then
|
||||||
gdb --args "./${test_exe}" \
|
gdb --args "./${test_exe}" \
|
||||||
-v=${verbosity_level} -s=${simulation_id} -d=0 -testid=central \
|
-v=${verbosity_level} -s=${simulation_id} -d=0 -testid=central \
|
||||||
-flash="${simulation_id}_client.log.bin" -flash_rm -argstest 10
|
-flash="${simulation_id}_client.log.bin" -flash_rm -RealEncryption=1 -argstest 10
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${1}" == 'debug1' ]; then
|
if [ "${1}" == 'debug1' ]; then
|
||||||
gdb --args "./${test_exe}" \
|
gdb --args "./${test_exe}" \
|
||||||
-v=${verbosity_level} -s=${simulation_id} -d=1 -testid=peripheral \
|
-v=${verbosity_level} -s=${simulation_id} -d=1 -testid=peripheral \
|
||||||
-flash="${simulation_id}_server.log.bin" -flash_rm -argstest 10
|
-flash="${simulation_id}_server.log.bin" -flash_rm -RealEncryption=1 -argstest 10
|
||||||
fi
|
fi
|
||||||
|
|
||||||
wait_for_background_jobs
|
wait_for_background_jobs
|
||||||
|
|
|
@ -13,13 +13,13 @@ cd ${BSIM_OUT_PATH}/bin
|
||||||
if [ "${1}" != 'debug0' ]; then
|
if [ "${1}" != 'debug0' ]; then
|
||||||
Execute "./${test_exe}" \
|
Execute "./${test_exe}" \
|
||||||
-v=${verbosity_level} -s=${simulation_id} -d=0 -testid=central \
|
-v=${verbosity_level} -s=${simulation_id} -d=0 -testid=central \
|
||||||
-flash="${simulation_id}_client.log.bin" -flash_rm -argstest 10
|
-flash="${simulation_id}_client.log.bin" -flash_rm -RealEncryption=1 -argstest 10
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${1}" != 'debug1' ]; then
|
if [ "${1}" != 'debug1' ]; then
|
||||||
Execute "./${test_exe}" \
|
Execute "./${test_exe}" \
|
||||||
-v=${verbosity_level} -s=${simulation_id} -d=1 -testid=peripheral \
|
-v=${verbosity_level} -s=${simulation_id} -d=1 -testid=peripheral \
|
||||||
-flash="${simulation_id}_server.log.bin" -flash_rm -argstest 10
|
-flash="${simulation_id}_server.log.bin" -flash_rm -RealEncryption=1 -argstest 10
|
||||||
fi
|
fi
|
||||||
|
|
||||||
Execute ./bs_2G4_phy_v1 -v=${verbosity_level} -s=${simulation_id} \
|
Execute ./bs_2G4_phy_v1 -v=${verbosity_level} -s=${simulation_id} \
|
||||||
|
@ -28,13 +28,13 @@ Execute ./bs_2G4_phy_v1 -v=${verbosity_level} -s=${simulation_id} \
|
||||||
if [ "${1}" == 'debug0' ]; then
|
if [ "${1}" == 'debug0' ]; then
|
||||||
gdb --args "./${test_exe}" \
|
gdb --args "./${test_exe}" \
|
||||||
-v=${verbosity_level} -s=${simulation_id} -d=0 -testid=central \
|
-v=${verbosity_level} -s=${simulation_id} -d=0 -testid=central \
|
||||||
-flash="${simulation_id}_client.log.bin" -flash_rm -argstest 10
|
-flash="${simulation_id}_client.log.bin" -flash_rm -RealEncryption=1 -argstest 10
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${1}" == 'debug1' ]; then
|
if [ "${1}" == 'debug1' ]; then
|
||||||
gdb --args "./${test_exe}" \
|
gdb --args "./${test_exe}" \
|
||||||
-v=${verbosity_level} -s=${simulation_id} -d=1 -testid=peripheral \
|
-v=${verbosity_level} -s=${simulation_id} -d=1 -testid=peripheral \
|
||||||
-flash="${simulation_id}_server.log.bin" -flash_rm -argstest 10
|
-flash="${simulation_id}_server.log.bin" -flash_rm -RealEncryption=1 -argstest 10
|
||||||
fi
|
fi
|
||||||
|
|
||||||
wait_for_background_jobs
|
wait_for_background_jobs
|
||||||
|
|
|
@ -15,10 +15,10 @@ EXECUTE_TIMEOUT=120
|
||||||
cd ${BSIM_OUT_PATH}/bin
|
cd ${BSIM_OUT_PATH}/bin
|
||||||
|
|
||||||
Execute ./bs_${BOARD_TS}_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
|
-v=${verbosity_level} -s=${simulation_id} -d=0 -testid=gatt_client -RealEncryption=1
|
||||||
|
|
||||||
Execute ./bs_${BOARD_TS}_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
|
-v=${verbosity_level} -s=${simulation_id} -d=1 -testid=gatt_server -RealEncryption=1
|
||||||
|
|
||||||
Execute ./bs_2G4_phy_v1 -v=${verbosity_level} -s=${simulation_id} \
|
Execute ./bs_2G4_phy_v1 -v=${verbosity_level} -s=${simulation_id} \
|
||||||
-D=2 -sim_length=60e6 $@
|
-D=2 -sim_length=60e6 $@
|
||||||
|
|
|
@ -10,10 +10,10 @@ verbosity_level=2
|
||||||
cd ${BSIM_OUT_PATH}/bin
|
cd ${BSIM_OUT_PATH}/bin
|
||||||
|
|
||||||
Execute ./bs_${BOARD_TS}_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}
|
-v=${verbosity_level} -s=${simulation_id} -d=0 -testid=${client_id} -RealEncryption=1
|
||||||
|
|
||||||
Execute ./bs_${BOARD_TS}_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}
|
-v=${verbosity_level} -s=${simulation_id} -d=1 -testid=${server_id} -RealEncryption=1
|
||||||
|
|
||||||
Execute ./bs_2G4_phy_v1 -v=${verbosity_level} -s=${simulation_id} \
|
Execute ./bs_2G4_phy_v1 -v=${verbosity_level} -s=${simulation_id} \
|
||||||
-D=2 -sim_length=60e6 $@
|
-D=2 -sim_length=60e6 $@
|
||||||
|
|
|
@ -12,10 +12,10 @@ EXECUTE_TIMEOUT=120
|
||||||
cd ${BSIM_OUT_PATH}/bin
|
cd ${BSIM_OUT_PATH}/bin
|
||||||
|
|
||||||
Execute ./bs_${BOARD_TS}_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
|
-v=${verbosity_level} -s=${simulation_id} -d=0 -testid=gatt_client -RealEncryption=1
|
||||||
|
|
||||||
Execute ./bs_${BOARD_TS}_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
|
-v=${verbosity_level} -s=${simulation_id} -d=1 -testid=gatt_server -RealEncryption=1
|
||||||
|
|
||||||
Execute ./bs_2G4_phy_v1 -v=${verbosity_level} -s=${simulation_id} \
|
Execute ./bs_2G4_phy_v1 -v=${verbosity_level} -s=${simulation_id} \
|
||||||
-D=2 -sim_length=60e6 $@
|
-D=2 -sim_length=60e6 $@
|
||||||
|
|
|
@ -12,10 +12,10 @@ verbosity_level=2
|
||||||
cd ${BSIM_OUT_PATH}/bin
|
cd ${BSIM_OUT_PATH}/bin
|
||||||
|
|
||||||
Execute "./${test_exe}" \
|
Execute "./${test_exe}" \
|
||||||
-v=${verbosity_level} -s=${simulation_id} -d=0 -testid=central
|
-v=${verbosity_level} -s=${simulation_id} -d=0 -testid=central -RealEncryption=1
|
||||||
|
|
||||||
Execute "./${test_exe}" \
|
Execute "./${test_exe}" \
|
||||||
-v=${verbosity_level} -s=${simulation_id} -d=1 -testid=peripheral
|
-v=${verbosity_level} -s=${simulation_id} -d=1 -testid=peripheral -RealEncryption=1
|
||||||
|
|
||||||
Execute ./bs_2G4_phy_v1 -v=${verbosity_level} -s=${simulation_id} \
|
Execute ./bs_2G4_phy_v1 -v=${verbosity_level} -s=${simulation_id} \
|
||||||
-D=2 -sim_length=60e6
|
-D=2 -sim_length=60e6
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue