Skip to content

Commit b965128

Browse files
PavelVPVkartben
authored andcommitted
tests: bsim: bluetooth: mesh: Run low latency adv tests with PSA
This is a preparation commit for switching all bsim tests to PSA as TinyCrypt will be removed soon. Signed-off-by: Pavel Vasilyev <[email protected]>
1 parent 76e770d commit b965128

File tree

6 files changed

+25
-1
lines changed

6 files changed

+25
-1
lines changed

tests/bsim/bluetooth/mesh/compile.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,11 @@ app=tests/bsim/bluetooth/mesh conf_overlay=overlay_multi_adv_sets.conf compile
2121
app=tests/bsim/bluetooth/mesh conf_overlay=overlay_lpn_scan_on.conf compile
2222
app=tests/bsim/bluetooth/mesh \
2323
conf_overlay="overlay_pst.conf;overlay_ss.conf;overlay_psa.conf" compile
24+
app=tests/bsim/bluetooth/mesh conf_overlay="overlay_psa.conf;overlay_low_lat.conf" compile
2425
app=tests/bsim/bluetooth/mesh conf_overlay="overlay_gatt.conf;overlay_psa.conf" compile
2526
app=tests/bsim/bluetooth/mesh conf_overlay="overlay_gatt.conf;overlay_workq_sys.conf" compile
27+
app=tests/bsim/bluetooth/mesh \
28+
conf_overlay="overlay_gatt.conf;overlay_psa.conf;overlay_low_lat.conf" compile
2629
app=tests/bsim/bluetooth/mesh conf_overlay="overlay_low_lat.conf;overlay_psa.conf" compile
2730
app=tests/bsim/bluetooth/mesh conf_overlay="overlay_gatt.conf;overlay_low_lat.conf" compile
2831
app=tests/bsim/bluetooth/mesh conf_overlay="overlay_pst.conf;overlay_gatt.conf" compile

tests/bsim/bluetooth/mesh/src/test_suspend.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ extern const struct bt_mesh_comp comp;
194194
* with a 100ms interval.
195195
*/
196196
static struct bt_mesh_test_gatt gatt_param = {
197-
#if defined(CONFIG_BT_EXT_ADV)
197+
#if !defined(CONFIG_BT_CTLR_LOW_LAT)
198198
/* (total transmit duration) / (transmit interval) */
199199
.transmits = 1500 / 100,
200200
.interval = 100,
@@ -449,6 +449,11 @@ static void test_tester_gatt(void)
449449
gatt_param.service = MESH_SERVICE_PROXY;
450450
ASSERT_OK(bt_mesh_test_wait_for_packet(gatt_scan_cb, &publish_sem, 10));
451451

452+
/* Delay for low latency feature */
453+
#if defined(CONFIG_BT_CTLR_LOW_LAT)
454+
k_sleep(K_MSEC(100));
455+
#endif
456+
452457
/* Allow DUT to suspend before scanning for gatt proxy beacons */
453458
ASSERT_OK(bt_mesh_test_wait_for_packet(suspend_state_change_cb, &publish_sem, 20));
454459
ASSERT_EQUAL(dut_status, DUT_SUSPENDED);

tests/bsim/bluetooth/mesh/tests_scripts/suspend/gatt_suspend_disable_resume.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,7 @@ RunTest mesh_gatt_suspend_disable_resume_low_lat \
2929
overlay="overlay_gatt_conf_overlay_psa_conf"
3030
RunTest mesh_gatt_suspend_disable_resume_psa \
3131
suspend_dut_gatt_suspend_disable_resume suspend_tester_gatt
32+
33+
overlay="overlay_gatt_conf_overlay_psa_conf_overlay_low_lat_conf"
34+
RunTest mesh_gatt_suspend_disable_resume_psa_low_lat \
35+
suspend_dut_gatt_suspend_disable_resume suspend_tester_gatt

tests/bsim/bluetooth/mesh/tests_scripts/suspend/gatt_suspend_resume.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,7 @@ RunTest mesh_gatt_suspend_resume_low_lat \
2929
overlay="overlay_gatt_conf_overlay_psa_conf"
3030
RunTest mesh_gatt_suspend_resume_psa \
3131
suspend_dut_gatt_suspend_resume suspend_tester_gatt
32+
33+
overlay="overlay_gatt_conf_overlay_psa_conf_overlay_low_lat_conf"
34+
RunTest mesh_gatt_suspend_resume_psa_low_lat \
35+
suspend_dut_gatt_suspend_resume suspend_tester_gatt

tests/bsim/bluetooth/mesh/tests_scripts/suspend/suspend_disable_resume.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,7 @@ RunTest mesh_suspend_disable_resume_low_lat \
2626
overlay=overlay_psa_conf
2727
RunTest mesh_suspend_disable_resume_psa \
2828
suspend_dut_suspend_disable_resume suspend_tester_pub
29+
30+
overlay=overlay_psa_conf_overlay_low_lat_conf
31+
RunTest mesh_suspend_disable_resume_psa_low_lat \
32+
suspend_dut_suspend_disable_resume suspend_tester_pub

tests/bsim/bluetooth/mesh/tests_scripts/suspend/suspend_resume.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,7 @@ RunTest mesh_suspend_resume_low_lat \
2525
overlay=overlay_psa_conf
2626
RunTest mesh_suspend_resume_psa \
2727
suspend_dut_suspend_resume suspend_tester_pub
28+
29+
overlay="overlay_psa_conf_overlay_low_lat_conf"
30+
RunTest mesh_suspend_resume_psa_low_lat \
31+
suspend_dut_suspend_resume suspend_tester_pub

0 commit comments

Comments
 (0)