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:
Alberto Escolar Piedras 2024-09-17 14:03:25 +02:00 committed by Carles Cufí
commit 342e2988bb
7 changed files with 18 additions and 18 deletions

View file

@ -11,10 +11,10 @@ BIN_SUFFIX=${bin_suffix:-}
cd ${BSIM_OUT_PATH}/bin
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} \
-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} \
-D=2 -sim_length=60e6 $@

View file

@ -13,13 +13,13 @@ cd ${BSIM_OUT_PATH}/bin
if [ "${1}" != 'debug0' ]; then
Execute "./${test_exe}" \
-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
if [ "${1}" != 'debug1' ]; then
Execute "./${test_exe}" \
-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
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
gdb --args "./${test_exe}" \
-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
if [ "${1}" == 'debug1' ]; then
gdb --args "./${test_exe}" \
-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
wait_for_background_jobs

View file

@ -13,13 +13,13 @@ cd ${BSIM_OUT_PATH}/bin
if [ "${1}" != 'debug0' ]; then
Execute "./${test_exe}" \
-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
if [ "${1}" != 'debug1' ]; then
Execute "./${test_exe}" \
-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
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
gdb --args "./${test_exe}" \
-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
if [ "${1}" == 'debug1' ]; then
gdb --args "./${test_exe}" \
-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
wait_for_background_jobs

View file

@ -15,10 +15,10 @@ EXECUTE_TIMEOUT=120
cd ${BSIM_OUT_PATH}/bin
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 \
-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} \
-D=2 -sim_length=60e6 $@

View file

@ -10,10 +10,10 @@ verbosity_level=2
cd ${BSIM_OUT_PATH}/bin
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 \
-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} \
-D=2 -sim_length=60e6 $@

View file

@ -12,10 +12,10 @@ EXECUTE_TIMEOUT=120
cd ${BSIM_OUT_PATH}/bin
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 \
-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} \
-D=2 -sim_length=60e6 $@

View file

@ -12,10 +12,10 @@ verbosity_level=2
cd ${BSIM_OUT_PATH}/bin
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}" \
-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} \
-D=2 -sim_length=60e6