/Zephyr-Core-3.5.0/tests/bsim/bluetooth/mesh/src/ |
D | test_provision.c | 316 ASSERT_OK(bt_mesh_prov_enable(BT_MESH_PROV_ADV)); in prov_reset() 352 ASSERT_OK(bt_mesh_input_number(oob_number)); in delayed_input() 356 ASSERT_OK(bt_mesh_input_string(oob_str)); in delayed_input() 407 ASSERT_OK(bt_mesh_auth_method_set_static(prov.static_val, prov.static_val_len)); in capabilities() 410 ASSERT_OK(bt_mesh_auth_method_set_output(prov.output_actions, prov.output_size)); in capabilities() 413 ASSERT_OK(bt_mesh_auth_method_set_input(prov.input_actions, prov.input_size)); in capabilities() 501 ASSERT_OK(bt_mesh_prov_enable(BT_MESH_PROV_ADV)); in oob_device() 504 ASSERT_OK(k_sem_take(&prov_sem, K_SECONDS(40))); in oob_device() 535 ASSERT_OK(bt_mesh_cdb_create(test_net_key)); in oob_provisioner() 537 ASSERT_OK(bt_mesh_provision(test_net_key, 0, 0, 0, 0x0001, dev_key)); in oob_provisioner() [all …]
|
D | test_friendship.c | 206 ASSERT_OK(bt_mesh_test_recv(15, cfg->addr, NULL, K_SECONDS(10))); in test_friend_msg() 316 ASSERT_OK(bt_mesh_va_add(test_va_uuid, &va)); in test_friend_group() 319 ASSERT_OK(bt_mesh_test_friendship_evt_wait(BT_MESH_TEST_FRIEND_POLLED, in test_friend_group() 383 ASSERT_OK(bt_mesh_va_add(test_va_col_uuid[i], &va[i])); in test_friend_va_collision() 559 ASSERT_OK(bt_mesh_test_recv(5, cfg->addr, NULL, K_FOREVER)); in test_lpn_msg_mesh() 566 ASSERT_OK(bt_mesh_test_recv(15, cfg->addr, NULL, K_FOREVER)); in test_lpn_msg_mesh() 577 ASSERT_OK(bt_mesh_model_publish(test_model)); in test_lpn_msg_mesh() 782 ASSERT_OK(bt_mesh_test_send(other_cfg.addr, NULL, 5, 0, K_SECONDS(1))); in test_lpn_group() 788 ASSERT_OK(bt_mesh_test_recv_msg(&msg, K_SECONDS(1))); in test_lpn_group() 794 ASSERT_OK(bt_mesh_test_recv_msg(&msg, K_SECONDS(1))); in test_lpn_group() [all …]
|
D | test_transport.c | 176 ASSERT_OK(bt_mesh_test_send(BT_MESH_ADDR_RELAYS, NULL, test_vector[0].len, in test_tx_fixed() 181 ASSERT_OK(bt_mesh_test_send(BT_MESH_ADDR_RELAYS, NULL, test_vector[0].len, in test_tx_fixed() 186 ASSERT_OK(bt_mesh_test_send(BT_MESH_ADDR_RELAYS, NULL, test_vector[0].len, in test_tx_fixed() 354 ASSERT_OK(bt_mesh_test_send(rx_cfg.addr, NULL, 20, 0, K_NO_WAIT)); in test_tx_seg_block() 357 ASSERT_OK(bt_mesh_test_send(rx_cfg.addr, NULL, 20, 0, K_NO_WAIT)); in test_tx_seg_block() 358 ASSERT_OK(bt_mesh_test_send(rx_cfg.addr, NULL, 20, 0, K_SECONDS(10))); in test_tx_seg_block() 380 ASSERT_OK(bt_mesh_test_send_async(rx_cfg.addr, NULL, 20, 0, &async_send_cb, &sem)); in test_tx_seg_concurrent() 383 ASSERT_OK(bt_mesh_test_send(GROUP_ADDR, NULL, 20, 0, K_SECONDS(10))); in test_tx_seg_concurrent() 386 ASSERT_OK(k_sem_take(&sem, K_SECONDS(1))); in test_tx_seg_concurrent() 413 ASSERT_OK(bt_mesh_test_send_async(rx_cfg.addr, NULL, 255, 0, &async_send_cb, in test_tx_seg_ivu() [all …]
|
D | test_op_agg.c | 146 ASSERT_OK(bt_mesh_provision(test_net_key, 0, 0, 0, addr, dev_key)); in op_agg_test_prov_and_conf() 180 ASSERT_OK(k_sem_init(&cli_suspend_sem, 0, 1)); in test_cli_max_len_sequence_msg_send() 181 ASSERT_OK(bt_mesh_op_agg_cli_seq_start(0, 0, SRV_ADDR, SRV_ADDR)); in test_cli_max_len_sequence_msg_send() 185 ASSERT_OK(dummy_vnd_mod_get(dummy_vnd_model, &test_ctx, seq)); in test_cli_max_len_sequence_msg_send() 188 ASSERT_OK(bt_mesh_op_agg_cli_seq_send()); in test_cli_max_len_sequence_msg_send() 209 ASSERT_OK(k_sem_init(&srv_suspend_sem, 0, 1)); in test_srv_max_len_status_msg_send()
|
D | test_lcd.c | 149 ASSERT_OK(bt_mesh_provision(test_net_key, 0, 0, 0, cfg.addr, cfg.dev_key)); in prov_and_conf() 152 ASSERT_OK(bt_mesh_cfg_cli_app_key_add(0, cfg.addr, 0, 0, test_app_key, &status)); in prov_and_conf() 153 ASSERT_OK(status); in prov_and_conf() 266 ASSERT_OK(bt_mesh_large_comp_data_get(0, SRV_ADDR, page, offset, &srv_rsp)); in test_cli_max_sdu_comp_data_request() 314 ASSERT_OK(bt_mesh_large_comp_data_get(0, SRV_ADDR, comp_page, offset, &srv_rsp_1)); in test_cli_split_comp_data_request() 322 ASSERT_OK(bt_mesh_large_comp_data_get(0, SRV_ADDR, comp_page, offset, &srv_rsp_2)); in test_cli_split_comp_data_request() 365 ASSERT_OK(bt_mesh_models_metadata_get(0, SRV_ADDR, page, offset, &srv_rsp)); in test_cli_max_sdu_metadata_request() 407 ASSERT_OK(bt_mesh_models_metadata_get(0, SRV_ADDR, page, offset, &srv_rsp_1)); in test_cli_split_metadata_request() 415 ASSERT_OK(bt_mesh_models_metadata_get(0, SRV_ADDR, page, offset, &srv_rsp_2)); in test_cli_split_metadata_request()
|
D | test_sar.c | 158 ASSERT_OK(bt_mesh_provision(test_net_key, 0, 0, 0, addr, dev_key)); in prov_and_conf() 172 ASSERT_OK(bt_mesh_sar_cfg_cli_transmitter_set(0, addr, sar_tx_config, &tx_rsp)); in prov_and_conf() 173 ASSERT_OK(bt_mesh_sar_cfg_cli_receiver_set(0, addr, sar_rx_config, &rx_rsp)); in prov_and_conf() 194 ASSERT_OK(k_sem_init(&inst_suspend_sem, 0, 1)); in cli_max_len_sdu_send() 198 ASSERT_OK(dummy_vnd_mod_get(dummy_vnd_mod, &test_ctx, dummy_msg)); in cli_max_len_sdu_send() 216 ASSERT_OK(k_sem_init(&inst_suspend_sem, 0, 1)); in srv_max_len_sdu_receive()
|
D | test_cdp1.c | 116 ASSERT_OK(bt_mesh_model_extend(model, bt_mesh_model_find(&elems[0], TEST_MODEL_ID_1))); in model_2_init() 127 ASSERT_OK(bt_mesh_model_extend(bt_mesh_model_find(&elems[0], TEST_MODEL_ID_3), model)); in model_4_init() 128 ASSERT_OK(bt_mesh_model_correspond(model, bt_mesh_model_find(&elems[0], TEST_MODEL_ID_2))); in model_4_init() 139 ASSERT_OK(bt_mesh_model_extend(model, bt_mesh_model_find(&elems[0], TEST_MODEL_ID_1))); in model_6_init() 145 ASSERT_OK(bt_mesh_model_extend(model, bt_mesh_model_find(&elems[0], TEST_MODEL_ID_1))); in model_vnd1_init() 146 ASSERT_OK(bt_mesh_model_correspond(model, bt_mesh_model_find(&elems[0], TEST_MODEL_ID_3))); in model_vnd1_init() 405 ASSERT_OK(bt_mesh_cfg_cli_comp_data_get(0, node_1_cfg.addr, 1, &page_rsp, &p1_dev_comp)); in test_node_data_comparison()
|
D | test_replay_cache.c | 144 ASSERT_OK(bt_mesh_test_send_ra(rx_cfg.addr, test_data, in test_tx_immediate_replay_attack() 160 ASSERT_OK(bt_mesh_test_send_ra(rx_cfg.addr, test_data, in test_tx_immediate_replay_attack() 203 ASSERT_OK(bt_mesh_test_send_ra(rx_cfg.addr, test_data, in test_tx_power_replay_attack() 217 ASSERT_OK(bt_mesh_test_send_ra(rx_cfg.addr, test_data, in test_tx_power_replay_attack()
|
D | test_persistence.c | 321 ASSERT_OK(bt_mesh_provision_adv(uuid, test_netkey_idx, TEST_ADDR, 0)); in unprovisioned_beacon() 369 ASSERT_OK(bt_mesh_model_data_store(test_model, false, TEST_MOD_DATA_NAME, NULL, 0)); in test_model_reset() 400 ASSERT_OK(bt_mesh_model_data_store(test_vnd_model, true, TEST_VND_MOD_DATA_NAME, NULL, 0)); in test_vnd_model_reset() 440 ASSERT_OK(bt_mesh_cdb_create(primary_netkey)); in provisioner_setup() 441 ASSERT_OK(bt_mesh_provision(primary_netkey, 0, test_flags, test_ividx, TEST_PROV_ADDR, in provisioner_setup() 502 ASSERT_OK(bt_mesh_key_export(dev_key, dkey)); in test_provisioning_data_load() 509 ASSERT_OK(bt_mesh_key_export(net_key, &tx.sub->keys[0].net)); in test_provisioning_data_load() 1069 ASSERT_OK(bt_mesh_prov_enable(BT_MESH_PROV_ADV)); in test_reprovisioning_device() 1072 ASSERT_OK(k_sem_take(&prov_sem, K_SECONDS(40))); in test_reprovisioning_device() 1075 ASSERT_OK(k_sem_take(&prov_sem, K_SECONDS(40))); in test_reprovisioning_device() [all …]
|
D | test_iv_index.c | 140 ASSERT_OK(bt_mesh_test_send_async(0x0002, NULL, 20, FORCE_SEGMENTATION, &async_send_cb, in test_ivu_deferring() 145 ASSERT_OK(k_sem_take(&sem, K_SECONDS(10))); in test_ivu_deferring()
|
D | test_access.c | 261 ASSERT_OK(bt_mesh_model_extend(model, model - 2)); in model3_init() 262 ASSERT_OK(bt_mesh_model_extend(model, model - 1)); in model3_init() 265 ASSERT_OK(bt_mesh_model_extend(model, &models[4])); in model3_init() 273 ASSERT_OK(bt_mesh_model_extend(model, model - 1)); in model4_init() 280 ASSERT_OK(bt_mesh_model_extend(model, model - 4)); in model5_init() 422 ASSERT_OK(k_poll(events, 1, K_SECONDS(3))); in test_sub_ext_model()
|
D | mesh_test.h | 48 #define ASSERT_OK(cond) \ macro
|
D | test_advertiser.c | 254 ASSERT_OK(err); in rx_gatt_beacons() 300 ASSERT_OK(err); in rx_xmit_adv() 521 ASSERT_OK(bt_mesh_cfg_cli_beacon_set(0, adv_cfg.addr, BT_MESH_BEACON_DISABLED, &status)); in test_tx_proxy_mixin()
|
D | test_blob.c | 1558 ASSERT_OK(blob_srv.state.xfer.mode != BT_MESH_BLOB_XFER_MODE_NONE); in test_srv_stop()
|