tests: bsim: Use the pre_init_f instead of post_init_f
When using the post_init_f to initialize the `bst_result`, it is not possible to mark the test as passed immediately as the `bst_result` will be initialized after the test completes. This change should overcome this limitation. Bluetooth mesh tests are kept as is as we are not sure if this will change the behavior. Signed-off-by: Rubin Gerritsen <rubin.gerritsen@nordicsemi.no>
This commit is contained in:
parent
94346d2441
commit
1aa33fe368
107 changed files with 237 additions and 237 deletions
|
@ -76,7 +76,7 @@ static void test_main(void)
|
|||
static const struct bst_test_instance test_bass_broadcaster[] = {
|
||||
{
|
||||
.test_id = "bass_broadcaster",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_main
|
||||
},
|
||||
|
|
|
@ -622,19 +622,19 @@ static void test_main_server_sync_server_rem(void)
|
|||
static const struct bst_test_instance test_bass[] = {
|
||||
{
|
||||
.test_id = "bap_broadcast_assistant_client_sync",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_main_client_sync,
|
||||
},
|
||||
{
|
||||
.test_id = "bap_broadcast_assistant_server_sync_client_rem",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_main_server_sync_client_rem,
|
||||
},
|
||||
{
|
||||
.test_id = "bap_broadcast_assistant_server_sync_server_rem",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_main_server_sync_server_rem,
|
||||
},
|
||||
|
|
|
@ -1041,19 +1041,19 @@ static void broadcast_sink_with_assistant(void)
|
|||
static const struct bst_test_instance test_broadcast_sink[] = {
|
||||
{
|
||||
.test_id = "broadcast_sink",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_main,
|
||||
},
|
||||
{
|
||||
.test_id = "broadcast_sink_disconnect",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_sink_disconnect,
|
||||
},
|
||||
{
|
||||
.test_id = "broadcast_sink_with_assistant",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = broadcast_sink_with_assistant,
|
||||
},
|
||||
|
|
|
@ -518,7 +518,7 @@ static void test_main(void)
|
|||
static const struct bst_test_instance test_broadcast_source[] = {
|
||||
{
|
||||
.test_id = "broadcast_source",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_main
|
||||
},
|
||||
|
|
|
@ -808,19 +808,19 @@ static void test_main_server_sync_server_rem(void)
|
|||
static const struct bst_test_instance test_scan_delegator[] = {
|
||||
{
|
||||
.test_id = "bap_scan_delegator_client_sync",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_main_client_sync,
|
||||
},
|
||||
{
|
||||
.test_id = "bap_scan_delegator_server_sync_client_rem",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_main_server_sync_client_rem,
|
||||
},
|
||||
{
|
||||
.test_id = "bap_scan_delegator_server_sync_server_rem",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_main_server_sync_server_rem,
|
||||
},
|
||||
|
|
|
@ -1129,13 +1129,13 @@ static void test_main_acl_disconnect(void)
|
|||
static const struct bst_test_instance test_unicast_client[] = {
|
||||
{
|
||||
.test_id = "unicast_client",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_main,
|
||||
},
|
||||
{
|
||||
.test_id = "unicast_client_acl_disconnect",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_main_acl_disconnect,
|
||||
},
|
||||
|
|
|
@ -600,13 +600,13 @@ static void test_main_acl_disconnect(void)
|
|||
static const struct bst_test_instance test_unicast_server[] = {
|
||||
{
|
||||
.test_id = "unicast_server",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_main,
|
||||
},
|
||||
{
|
||||
.test_id = "unicast_server_acl_disconnect",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_main_acl_disconnect,
|
||||
},
|
||||
|
|
|
@ -889,25 +889,25 @@ static void test_cap_acceptor_capture_and_render(void)
|
|||
static const struct bst_test_instance test_cap_acceptor[] = {
|
||||
{
|
||||
.test_id = "cap_acceptor_unicast",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_cap_acceptor_unicast,
|
||||
},
|
||||
{
|
||||
.test_id = "cap_acceptor_unicast_timeout",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_cap_acceptor_unicast_timeout,
|
||||
},
|
||||
{
|
||||
.test_id = "cap_acceptor_broadcast",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_cap_acceptor_broadcast,
|
||||
},
|
||||
{
|
||||
.test_id = "cap_acceptor_capture_and_render",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_cap_acceptor_capture_and_render,
|
||||
},
|
||||
|
|
|
@ -601,7 +601,7 @@ static void test_main_cap_commander_capture_and_render(void)
|
|||
static const struct bst_test_instance test_cap_commander[] = {
|
||||
{
|
||||
.test_id = "cap_commander_capture_and_render",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_main_cap_commander_capture_and_render,
|
||||
},
|
||||
|
|
|
@ -841,13 +841,13 @@ static void test_args(int argc, char *argv[])
|
|||
static const struct bst_test_instance test_cap_initiator_broadcast[] = {
|
||||
{
|
||||
.test_id = "cap_initiator_broadcast",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_main_cap_initiator_broadcast,
|
||||
},
|
||||
{
|
||||
.test_id = "cap_initiator_ac_12",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_cap_initiator_ac_12,
|
||||
.test_args_f = test_args,
|
||||
|
@ -855,7 +855,7 @@ static const struct bst_test_instance test_cap_initiator_broadcast[] = {
|
|||
#if BROADCAST_STREMT_CNT >= CAP_AC_MAX_STREAM
|
||||
{
|
||||
.test_id = "cap_initiator_ac_13",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_cap_initiator_ac_13,
|
||||
.test_args_f = test_args,
|
||||
|
@ -863,7 +863,7 @@ static const struct bst_test_instance test_cap_initiator_broadcast[] = {
|
|||
#endif /* BROADCAST_STREMT_CNT >= CAP_AC_MAX_STREAM */
|
||||
{
|
||||
.test_id = "cap_initiator_ac_14",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_cap_initiator_ac_14,
|
||||
.test_args_f = test_args,
|
||||
|
|
|
@ -1632,130 +1632,130 @@ static void test_args(int argc, char *argv[])
|
|||
static const struct bst_test_instance test_cap_initiator_unicast[] = {
|
||||
{
|
||||
.test_id = "cap_initiator_unicast",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_main_cap_initiator_unicast,
|
||||
},
|
||||
{
|
||||
.test_id = "cap_initiator_unicast_timeout",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_cap_initiator_unicast_timeout,
|
||||
},
|
||||
{
|
||||
.test_id = "cap_initiator_unicast_inval",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_main_cap_initiator_unicast_inval,
|
||||
},
|
||||
{
|
||||
.test_id = "cap_initiator_ac_1",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_cap_initiator_ac_1,
|
||||
.test_args_f = test_args,
|
||||
},
|
||||
{
|
||||
.test_id = "cap_initiator_ac_2",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_cap_initiator_ac_2,
|
||||
.test_args_f = test_args,
|
||||
},
|
||||
{
|
||||
.test_id = "cap_initiator_ac_3",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_cap_initiator_ac_3,
|
||||
.test_args_f = test_args,
|
||||
},
|
||||
{
|
||||
.test_id = "cap_initiator_ac_4",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_cap_initiator_ac_4,
|
||||
.test_args_f = test_args,
|
||||
},
|
||||
{
|
||||
.test_id = "cap_initiator_ac_5",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_cap_initiator_ac_5,
|
||||
.test_args_f = test_args,
|
||||
},
|
||||
{
|
||||
.test_id = "cap_initiator_ac_6_i",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_cap_initiator_ac_6_i,
|
||||
.test_args_f = test_args,
|
||||
},
|
||||
{
|
||||
.test_id = "cap_initiator_ac_6_ii",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_cap_initiator_ac_6_ii,
|
||||
.test_args_f = test_args,
|
||||
},
|
||||
{
|
||||
.test_id = "cap_initiator_ac_7_i",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_cap_initiator_ac_7_i,
|
||||
.test_args_f = test_args,
|
||||
},
|
||||
{
|
||||
.test_id = "cap_initiator_ac_7_ii",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_cap_initiator_ac_7_ii,
|
||||
.test_args_f = test_args,
|
||||
},
|
||||
{
|
||||
.test_id = "cap_initiator_ac_8_i",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_cap_initiator_ac_8_i,
|
||||
.test_args_f = test_args,
|
||||
},
|
||||
{
|
||||
.test_id = "cap_initiator_ac_8_ii",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_cap_initiator_ac_8_ii,
|
||||
.test_args_f = test_args,
|
||||
},
|
||||
{
|
||||
.test_id = "cap_initiator_ac_9_i",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_cap_initiator_ac_9_i,
|
||||
.test_args_f = test_args,
|
||||
},
|
||||
{
|
||||
.test_id = "cap_initiator_ac_9_ii",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_cap_initiator_ac_9_ii,
|
||||
.test_args_f = test_args,
|
||||
},
|
||||
{
|
||||
.test_id = "cap_initiator_ac_10",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_cap_initiator_ac_10,
|
||||
.test_args_f = test_args,
|
||||
},
|
||||
{
|
||||
.test_id = "cap_initiator_ac_11_i",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_cap_initiator_ac_11_i,
|
||||
.test_args_f = test_args,
|
||||
},
|
||||
{
|
||||
.test_id = "cap_initiator_ac_11_ii",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_cap_initiator_ac_11_ii,
|
||||
.test_args_f = test_args,
|
||||
|
|
|
@ -120,7 +120,7 @@ static void test_main(void)
|
|||
static const struct bst_test_instance test_csip_notify_client[] = {
|
||||
{
|
||||
.test_id = "csip_notify_client",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_main,
|
||||
},
|
||||
|
|
|
@ -122,7 +122,7 @@ static void test_main(void)
|
|||
static const struct bst_test_instance test_csip_notify_server[] = {
|
||||
{
|
||||
.test_id = "csip_notify_server",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_main,
|
||||
},
|
||||
|
|
|
@ -523,14 +523,14 @@ static void test_args(int argc, char *argv[])
|
|||
static const struct bst_test_instance test_connect[] = {
|
||||
{
|
||||
.test_id = "csip_set_coordinator",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_main,
|
||||
.test_args_f = test_args,
|
||||
},
|
||||
{
|
||||
.test_id = "csip_set_coordinator_new_sirk",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_new_sirk,
|
||||
.test_args_f = test_args,
|
||||
|
|
|
@ -238,28 +238,28 @@ static void test_args(int argc, char *argv[])
|
|||
static const struct bst_test_instance test_connect[] = {
|
||||
{
|
||||
.test_id = "csip_set_member",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_main,
|
||||
.test_args_f = test_args,
|
||||
},
|
||||
{
|
||||
.test_id = "csip_set_member_release",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_force_release,
|
||||
.test_args_f = test_args,
|
||||
},
|
||||
{
|
||||
.test_id = "csip_set_member_enc",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_csip_enc,
|
||||
.test_args_f = test_args,
|
||||
},
|
||||
{
|
||||
.test_id = "csip_set_member_new_sirk",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_new_sirk,
|
||||
.test_args_f = test_args,
|
||||
|
|
|
@ -1519,91 +1519,91 @@ static void test_args(int argc, char *argv[])
|
|||
static const struct bst_test_instance test_gmap_ugg[] = {
|
||||
{
|
||||
.test_id = "gmap_ugg_ac_1",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_gmap_ac_1,
|
||||
.test_args_f = test_args,
|
||||
},
|
||||
{
|
||||
.test_id = "gmap_ugg_ac_2",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_gmap_ac_2,
|
||||
.test_args_f = test_args,
|
||||
},
|
||||
{
|
||||
.test_id = "gmap_ugg_ac_3",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_gmap_ac_3,
|
||||
.test_args_f = test_args,
|
||||
},
|
||||
{
|
||||
.test_id = "gmap_ugg_ac_4",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_gmap_ac_4,
|
||||
.test_args_f = test_args,
|
||||
},
|
||||
{
|
||||
.test_id = "gmap_ugg_ac_5",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_gmap_ac_5,
|
||||
.test_args_f = test_args,
|
||||
},
|
||||
{
|
||||
.test_id = "gmap_ugg_ac_6_i",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_gmap_ac_6_i,
|
||||
.test_args_f = test_args,
|
||||
},
|
||||
{
|
||||
.test_id = "gmap_ugg_ac_6_ii",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_gmap_ac_6_ii,
|
||||
.test_args_f = test_args,
|
||||
},
|
||||
{
|
||||
.test_id = "gmap_ugg_ac_7_ii",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_gmap_ac_7_ii,
|
||||
.test_args_f = test_args,
|
||||
},
|
||||
{
|
||||
.test_id = "gmap_ugg_ac_8_i",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_gmap_ac_8_i,
|
||||
.test_args_f = test_args,
|
||||
},
|
||||
{
|
||||
.test_id = "gmap_ugg_ac_8_ii",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_gmap_ac_8_ii,
|
||||
.test_args_f = test_args,
|
||||
},
|
||||
{
|
||||
.test_id = "gmap_ugg_ac_11_i",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_gmap_ac_11_i,
|
||||
.test_args_f = test_args,
|
||||
},
|
||||
{
|
||||
.test_id = "gmap_ugg_ac_11_ii",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_gmap_ac_11_ii,
|
||||
.test_args_f = test_args,
|
||||
},
|
||||
{
|
||||
.test_id = "gmap_ugg_ac_12",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_gmap_ac_12,
|
||||
.test_args_f = test_args,
|
||||
|
@ -1611,7 +1611,7 @@ static const struct bst_test_instance test_gmap_ugg[] = {
|
|||
#if CONFIG_BT_BAP_BROADCAST_SRC_STREAM_COUNT >= GMAP_BROADCAST_AC_MAX_STREAM
|
||||
{
|
||||
.test_id = "gmap_ugg_ac_13",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_gmap_ac_13,
|
||||
.test_args_f = test_args,
|
||||
|
@ -1619,7 +1619,7 @@ static const struct bst_test_instance test_gmap_ugg[] = {
|
|||
#endif /* CONFIG_BT_BAP_BROADCAST_SRC_STREAM_COUNT >= GMAP_BROADCAST_AC_MAX_STREAM */
|
||||
{
|
||||
.test_id = "gmap_ugg_ac_14",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_gmap_ac_14,
|
||||
.test_args_f = test_args,
|
||||
|
|
|
@ -449,7 +449,7 @@ static void test_args(int argc, char *argv[])
|
|||
static const struct bst_test_instance test_gmap_ugt[] = {
|
||||
{
|
||||
.test_id = "gmap_ugt",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_main,
|
||||
.test_args_f = test_args,
|
||||
|
|
|
@ -682,14 +682,14 @@ static void test_gatt_client(void)
|
|||
static const struct bst_test_instance test_has[] = {
|
||||
{
|
||||
.test_id = "has_client",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_main,
|
||||
},
|
||||
{
|
||||
.test_id = "has_client_offline_behavior",
|
||||
.test_descr = "Test receiving notifications after reconnection",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_gatt_client,
|
||||
},
|
||||
|
|
|
@ -158,13 +158,13 @@ static void test_offline_behavior(void)
|
|||
static const struct bst_test_instance test_has[] = {
|
||||
{
|
||||
.test_id = "has",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_main,
|
||||
},
|
||||
{
|
||||
.test_id = "has_offline_behavior",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_offline_behavior,
|
||||
},
|
||||
|
|
|
@ -129,7 +129,7 @@ static void test_main(void)
|
|||
static const struct bst_test_instance test_ias[] = {
|
||||
{
|
||||
.test_id = "ias_client",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_main,
|
||||
},
|
||||
|
|
|
@ -90,7 +90,7 @@ static void test_main(void)
|
|||
static const struct bst_test_instance test_ias[] = {
|
||||
{
|
||||
.test_id = "ias",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_main,
|
||||
|
||||
|
|
|
@ -2599,7 +2599,7 @@ void test_main(void)
|
|||
static const struct bst_test_instance test_mcs[] = {
|
||||
{
|
||||
.test_id = "mcc",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_main
|
||||
},
|
||||
|
|
|
@ -58,7 +58,7 @@ static void test_main(void)
|
|||
static const struct bst_test_instance test_mcs[] = {
|
||||
{
|
||||
.test_id = "mcs",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_main
|
||||
},
|
||||
|
|
|
@ -1687,19 +1687,19 @@ void test_media_controller_server(void)
|
|||
static const struct bst_test_instance test_media_controller[] = {
|
||||
{
|
||||
.test_id = "media_controller_local_player",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_media_controller_local_player
|
||||
},
|
||||
{
|
||||
.test_id = "media_controller_remote_player",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_media_controller_remote_player
|
||||
},
|
||||
{
|
||||
.test_id = "media_controller_server",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_media_controller_server
|
||||
},
|
||||
|
|
|
@ -450,7 +450,7 @@ static void test_main(void)
|
|||
static const struct bst_test_instance test_micp[] = {
|
||||
{
|
||||
.test_id = "micp_mic_ctlr",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_main
|
||||
},
|
||||
|
|
|
@ -436,13 +436,13 @@ static void test_main(void)
|
|||
static const struct bst_test_instance test_micp[] = {
|
||||
{
|
||||
.test_id = "micp_mic_dev_only",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_mic_dev_only
|
||||
},
|
||||
{
|
||||
.test_id = "micp_mic_dev",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_main
|
||||
},
|
||||
|
|
|
@ -620,7 +620,7 @@ static void test_main(void)
|
|||
static const struct bst_test_instance test_pacs_notify_client[] = {
|
||||
{
|
||||
.test_id = "pacs_notify_client",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_main,
|
||||
},
|
||||
|
|
|
@ -282,7 +282,7 @@ static void test_main(void)
|
|||
static const struct bst_test_instance test_pacs_notify_server[] = {
|
||||
{
|
||||
.test_id = "pacs_notify_server",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_main,
|
||||
},
|
||||
|
|
|
@ -414,7 +414,7 @@ static void test_main(void)
|
|||
static const struct bst_test_instance test_public_broadcast_sink[] = {
|
||||
{
|
||||
.test_id = "public_broadcast_sink",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_main
|
||||
},
|
||||
|
|
|
@ -372,7 +372,7 @@ static void test_main(void)
|
|||
static const struct bst_test_instance test_pbp_broadcaster[] = {
|
||||
{
|
||||
.test_id = "public_broadcast_source",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_main
|
||||
},
|
||||
|
|
|
@ -565,7 +565,7 @@ static void test_main(void)
|
|||
static const struct bst_test_instance test_tbs_client[] = {
|
||||
{
|
||||
.test_id = "tbs_client",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_main
|
||||
},
|
||||
|
|
|
@ -390,13 +390,13 @@ static void tbs_test_server_only(void)
|
|||
static const struct bst_test_instance test_tbs[] = {
|
||||
{
|
||||
.test_id = "tbs_test_server_only",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = tbs_test_server_only
|
||||
},
|
||||
{
|
||||
.test_id = "tbs",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_main
|
||||
},
|
||||
|
|
|
@ -168,7 +168,7 @@ static void test_main(void)
|
|||
static const struct bst_test_instance test_tmap_client[] = {
|
||||
{
|
||||
.test_id = "tmap_client",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_main,
|
||||
},
|
||||
|
|
|
@ -81,7 +81,7 @@ static void test_main(void)
|
|||
static const struct bst_test_instance test_tmas[] = {
|
||||
{
|
||||
.test_id = "tmap_server",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_main,
|
||||
|
||||
|
|
|
@ -1190,7 +1190,7 @@ static void test_main(void)
|
|||
static const struct bst_test_instance test_vcs[] = {
|
||||
{
|
||||
.test_id = "vcp_vol_ctlr",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_main
|
||||
},
|
||||
|
|
|
@ -1048,13 +1048,13 @@ static void test_main(void)
|
|||
static const struct bst_test_instance test_vcs[] = {
|
||||
{
|
||||
.test_id = "vcp_vol_rend_standalone",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_standalone
|
||||
},
|
||||
{
|
||||
.test_id = "vcp_vol_rend",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_main
|
||||
},
|
||||
|
|
|
@ -64,7 +64,7 @@ static const struct bst_test_instance test_sample[] = {
|
|||
"It expects to be connected to a compatible broadcast audio source, "
|
||||
"waits for " STR(WAIT_TIME) " seconds, and checks how "
|
||||
"many ISO packets have been received correctly",
|
||||
.test_post_init_f = test_broadcast_sink_sample_init,
|
||||
.test_pre_init_f = test_broadcast_sink_sample_init,
|
||||
.test_tick_f = test_broadcast_sink_sample_tick,
|
||||
},
|
||||
BSTEST_END_MARKER
|
||||
|
|
|
@ -64,7 +64,7 @@ static const struct bst_test_instance test_sample[] = {
|
|||
"It expects to be connected to a compatible unicast server, "
|
||||
"waits for " STR(WAIT_TIME) " seconds, and checks how "
|
||||
"many audio packets have been received correctly",
|
||||
.test_post_init_f = test_unicast_client_sample_init,
|
||||
.test_pre_init_f = test_unicast_client_sample_init,
|
||||
.test_tick_f = test_unicast_client_sample_tick,
|
||||
},
|
||||
BSTEST_END_MARKER
|
||||
|
|
|
@ -186,14 +186,14 @@ static const struct bst_test_instance test_def[] = {
|
|||
{
|
||||
.test_id = "adv",
|
||||
.test_descr = "Central GATT Write",
|
||||
.test_post_init_f = test_adv_chain_init,
|
||||
.test_pre_init_f = test_adv_chain_init,
|
||||
.test_tick_f = test_adv_chain_tick,
|
||||
.test_main_f = test_adv_main
|
||||
},
|
||||
{
|
||||
.test_id = "scan",
|
||||
.test_descr = "Peripheral GATT Write",
|
||||
.test_post_init_f = test_adv_chain_init,
|
||||
.test_pre_init_f = test_adv_chain_init,
|
||||
.test_tick_f = test_adv_chain_tick,
|
||||
.test_main_f = test_scan_main
|
||||
},
|
||||
|
|
|
@ -37,7 +37,7 @@ static const struct bst_test_instance test_def[] = {
|
|||
{
|
||||
.test_id = "central",
|
||||
.test_descr = "Central device",
|
||||
.test_post_init_f = test_ead_sample_data_init,
|
||||
.test_pre_init_f = test_ead_sample_data_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_central,
|
||||
.test_args_f = test_args_parse,
|
||||
|
@ -45,7 +45,7 @@ static const struct bst_test_instance test_def[] = {
|
|||
{
|
||||
.test_id = "peripheral",
|
||||
.test_descr = "Peripheral device",
|
||||
.test_post_init_f = test_ead_sample_data_init,
|
||||
.test_pre_init_f = test_ead_sample_data_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_peripheral,
|
||||
.test_args_f = test_args_parse,
|
||||
|
|
|
@ -129,14 +129,14 @@ static const struct bst_test_instance test_def[] = {
|
|||
{
|
||||
.test_id = "central",
|
||||
.test_descr = "Central device",
|
||||
.test_post_init_f = test_ead_sample_init,
|
||||
.test_pre_init_f = test_ead_sample_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = central_main,
|
||||
},
|
||||
{
|
||||
.test_id = "peripheral",
|
||||
.test_descr = "Peripheral device",
|
||||
.test_post_init_f = test_ead_sample_init,
|
||||
.test_pre_init_f = test_ead_sample_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = peripheral_main,
|
||||
},
|
||||
|
|
|
@ -260,7 +260,7 @@ static const struct bst_test_instance ext_adv_advertiser[] = {
|
|||
.test_id = "ext_adv_advertiser",
|
||||
.test_descr = "Basic extended advertising test. "
|
||||
"Will just start extended advertising.",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = main_ext_adv_advertiser
|
||||
},
|
||||
|
@ -268,7 +268,7 @@ static const struct bst_test_instance ext_adv_advertiser[] = {
|
|||
.test_id = "ext_adv_conn_advertiser",
|
||||
.test_descr = "Basic connectable extended advertising test. "
|
||||
"Starts extended advertising, and restarts it after disconnecting",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = main_ext_conn_adv_advertiser
|
||||
},
|
||||
|
@ -277,7 +277,7 @@ static const struct bst_test_instance ext_adv_advertiser[] = {
|
|||
.test_descr = "Basic connectable extended advertising test. "
|
||||
"Starts extended advertising, and restarts it after disconnecting, "
|
||||
"repeated over 5 times",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = main_ext_conn_adv_advertiser_x5
|
||||
},
|
||||
|
|
|
@ -215,7 +215,7 @@ static const struct bst_test_instance ext_adv_scanner[] = {
|
|||
.test_id = "ext_adv_scanner",
|
||||
.test_descr = "Basic extended advertising scanning test. "
|
||||
"Will just scan an extended advertiser.",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = main_ext_adv_scanner
|
||||
},
|
||||
|
@ -224,7 +224,7 @@ static const struct bst_test_instance ext_adv_scanner[] = {
|
|||
.test_descr = "Basic extended advertising scanning test. "
|
||||
"Will scan an extended advertiser, connect "
|
||||
"and verify it's detected after disconnection",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = main_ext_adv_conn_scanner
|
||||
},
|
||||
|
@ -234,7 +234,7 @@ static const struct bst_test_instance ext_adv_scanner[] = {
|
|||
"Will scan an extended advertiser, connect "
|
||||
"and verify it's detected after disconnection,"
|
||||
"repeated over 5 times",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = main_ext_adv_conn_scanner_x5
|
||||
},
|
||||
|
|
|
@ -374,7 +374,7 @@ static const struct bst_test_instance per_adv_advertiser[] = {
|
|||
.test_id = "per_adv_advertiser",
|
||||
.test_descr = "Basic periodic advertising test. "
|
||||
"Will just start periodic advertising.",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = main_per_adv_advertiser
|
||||
},
|
||||
|
@ -383,7 +383,7 @@ static const struct bst_test_instance per_adv_advertiser[] = {
|
|||
.test_id = "per_adv_advertiser_coded_phy",
|
||||
.test_descr = "Basic periodic advertising test on Coded PHY. "
|
||||
"Advertiser and periodic advertiser uses Coded PHY",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = main_per_adv_advertiser_coded
|
||||
},
|
||||
|
@ -392,7 +392,7 @@ static const struct bst_test_instance per_adv_advertiser[] = {
|
|||
.test_id = "per_adv_conn_advertiser",
|
||||
.test_descr = "Periodic advertising test with concurrent ACL "
|
||||
"and PA sync.",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = main_per_adv_conn_advertiser
|
||||
},
|
||||
|
@ -400,7 +400,7 @@ static const struct bst_test_instance per_adv_advertiser[] = {
|
|||
.test_id = "per_adv_conn_privacy_advertiser",
|
||||
.test_descr = "Periodic advertising test with concurrent ACL "
|
||||
"with bonding and PA sync.",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = main_per_adv_conn_privacy_advertiser
|
||||
},
|
||||
|
@ -408,7 +408,7 @@ static const struct bst_test_instance per_adv_advertiser[] = {
|
|||
.test_id = "per_adv_long_data_advertiser",
|
||||
.test_descr = "Periodic advertising test with a longer data length. "
|
||||
"To test the reassembly of large data packets",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = main_per_adv_long_data_advertiser
|
||||
},
|
||||
|
|
|
@ -367,7 +367,7 @@ static const struct bst_test_instance per_adv_sync[] = {
|
|||
.test_id = "per_adv_sync",
|
||||
.test_descr = "Basic periodic advertising sync test. "
|
||||
"Will just sync to a periodic advertiser.",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = main_per_adv_sync
|
||||
},
|
||||
|
@ -376,7 +376,7 @@ static const struct bst_test_instance per_adv_sync[] = {
|
|||
.test_descr = "Basic periodic advertising sync test but where "
|
||||
"the app stopped scanning before creating sync."
|
||||
"Expect the host to start scanning automatically.",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = main_per_adv_sync_app_not_scanning
|
||||
},
|
||||
|
@ -385,7 +385,7 @@ static const struct bst_test_instance per_adv_sync[] = {
|
|||
.test_descr = "Periodic advertising sync test, but where there "
|
||||
"is a connection between the advertiser and the "
|
||||
"synchronized device.",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = main_per_adv_conn_sync
|
||||
},
|
||||
|
@ -394,7 +394,7 @@ static const struct bst_test_instance per_adv_sync[] = {
|
|||
.test_descr = "Periodic advertising sync test, but where "
|
||||
"advertiser and synchronized device are bonded and using "
|
||||
"privacy",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = main_per_adv_conn_privacy_sync
|
||||
},
|
||||
|
@ -403,7 +403,7 @@ static const struct bst_test_instance per_adv_sync[] = {
|
|||
.test_descr = "Periodic advertising sync test with larger "
|
||||
"data length. Test is used to verify that "
|
||||
"reassembly of long data is handeled correctly.",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = main_per_adv_long_data_sync
|
||||
},
|
||||
|
|
|
@ -17,31 +17,31 @@ void tester_procedure_2(void);
|
|||
static const struct bst_test_instance test_to_add[] = {
|
||||
{
|
||||
.test_id = "dut",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = dut_procedure,
|
||||
},
|
||||
{
|
||||
.test_id = "tester_peripheral",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = tester_peripheral_procedure,
|
||||
},
|
||||
{
|
||||
.test_id = "tester_central",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = tester_central_procedure,
|
||||
},
|
||||
{
|
||||
.test_id = "dut_2",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = dut_procedure_2,
|
||||
},
|
||||
{
|
||||
.test_id = "tester_2",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = tester_procedure_2,
|
||||
},
|
||||
|
|
|
@ -41,14 +41,14 @@ static const struct bst_test_instance test_def[] = {
|
|||
{
|
||||
.test_id = "peripheral_autoconnect",
|
||||
.test_descr = "Peripheral autoconnect",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_peripheral_main,
|
||||
},
|
||||
{
|
||||
.test_id = "central_autoconnect",
|
||||
.test_descr = "Central autoconnect",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_central_main,
|
||||
},
|
||||
|
|
|
@ -68,14 +68,14 @@ static const struct bst_test_instance test_def[] = {
|
|||
{
|
||||
.test_id = "peripheral",
|
||||
.test_descr = "Peripheral Collision",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_peripheral_main,
|
||||
},
|
||||
{
|
||||
.test_id = "central",
|
||||
.test_descr = "Central Collision",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_central_main,
|
||||
},
|
||||
|
|
|
@ -42,14 +42,14 @@ static const struct bst_test_instance test_def[] = {
|
|||
{
|
||||
.test_id = "peripheral_lowres",
|
||||
.test_descr = "Peripheral lowres",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_peripheral_main,
|
||||
},
|
||||
{
|
||||
.test_id = "central_lowres",
|
||||
.test_descr = "Central lowres",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_central_main,
|
||||
},
|
||||
|
|
|
@ -89,14 +89,14 @@ static const struct bst_test_instance test_def[] = {
|
|||
{
|
||||
.test_id = "peripheral_reconfigure",
|
||||
.test_descr = "Peripheral reconfigure",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_peripheral_main,
|
||||
},
|
||||
{
|
||||
.test_id = "central_reconfigure",
|
||||
.test_descr = "Central reconfigure",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_central_main,
|
||||
},
|
||||
|
|
|
@ -251,7 +251,7 @@ static void test_main(void)
|
|||
static const struct bst_test_instance test_vcs[] = {
|
||||
{
|
||||
.test_id = "client",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_main
|
||||
},
|
||||
|
|
|
@ -218,7 +218,7 @@ static void test_main(void)
|
|||
static const struct bst_test_instance test_server[] = {
|
||||
{
|
||||
.test_id = "server",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_main
|
||||
},
|
||||
|
|
|
@ -111,14 +111,14 @@ static const struct bst_test_instance test_def[] = {
|
|||
{
|
||||
.test_id = "central",
|
||||
.test_descr = "Central GATT MTU Update",
|
||||
.test_post_init_f = test_mtu_update_init,
|
||||
.test_pre_init_f = test_mtu_update_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_central_main
|
||||
},
|
||||
{
|
||||
.test_id = "peripheral",
|
||||
.test_descr = "Peripheral GATT MTU Update",
|
||||
.test_post_init_f = test_mtu_update_init,
|
||||
.test_pre_init_f = test_mtu_update_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_peripheral_main
|
||||
},
|
||||
|
|
|
@ -31,7 +31,7 @@ void test_tick(bs_time_t HW_device_time)
|
|||
static const struct bst_test_instance test_to_add[] = {
|
||||
{
|
||||
.test_id = "the_test",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = the_test,
|
||||
},
|
||||
|
|
|
@ -164,13 +164,13 @@ static void test_client_security_request(void)
|
|||
static const struct bst_test_instance client_tests[] = {
|
||||
{
|
||||
.test_id = "test_client",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_client,
|
||||
},
|
||||
{
|
||||
.test_id = "test_client_security_request",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_client_security_request,
|
||||
},
|
||||
|
|
|
@ -66,13 +66,13 @@ static void test_server_security_request(void)
|
|||
static const struct bst_test_instance server_tests[] = {
|
||||
{
|
||||
.test_id = "test_server",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_server,
|
||||
},
|
||||
{
|
||||
.test_id = "test_server_security_request",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_server_security_request,
|
||||
},
|
||||
|
|
|
@ -330,7 +330,7 @@ static void test_main(void)
|
|||
static const struct bst_test_instance test_vcs[] = {
|
||||
{
|
||||
.test_id = "gatt_client",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_main
|
||||
},
|
||||
|
|
|
@ -357,7 +357,7 @@ static void test_main(void)
|
|||
static const struct bst_test_instance test_gatt_server[] = {
|
||||
{
|
||||
.test_id = "gatt_server",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_main
|
||||
},
|
||||
|
|
|
@ -529,37 +529,37 @@ static void test_main_retry_reads_no_eatt(void)
|
|||
static const struct bst_test_instance test_vcs[] = {
|
||||
{
|
||||
.test_id = "gatt_client_db_hash_read_eatt",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_main_db_hash_read_eatt,
|
||||
},
|
||||
{
|
||||
.test_id = "gatt_client_out_of_sync_eatt",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_main_out_of_sync_eatt,
|
||||
},
|
||||
{
|
||||
.test_id = "gatt_client_retry_reads_eatt",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_main_retry_reads_eatt,
|
||||
},
|
||||
{
|
||||
.test_id = "gatt_client_db_hash_read_no_eatt",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_main_db_hash_read_no_eatt,
|
||||
},
|
||||
{
|
||||
.test_id = "gatt_client_out_of_sync_no_eatt",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_main_out_of_sync_no_eatt,
|
||||
},
|
||||
{
|
||||
.test_id = "gatt_client_retry_reads_no_eatt",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_main_retry_reads_no_eatt,
|
||||
},
|
||||
|
|
|
@ -154,13 +154,13 @@ static void test_main_no_eatt(void)
|
|||
static const struct bst_test_instance test_gatt_server[] = {
|
||||
{
|
||||
.test_id = "gatt_server_eatt",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_main_eatt,
|
||||
},
|
||||
{
|
||||
.test_id = "gatt_server_no_eatt",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_main_no_eatt,
|
||||
},
|
||||
|
|
|
@ -70,7 +70,7 @@ static const struct bst_test_instance test_def[] = {
|
|||
{
|
||||
.test_id = "central",
|
||||
.test_descr = "Central device",
|
||||
.test_post_init_f = test_ccc_store_init,
|
||||
.test_pre_init_f = test_ccc_store_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = central_main,
|
||||
.test_args_f = test_args,
|
||||
|
@ -78,7 +78,7 @@ static const struct bst_test_instance test_def[] = {
|
|||
{
|
||||
.test_id = "peripheral",
|
||||
.test_descr = "Peripheral device",
|
||||
.test_post_init_f = test_ccc_store_init,
|
||||
.test_pre_init_f = test_ccc_store_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = peripheral_main,
|
||||
.test_args_f = test_args,
|
||||
|
|
|
@ -395,7 +395,7 @@ static void test_main(void)
|
|||
static const struct bst_test_instance test_vcs[] = {
|
||||
{
|
||||
.test_id = "gatt_client",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_main
|
||||
},
|
||||
|
|
|
@ -177,7 +177,7 @@ static void test_main(void)
|
|||
static const struct bst_test_instance test_gatt_server[] = {
|
||||
{
|
||||
.test_id = "gatt_server",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_main
|
||||
},
|
||||
|
|
|
@ -438,25 +438,25 @@ static void test_main_mixed(void)
|
|||
static const struct bst_test_instance test_vcs[] = {
|
||||
{
|
||||
.test_id = "gatt_client_none",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_main_none,
|
||||
},
|
||||
{
|
||||
.test_id = "gatt_client_unenhanced",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_main_unenhanced,
|
||||
},
|
||||
{
|
||||
.test_id = "gatt_client_enhanced",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_main_enhanced,
|
||||
},
|
||||
{
|
||||
.test_id = "gatt_client_mixed",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_main_mixed,
|
||||
},
|
||||
|
|
|
@ -269,25 +269,25 @@ static void test_main_mixed(void)
|
|||
static const struct bst_test_instance test_gatt_server[] = {
|
||||
{
|
||||
.test_id = "gatt_server_none",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_main_none,
|
||||
},
|
||||
{
|
||||
.test_id = "gatt_server_unenhanced",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_main_unenhanced,
|
||||
},
|
||||
{
|
||||
.test_id = "gatt_server_enhanced",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_main_enhanced,
|
||||
},
|
||||
{
|
||||
.test_id = "gatt_server_mixed",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_main_mixed,
|
||||
},
|
||||
|
|
|
@ -365,7 +365,7 @@ static void test_main(void)
|
|||
static const struct bst_test_instance test_vcs[] = {
|
||||
{
|
||||
.test_id = "gatt_client",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_main,
|
||||
},
|
||||
|
|
|
@ -182,7 +182,7 @@ static void test_main(void)
|
|||
static const struct bst_test_instance test_gatt_server[] = {
|
||||
{
|
||||
.test_id = "gatt_server",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_main,
|
||||
},
|
||||
|
|
|
@ -31,13 +31,13 @@ static void test_init(void)
|
|||
static const struct bst_test_instance test_to_add[] = {
|
||||
{
|
||||
.test_id = "central",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = central,
|
||||
},
|
||||
{
|
||||
.test_id = "peripheral",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = peripheral,
|
||||
},
|
||||
|
|
|
@ -37,14 +37,14 @@ static const struct bst_test_instance test_def[] = {
|
|||
{
|
||||
.test_id = "dut1",
|
||||
.test_descr = "DUT 1",
|
||||
.test_post_init_f = test_id_settings_init,
|
||||
.test_pre_init_f = test_id_settings_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = run_dut1,
|
||||
},
|
||||
{
|
||||
.test_id = "dut2",
|
||||
.test_descr = "DUT 2",
|
||||
.test_post_init_f = test_id_settings_init,
|
||||
.test_pre_init_f = test_id_settings_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = run_dut2,
|
||||
},
|
||||
|
|
|
@ -308,14 +308,14 @@ static const struct bst_test_instance test_def[] = {
|
|||
{
|
||||
.test_id = "broadcaster",
|
||||
.test_descr = "Minimal BIS broadcaster that broadcast ISO data",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_main,
|
||||
},
|
||||
{
|
||||
.test_id = "broadcaster_disable",
|
||||
.test_descr = "BIS broadcaster that tests bt_disable for ISO",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_main_disable,
|
||||
},
|
||||
|
|
|
@ -267,7 +267,7 @@ static const struct bst_test_instance test_def[] = {
|
|||
{
|
||||
.test_id = "receiver",
|
||||
.test_descr = "receiver",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_main,
|
||||
},
|
||||
|
|
|
@ -471,14 +471,14 @@ static const struct bst_test_instance test_def[] = {
|
|||
{
|
||||
.test_id = "central",
|
||||
.test_descr = "Central",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_main,
|
||||
},
|
||||
{
|
||||
.test_id = "central_disable",
|
||||
.test_descr = "CIS central that tests bt_disable for ISO",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_main_disable,
|
||||
},
|
||||
|
|
|
@ -173,7 +173,7 @@ static const struct bst_test_instance test_def[] = {
|
|||
{
|
||||
.test_id = "peripheral",
|
||||
.test_descr = "Peripheral",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_main,
|
||||
},
|
||||
|
|
|
@ -392,14 +392,14 @@ static const struct bst_test_instance test_def[] = {
|
|||
{
|
||||
.test_id = "peripheral",
|
||||
.test_descr = "Peripheral L2CAP CREDITS",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_peripheral_main
|
||||
},
|
||||
{
|
||||
.test_id = "central",
|
||||
.test_descr = "Central L2CAP CREDITS",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_central_main
|
||||
},
|
||||
|
|
|
@ -430,12 +430,12 @@ static void test_central_main(void)
|
|||
static const struct bst_test_instance test_def[] = {
|
||||
{.test_id = "peripheral",
|
||||
.test_descr = "Peripheral L2CAP CREDITS",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_peripheral_main},
|
||||
{.test_id = "central",
|
||||
.test_descr = "Central L2CAP CREDITS",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_central_main},
|
||||
BSTEST_END_MARKER,
|
||||
|
|
|
@ -600,14 +600,14 @@ static const struct bst_test_instance test_def[] = {
|
|||
{
|
||||
.test_id = "peripheral",
|
||||
.test_descr = "Peripheral L2CAP ECRED",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_peripheral_main
|
||||
},
|
||||
{
|
||||
.test_id = "central",
|
||||
.test_descr = "Central L2CAP ECRED",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_central_main
|
||||
},
|
||||
|
|
|
@ -240,14 +240,14 @@ static const struct bst_test_instance test_def[] = {
|
|||
{
|
||||
.test_id = "peripheral",
|
||||
.test_descr = "Peripheral",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_peripheral_main,
|
||||
},
|
||||
{
|
||||
.test_id = "central",
|
||||
.test_descr = "Central",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_central_main,
|
||||
},
|
||||
|
|
|
@ -483,14 +483,14 @@ static const struct bst_test_instance test_def[] = {
|
|||
{
|
||||
.test_id = "peripheral",
|
||||
.test_descr = "Peripheral L2CAP STRESS",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_peripheral_main
|
||||
},
|
||||
{
|
||||
.test_id = "central",
|
||||
.test_descr = "Central L2CAP STRESS",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_central_main
|
||||
},
|
||||
|
|
|
@ -238,14 +238,14 @@ static const struct bst_test_instance test_def[] = {
|
|||
{
|
||||
.test_id = "peripheral",
|
||||
.test_descr = "Peripheral",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_peripheral_main,
|
||||
},
|
||||
{
|
||||
.test_id = "central",
|
||||
.test_descr = "Central",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_central_main,
|
||||
},
|
||||
|
|
|
@ -744,7 +744,7 @@ static const struct bst_test_instance test_def[] = {
|
|||
.test_id = "central",
|
||||
.test_descr = "Central Connection Stress",
|
||||
.test_args_f = test_args,
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_main_f = test_central_main
|
||||
},
|
||||
BSTEST_END_MARKER
|
||||
|
|
|
@ -486,7 +486,7 @@ static const struct bst_test_instance test_def[] = {
|
|||
.test_id = "peripheral",
|
||||
.test_descr = "Peripheral Connection Stress",
|
||||
.test_args_f = test_args,
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_main_f = test_peripheral_main
|
||||
},
|
||||
BSTEST_END_MARKER
|
||||
|
|
|
@ -313,7 +313,7 @@ static void test_main(void)
|
|||
static const struct bst_test_instance test_vcs[] = {
|
||||
{
|
||||
.test_id = "gatt_client",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_main
|
||||
},
|
||||
|
|
|
@ -171,7 +171,7 @@ static void test_main(void)
|
|||
static const struct bst_test_instance test_gatt_server[] = {
|
||||
{
|
||||
.test_id = "gatt_server",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_main
|
||||
},
|
||||
|
|
|
@ -95,7 +95,7 @@ static const struct bst_test_instance test_def[] = {
|
|||
{
|
||||
.test_id = "disable",
|
||||
.test_descr = "disable_test",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_disable_main
|
||||
},
|
||||
|
|
|
@ -230,12 +230,12 @@ static void test_central_main(void)
|
|||
|
||||
static const struct bst_test_instance test_def[] = {{.test_id = "peripheral",
|
||||
.test_descr = "Peripheral device",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_peripheral_main},
|
||||
{.test_id = "central",
|
||||
.test_descr = "Central device",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = test_central_main},
|
||||
BSTEST_END_MARKER};
|
||||
|
|
|
@ -17,14 +17,14 @@ static const struct bst_test_instance test_to_add[] = {
|
|||
{
|
||||
.test_id = "central",
|
||||
.test_descr = "Central performs active scanning using RPA",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = dut_procedure,
|
||||
},
|
||||
{
|
||||
.test_id = "central_connect_short_rpa_timeout",
|
||||
.test_descr = "Central connects to a peripheral using a short RPA timeout",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = dut_procedure_connect_short_rpa_timeout,
|
||||
},
|
||||
|
@ -32,7 +32,7 @@ static const struct bst_test_instance test_to_add[] = {
|
|||
.test_id = "central_connect_fails_with_short_rpa_timeout",
|
||||
.test_descr = "Central connects to a peripheral using a short RPA timeout"
|
||||
" but expects connection establishment to time out.",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = dut_procedure_connect_timeout,
|
||||
},
|
||||
|
@ -40,7 +40,7 @@ static const struct bst_test_instance test_to_add[] = {
|
|||
.test_id = "peripheral",
|
||||
.test_descr = "Performs scannable advertising, validates that the scanner"
|
||||
" RPA address refreshes",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = tester_procedure,
|
||||
},
|
||||
|
|
|
@ -49,7 +49,7 @@ static const struct bst_test_instance test_def[] = {
|
|||
{
|
||||
.test_id = "central",
|
||||
.test_descr = "Central device",
|
||||
.test_post_init_f = test_privacy_init,
|
||||
.test_pre_init_f = test_privacy_init,
|
||||
.test_tick_f = sim_timeout,
|
||||
.test_main_f = test_central_main,
|
||||
.test_args_f = central_test_args_parse,
|
||||
|
@ -57,7 +57,7 @@ static const struct bst_test_instance test_def[] = {
|
|||
{
|
||||
.test_id = "peripheral",
|
||||
.test_descr = "Peripheral device",
|
||||
.test_post_init_f = test_privacy_init,
|
||||
.test_pre_init_f = test_privacy_init,
|
||||
.test_tick_f = sim_timeout,
|
||||
.test_main_f = test_peripheral,
|
||||
.test_args_f = peripheral_test_args_parse,
|
||||
|
|
|
@ -13,13 +13,13 @@ void dut_procedure(void);
|
|||
static const struct bst_test_instance test_to_add[] = {
|
||||
{
|
||||
.test_id = "central",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = tester_procedure,
|
||||
},
|
||||
{
|
||||
.test_id = "peripheral",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = dut_procedure,
|
||||
},
|
||||
|
|
|
@ -13,13 +13,13 @@ void dut_rpa_expired_procedure(void);
|
|||
static const struct bst_test_instance test_to_add[] = {
|
||||
{
|
||||
.test_id = "central_rpa_check",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = tester_verify_rpa_procedure,
|
||||
},
|
||||
{
|
||||
.test_id = "peripheral_rpa_expired",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = dut_rpa_expired_procedure,
|
||||
},
|
||||
|
|
|
@ -13,13 +13,13 @@ void dut_procedure(void);
|
|||
static const struct bst_test_instance test_to_add[] = {
|
||||
{
|
||||
.test_id = "central",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = tester_procedure,
|
||||
},
|
||||
{
|
||||
.test_id = "peripheral",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = dut_procedure,
|
||||
},
|
||||
|
|
|
@ -13,13 +13,13 @@ void peripheral(void);
|
|||
static const struct bst_test_instance test_to_add[] = {
|
||||
{
|
||||
.test_id = "central",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = central,
|
||||
},
|
||||
{
|
||||
.test_id = "peripheral",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = peripheral,
|
||||
},
|
||||
|
|
|
@ -13,13 +13,13 @@ void peripheral(void);
|
|||
static const struct bst_test_instance test_to_add[] = {
|
||||
{
|
||||
.test_id = "central",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = central,
|
||||
},
|
||||
{
|
||||
.test_id = "peripheral",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = peripheral,
|
||||
},
|
||||
|
|
|
@ -13,13 +13,13 @@ void peripheral(void);
|
|||
static const struct bst_test_instance test_to_add[] = {
|
||||
{
|
||||
.test_id = "central",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = central,
|
||||
},
|
||||
{
|
||||
.test_id = "peripheral",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = peripheral,
|
||||
},
|
||||
|
|
|
@ -67,21 +67,21 @@ static const struct bst_test_instance test_def[] = {
|
|||
{
|
||||
.test_id = "central",
|
||||
.test_descr = "Central device",
|
||||
.test_post_init_f = test_ccc_update_init,
|
||||
.test_pre_init_f = test_ccc_update_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = central_main,
|
||||
},
|
||||
{
|
||||
.test_id = "bad_central",
|
||||
.test_descr = "Bad Central device",
|
||||
.test_post_init_f = test_ccc_update_init,
|
||||
.test_pre_init_f = test_ccc_update_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = bad_central_main,
|
||||
},
|
||||
{
|
||||
.test_id = "peripheral",
|
||||
.test_descr = "Peripheral device",
|
||||
.test_post_init_f = test_ccc_update_init,
|
||||
.test_pre_init_f = test_ccc_update_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = peripheral_main,
|
||||
},
|
||||
|
|
|
@ -66,7 +66,7 @@ void central(void)
|
|||
static const struct bst_test_instance test_to_add[] = {
|
||||
{
|
||||
.test_id = "central",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = central,
|
||||
},
|
||||
|
|
|
@ -88,7 +88,7 @@ void peripheral(void)
|
|||
static const struct bst_test_instance test_to_add[] = {
|
||||
{
|
||||
.test_id = "peripheral",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = peripheral,
|
||||
},
|
||||
|
|
|
@ -14,19 +14,19 @@ void peripheral_disconnect_in_sec_cb(void);
|
|||
static const struct bst_test_instance test_to_add[] = {
|
||||
{
|
||||
.test_id = "central",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = central,
|
||||
},
|
||||
{
|
||||
.test_id = "peripheral_unpair_in_sec_cb",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = peripheral_unpair_in_sec_cb,
|
||||
},
|
||||
{
|
||||
.test_id = "peripheral_disconnect_in_sec_cb",
|
||||
.test_post_init_f = test_init,
|
||||
.test_pre_init_f = test_init,
|
||||
.test_tick_f = test_tick,
|
||||
.test_main_f = peripheral_disconnect_in_sec_cb,
|
||||
},
|
||||
|
|
|
@ -1838,14 +1838,14 @@ static const struct bst_test_instance test_def[] = {
|
|||
{
|
||||
.test_id = "advx",
|
||||
.test_descr = "Extended Advertising",
|
||||
.test_post_init_f = test_advx_init,
|
||||
.test_pre_init_f = test_advx_init,
|
||||
.test_tick_f = test_advx_tick,
|
||||
.test_main_f = test_advx_main
|
||||
},
|
||||
{
|
||||
.test_id = "scanx",
|
||||
.test_descr = "Extended scanning",
|
||||
.test_post_init_f = test_advx_init,
|
||||
.test_pre_init_f = test_advx_init,
|
||||
.test_tick_f = test_advx_tick,
|
||||
.test_main_f = test_scanx_main
|
||||
},
|
||||
|
|
|
@ -1205,14 +1205,14 @@ static const struct bst_test_instance test_def[] = {
|
|||
{
|
||||
.test_id = "broadcast",
|
||||
.test_descr = "ISO broadcast",
|
||||
.test_post_init_f = test_iso_init,
|
||||
.test_pre_init_f = test_iso_init,
|
||||
.test_tick_f = test_iso_tick,
|
||||
.test_main_f = test_iso_main
|
||||
},
|
||||
{
|
||||
.test_id = "receive",
|
||||
.test_descr = "ISO receive",
|
||||
.test_post_init_f = test_iso_init,
|
||||
.test_pre_init_f = test_iso_init,
|
||||
.test_tick_f = test_iso_tick,
|
||||
.test_main_f = test_iso_recv_main
|
||||
},
|
||||
|
@ -1220,7 +1220,7 @@ static const struct bst_test_instance test_def[] = {
|
|||
{
|
||||
.test_id = "receive_vs_dp",
|
||||
.test_descr = "ISO receive VS",
|
||||
.test_post_init_f = test_iso_init,
|
||||
.test_pre_init_f = test_iso_init,
|
||||
.test_tick_f = test_iso_tick,
|
||||
.test_main_f = test_iso_recv_vs_dp_main
|
||||
},
|
||||
|
|
|
@ -843,14 +843,14 @@ static const struct bst_test_instance test_def[] = {
|
|||
{
|
||||
.test_id = "central",
|
||||
.test_descr = "Central ISO",
|
||||
.test_post_init_f = test_cis_init,
|
||||
.test_pre_init_f = test_cis_init,
|
||||
.test_tick_f = test_cis_tick,
|
||||
.test_main_f = test_cis_central,
|
||||
},
|
||||
{
|
||||
.test_id = "peripheral",
|
||||
.test_descr = "Peripheral ISO",
|
||||
.test_post_init_f = test_cis_init,
|
||||
.test_pre_init_f = test_cis_init,
|
||||
.test_tick_f = test_cis_tick,
|
||||
.test_main_f = test_cis_peripheral,
|
||||
},
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue