tests/bsim/bluetooth/host/security: Enable RealEncryption
Let's run tests with security/privacy with the HW models acutually running the encryptions, 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
342e2988bb
commit
9182a7e8c4
3 changed files with 18 additions and 16 deletions
|
@ -14,19 +14,19 @@ 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
|
||||
-flash="${simulation_id}_client.log.bin" -flash_rm -RealEncryption=1
|
||||
fi
|
||||
|
||||
if [ "${1}" != 'debug1' ]; then
|
||||
Execute "./${test_exe}" \
|
||||
-v=${verbosity_level} -s=${simulation_id} -d=1 -testid=bad_central \
|
||||
-flash="${simulation_id}_bad_client.log.bin" -flash_rm
|
||||
-flash="${simulation_id}_bad_client.log.bin" -flash_rm -RealEncryption=1
|
||||
fi
|
||||
|
||||
if [ "${1}" != 'debug2' ]; then
|
||||
Execute "./${test_exe}" \
|
||||
-v=${verbosity_level} -s=${simulation_id} -d=2 -testid=peripheral \
|
||||
-flash="${simulation_id}_server.log.bin" -flash_rm
|
||||
-flash="${simulation_id}_server.log.bin" -flash_rm -RealEncryption=1
|
||||
fi
|
||||
|
||||
Execute ./bs_2G4_phy_v1 -v=${verbosity_level} -s=${simulation_id} \
|
||||
|
@ -35,19 +35,19 @@ 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
|
||||
-flash="${simulation_id}_client.log.bin" -flash_rm -RealEncryption=1
|
||||
fi
|
||||
|
||||
if [ "${1}" == 'debug1' ]; then
|
||||
gdb --args "./${test_exe}" \
|
||||
-v=${verbosity_level} -s=${simulation_id} -d=1 -testid=bad_central \
|
||||
-flash="${simulation_id}_bad_client.log.bin" -flash_rm
|
||||
-flash="${simulation_id}_bad_client.log.bin" -flash_rm -RealEncryption=1
|
||||
fi
|
||||
|
||||
if [ "${1}" == 'debug2' ]; then
|
||||
gdb --args "./${test_exe}" \
|
||||
-v=${verbosity_level} -s=${simulation_id} -d=2 -testid=peripheral \
|
||||
-flash="${simulation_id}_server.log.bin" -flash_rm
|
||||
-flash="${simulation_id}_server.log.bin" -flash_rm -RealEncryption=1
|
||||
fi
|
||||
|
||||
wait_for_background_jobs
|
||||
|
|
|
@ -14,19 +14,19 @@ 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
|
||||
-flash="${simulation_id}_client.log.bin" -flash_rm -RealEncryption=1
|
||||
fi
|
||||
|
||||
if [ "${1}" != 'debug1' ]; then
|
||||
Execute "./${test_exe}" \
|
||||
-v=${verbosity_level} -s=${simulation_id} -d=1 -testid=bad_central \
|
||||
-flash="${simulation_id}_bad_client.log.bin" -flash_rm
|
||||
-flash="${simulation_id}_bad_client.log.bin" -flash_rm -RealEncryption=1
|
||||
fi
|
||||
|
||||
if [ "${1}" != 'debug2' ]; then
|
||||
Execute "./${test_exe}" \
|
||||
-v=${verbosity_level} -s=${simulation_id} -d=2 -testid=peripheral \
|
||||
-flash="${simulation_id}_server.log.bin" -flash_rm
|
||||
-flash="${simulation_id}_server.log.bin" -flash_rm -RealEncryption=1
|
||||
fi
|
||||
|
||||
Execute ./bs_2G4_phy_v1 -v=${verbosity_level} -s=${simulation_id} \
|
||||
|
@ -35,19 +35,19 @@ 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
|
||||
-flash="${simulation_id}_client.log.bin" -flash_rm -RealEncryption=1
|
||||
fi
|
||||
|
||||
if [ "${1}" == 'debug1' ]; then
|
||||
gdb --args "./${test_exe}" \
|
||||
-v=${verbosity_level} -s=${simulation_id} -d=1 -testid=bad_central \
|
||||
-flash="${simulation_id}_bad_client.log.bin" -flash_rm
|
||||
-flash="${simulation_id}_bad_client.log.bin" -flash_rm -RealEncryption=1
|
||||
fi
|
||||
|
||||
if [ "${1}" == 'debug2' ]; then
|
||||
gdb --args "./${test_exe}" \
|
||||
-v=${verbosity_level} -s=${simulation_id} -d=2 -testid=peripheral \
|
||||
-flash="${simulation_id}_server.log.bin" -flash_rm
|
||||
-flash="${simulation_id}_server.log.bin" -flash_rm -RealEncryption=1
|
||||
fi
|
||||
|
||||
wait_for_background_jobs
|
||||
|
|
|
@ -12,10 +12,11 @@ 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_disconnect_in_sec_cb
|
||||
-v=${verbosity_level} -s=${simulation_id} -d=1 -testid=peripheral_disconnect_in_sec_cb \
|
||||
-RealEncryption=1
|
||||
|
||||
Execute ./bs_2G4_phy_v1 -v=${verbosity_level} -s=${simulation_id} \
|
||||
-D=2 -sim_length=60e6
|
||||
|
@ -23,10 +24,11 @@ Execute ./bs_2G4_phy_v1 -v=${verbosity_level} -s=${simulation_id} \
|
|||
wait_for_background_jobs
|
||||
|
||||
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_unpair_in_sec_cb
|
||||
-v=${verbosity_level} -s=${simulation_id} -d=1 -testid=peripheral_unpair_in_sec_cb \
|
||||
-RealEncryption=1
|
||||
|
||||
Execute ./bs_2G4_phy_v1 -v=${verbosity_level} -s=${simulation_id} \
|
||||
-D=2 -sim_length=60e6
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue