Commit bd925abe authored by Aleksandr Khromykh's avatar Aleksandr Khromykh Committed by Christopher Friedt
Browse files

test: Bluetooth: Mesh: subscription tree of extended models



PR adds testing of subscription of the tree of extended models.
Extended models should share subscription list among them.

Signed-off-by: default avatarAleksandr Khromykh <Aleksandr.Khromykh@nordicsemi.no>
parent 5ec9738c
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -31,6 +31,7 @@ else()
  src/test_beacon.c
  src/test_scanner.c
  src/test_heartbeat.c
  src/test_access.c
 )
endif()

+1 −0
Original line number Diff line number Diff line
@@ -41,5 +41,6 @@ CONFIG_BT_MESH_PROV_DEVICE=y
CONFIG_BT_MESH_CDB=y
CONFIG_BT_MESH_CDB_NODE_COUNT=4
CONFIG_BT_MESH_PROV_OOB_PUBLIC_KEY=y
CONFIG_BT_MESH_MODEL_EXTENSIONS=y

CONFIG_BT_MESH_DEBUG=y
+1 −0
Original line number Diff line number Diff line
@@ -44,5 +44,6 @@ CONFIG_BT_MESH_PROVISIONER=y
CONFIG_BT_MESH_PROV_DEVICE=y
CONFIG_BT_MESH_CDB=y
CONFIG_BT_MESH_CDB_NODE_COUNT=3
CONFIG_BT_MESH_MODEL_EXTENSIONS=y

CONFIG_BT_MESH_DEBUG=y
+2 −0
Original line number Diff line number Diff line
@@ -17,6 +17,7 @@ extern struct bst_test_list *test_provision_install(struct bst_test_list *tests)
extern struct bst_test_list *test_beacon_install(struct bst_test_list *tests);
extern struct bst_test_list *test_scanner_install(struct bst_test_list *test);
extern struct bst_test_list *test_heartbeat_install(struct bst_test_list *test);
extern struct bst_test_list *test_access_install(struct bst_test_list *test);
#endif

bst_test_install_t test_installers[] = {
@@ -30,6 +31,7 @@ bst_test_install_t test_installers[] = {
	test_beacon_install,
	test_scanner_install,
	test_heartbeat_install,
	test_access_install,
#endif
	NULL
};
+1 −0
Original line number Diff line number Diff line
@@ -89,6 +89,7 @@ static int ra_rx(struct bt_mesh_model *mod, struct bt_mesh_msg_ctx *ctx,
static const struct bt_mesh_model_op model_op[] = {
	{ TEST_MSG_OP_1, 0, msg_rx },
	{ TEST_MSG_OP_2, 0, ra_rx },
	BT_MESH_MODEL_OP_END
};

int __weak test_model_pub_update(struct bt_mesh_model *mod)
Loading