Skip to content

Commit 40a2aed

Browse files
trond-snekvikjhedberg
authored andcommitted
Bluetooth: Mesh: Friendship BabbleSim tests
Adds Friendship tests to the Bluetooth Mesh BabbleSim test suite. The friendship tests cover all basic friend establishment and message sending scenarios, including coverage for previous regressions, such as #29544, #32033 and #30657. Signed-off-by: Trond Einar Snekvik <[email protected]>
1 parent 6074696 commit 40a2aed

File tree

13 files changed

+947
-1
lines changed

13 files changed

+947
-1
lines changed

tests/bluetooth/bsim_bt/bsim_test_mesh/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ target_sources(app PRIVATE
1616
src/main.c
1717
src/mesh_test.c
1818
src/test_transport.c
19+
src/test_friendship.c
1920
)
2021

2122
zephyr_include_directories(

tests/bluetooth/bsim_bt/bsim_test_mesh/prj.conf

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,12 @@ CONFIG_BT_MESH_RX_SEG_MAX=32
2525
CONFIG_BT_MESH_TX_SEG_MSG_COUNT=10
2626
CONFIG_BT_MESH_RX_SEG_MSG_COUNT=10
2727
CONFIG_BT_MESH_CFG_CLI=y
28-
CONFIG_BT_MESH_MODEL_GROUP_COUNT=2
28+
CONFIG_BT_MESH_MODEL_GROUP_COUNT=3
29+
CONFIG_BT_MESH_LOW_POWER=y
30+
CONFIG_BT_MESH_LPN_AUTO=n
31+
CONFIG_BT_MESH_FRIEND=y
32+
CONFIG_BT_MESH_FRIEND_ENABLED=n
33+
CONFIG_BT_MESH_FRIEND_LPN_COUNT=5
2934
CONFIG_BT_MESH_APP_KEY_COUNT=2
3035
CONFIG_BT_MESH_MODEL_KEY_COUNT=2
3136
CONFIG_BT_MESH_IV_UPDATE_TEST=y

tests/bluetooth/bsim_bt/bsim_test_mesh/src/main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@
99

1010
extern struct bst_test_list *
1111
test_transport_install(struct bst_test_list *tests);
12+
struct bst_test_list *test_friendship_install(struct bst_test_list *tests);
1213

1314
bst_test_install_t test_installers[] = {
1415
test_transport_install,
16+
test_friendship_install,
1517
NULL
1618
};
1719

0 commit comments

Comments
 (0)