Skip to content

Commit

Permalink
Bluetooth: Mesh: Friendship BabbleSim tests
Browse files Browse the repository at this point in the history
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 zephyrproject-rtos#29544, zephyrproject-rtos#32033 and zephyrproject-rtos#30657.

Signed-off-by: Trond Einar Snekvik <[email protected]>
  • Loading branch information
trond-snekvik committed Mar 15, 2021
1 parent 497d9df commit 6bd5705
Show file tree
Hide file tree
Showing 13 changed files with 947 additions and 1 deletion.
1 change: 1 addition & 0 deletions tests/bluetooth/bsim_bt/bsim_test_mesh/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ target_sources(app PRIVATE
src/main.c
src/mesh_test.c
src/test_transport.c
src/test_friendship.c
)

zephyr_include_directories(
Expand Down
7 changes: 6 additions & 1 deletion tests/bluetooth/bsim_bt/bsim_test_mesh/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,12 @@ CONFIG_BT_MESH_RX_SEG_MAX=32
CONFIG_BT_MESH_TX_SEG_MSG_COUNT=10
CONFIG_BT_MESH_RX_SEG_MSG_COUNT=10
CONFIG_BT_MESH_CFG_CLI=y
CONFIG_BT_MESH_MODEL_GROUP_COUNT=2
CONFIG_BT_MESH_MODEL_GROUP_COUNT=3
CONFIG_BT_MESH_LOW_POWER=y
CONFIG_BT_MESH_LPN_AUTO=n
CONFIG_BT_MESH_FRIEND=y
CONFIG_BT_MESH_FRIEND_ENABLED=n
CONFIG_BT_MESH_FRIEND_LPN_COUNT=5
CONFIG_BT_MESH_APP_KEY_COUNT=2
CONFIG_BT_MESH_MODEL_KEY_COUNT=2
CONFIG_BT_MESH_IV_UPDATE_TEST=y
Expand Down
2 changes: 2 additions & 0 deletions tests/bluetooth/bsim_bt/bsim_test_mesh/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@

extern struct bst_test_list *
test_transport_install(struct bst_test_list *tests);
struct bst_test_list *test_friendship_install(struct bst_test_list *tests);

bst_test_install_t test_installers[] = {
test_transport_install,
test_friendship_install,
NULL
};

Expand Down
Loading

0 comments on commit 6bd5705

Please sign in to comment.