/Zephyr-Core-3.7.0/tests/bsim/bluetooth/mesh/src/ |
D | test_provision.c | 312 ASSERT_OK(bt_mesh_prov_enable(BT_MESH_PROV_ADV)); in prov_reset() 348 ASSERT_OK(bt_mesh_input_number(oob_number)); in delayed_input() 352 ASSERT_OK(bt_mesh_input_string(oob_str)); in delayed_input() 403 ASSERT_OK(bt_mesh_auth_method_set_static(prov.static_val, prov.static_val_len)); in capabilities() 406 ASSERT_OK(bt_mesh_auth_method_set_output(prov.output_actions, prov.output_size)); in capabilities() 409 ASSERT_OK(bt_mesh_auth_method_set_input(prov.input_actions, prov.input_size)); in capabilities() 497 ASSERT_OK(bt_mesh_prov_enable(BT_MESH_PROV_ADV)); in oob_device() 500 ASSERT_OK(k_sem_take(&prov_sem, K_SECONDS(40))); in oob_device() 531 ASSERT_OK(bt_mesh_cdb_create(test_net_key)); in oob_provisioner() 533 ASSERT_OK(bt_mesh_provision(test_net_key, 0, 0, 0, 0x0001, dev_key)); in oob_provisioner() [all …]
|
D | test_op_agg.c | 140 ASSERT_OK(bt_mesh_provision(test_net_key, 0, 0, 0, addr, dev_key)); in op_agg_test_prov_and_conf() 171 ASSERT_OK(k_sem_init(&cli_suspend_sem, 0, 1)); in common_init() 172 ASSERT_OK(k_sem_init(&srv_suspend_sem, 0, 1)); in common_init() 173 ASSERT_OK(bt_mesh_op_agg_cli_seq_start(0, 0, dst_addr, dst_addr)); in common_init() 188 ASSERT_OK(dummy_vnd_mod_get(&elements[0].vnd_models[0], &ctx, i)); in common_init() 216 ASSERT_OK(bt_mesh_op_agg_cli_seq_send()); in test_cli_max_len_sequence_msg_send() 233 ASSERT_OK(bt_mesh_op_agg_cli_seq_send()); in test_tester_model_coex() 253 ASSERT_OK(bt_mesh_op_agg_cli_seq_send()); in test_dut_model_coex() 267 ASSERT_OK(bt_mesh_op_agg_cli_seq_send()); in test_dut_model_coex_loopback()
|
D | test_friendship.c | 197 ASSERT_OK(bt_mesh_test_recv(15, cfg->addr, NULL, K_SECONDS(10))); in test_friend_msg() 307 ASSERT_OK(bt_mesh_va_add(test_va_uuid, &va)); in test_friend_group() 310 ASSERT_OK(bt_mesh_test_friendship_evt_wait(BT_MESH_TEST_FRIEND_POLLED, in test_friend_group() 375 ASSERT_OK(bt_mesh_va_add(test_va_col_uuid[i], &va[i])); in test_friend_va_collision() 552 ASSERT_OK(bt_mesh_test_recv(5, cfg->addr, NULL, K_FOREVER)); in test_lpn_msg_mesh() 559 ASSERT_OK(bt_mesh_test_recv(15, cfg->addr, NULL, K_FOREVER)); in test_lpn_msg_mesh() 570 ASSERT_OK(bt_mesh_model_publish(test_model)); in test_lpn_msg_mesh() 779 ASSERT_OK(bt_mesh_test_send(other_cfg.addr, NULL, 5, 0, K_SECONDS(1))); in test_lpn_group() 785 ASSERT_OK(bt_mesh_test_recv_msg(&msg, K_SECONDS(1))); in test_lpn_group() 791 ASSERT_OK(bt_mesh_test_recv_msg(&msg, K_SECONDS(1))); in test_lpn_group() [all …]
|
D | test_transport.c | 174 ASSERT_OK(bt_mesh_test_send(BT_MESH_ADDR_RELAYS, NULL, test_vector[0].len, in test_tx_fixed() 179 ASSERT_OK(bt_mesh_test_send(BT_MESH_ADDR_RELAYS, NULL, test_vector[0].len, in test_tx_fixed() 184 ASSERT_OK(bt_mesh_test_send(BT_MESH_ADDR_RELAYS, NULL, test_vector[0].len, in test_tx_fixed() 352 ASSERT_OK(bt_mesh_test_send(rx_cfg.addr, NULL, 20, 0, K_NO_WAIT)); in test_tx_seg_block() 355 ASSERT_OK(bt_mesh_test_send(rx_cfg.addr, NULL, 20, 0, K_NO_WAIT)); in test_tx_seg_block() 356 ASSERT_OK(bt_mesh_test_send(rx_cfg.addr, NULL, 20, 0, K_SECONDS(10))); in test_tx_seg_block() 378 ASSERT_OK(bt_mesh_test_send_async(rx_cfg.addr, NULL, 20, 0, &async_send_cb, &sem)); in test_tx_seg_concurrent() 381 ASSERT_OK(bt_mesh_test_send(GROUP_ADDR, NULL, 20, 0, K_SECONDS(10))); in test_tx_seg_concurrent() 384 ASSERT_OK(k_sem_take(&sem, K_SECONDS(1))); in test_tx_seg_concurrent() 411 ASSERT_OK(bt_mesh_test_send_async(rx_cfg.addr, NULL, 255, 0, &async_send_cb, in test_tx_seg_ivu() [all …]
|
D | test_proxy_sol.c | 167 ASSERT_OK(bt_mesh_net_encrypt(&sub->keys[SUBNET_KEY_TX_IDX(sub)].msg.enc, pdu, 0, in sol_fixed_pdu_create() 170 ASSERT_OK(bt_mesh_net_obfuscate(pdu->data, 0, in sol_fixed_pdu_create() 205 ASSERT_OK(bt_mesh_proxy_solicit(0)); in test_tester_beacon_rcvd() 221 ASSERT_OK(sol_fixed_pdu_send()); in test_tester_immediate_replay_attack() 232 ASSERT_OK(sol_fixed_pdu_send()); in test_tester_immediate_replay_attack() 249 ASSERT_OK(bt_mesh_proxy_solicit(0)); in test_tester_power_replay_attack() 255 ASSERT_OK(bt_mesh_proxy_solicit(0)); in test_tester_power_replay_attack()
|
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_suspend.c | 166 ASSERT_OK(bt_mesh_provision(net_key, 0, 0, 0, cfg.addr, cfg.dev_key)); in provision_and_configure() 318 ASSERT_OK(bt_mesh_suspend()); in dut_pub_common() 332 ASSERT_OK(bt_mesh_provision(test_net_key, 0, 0, 0, dut_cfg.addr, dut_cfg.dev_key)); in dut_gatt_common() 415 ASSERT_OK(bt_mesh_test_wait_for_packet(gatt_scan_cb, &publish_sem, 10)); in test_tester_gatt() 425 ASSERT_OK(bt_mesh_test_wait_for_packet(gatt_scan_cb, &publish_sem, 10)); in test_tester_gatt() 428 ASSERT_OK(bt_mesh_test_wait_for_packet(suspend_state_change_cb, &publish_sem, 20)); in test_tester_gatt() 435 ASSERT_OK(bt_mesh_test_wait_for_packet(suspend_state_change_cb, &publish_sem, 20)); in test_tester_gatt() 437 ASSERT_OK(bt_mesh_test_wait_for_packet(gatt_scan_cb, &publish_sem, 10)); in test_tester_gatt()
|
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 | 140 ASSERT_OK(bt_mesh_test_send_ra(rx_cfg.addr, test_data, in test_tx_immediate_replay_attack() 158 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() 219 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() 1082 ASSERT_OK(bt_mesh_prov_enable(BT_MESH_PROV_ADV)); in test_reprovisioning_device() 1085 ASSERT_OK(k_sem_take(&prov_sem, K_SECONDS(40))); in test_reprovisioning_device() 1088 ASSERT_OK(k_sem_take(&prov_sem, K_SECONDS(40))); in test_reprovisioning_device() [all …]
|
D | test_advertiser.c | 275 ASSERT_OK(bt_mesh_test_wait_for_packet(receive_order_scan_cb, &observer_sem, 10)); in receive_order() 349 ASSERT_OK(bt_mesh_test_wait_for_packet(xmit_scan_cb, &observer_sem, 20)); in test_rx_xmit() 417 ASSERT_OK(bt_mesh_cfg_cli_beacon_set(0, adv_cfg.addr, BT_MESH_BEACON_DISABLED, &status)); in test_tx_proxy_mixin() 451 ASSERT_OK(bt_mesh_test_wait_for_packet(gatt_scan_cb, &observer_sem, 20)); in test_rx_proxy_mixin() 461 ASSERT_OK(bt_mesh_test_wait_for_packet(gatt_scan_cb, &observer_sem, 20)); in test_rx_proxy_mixin() 466 ASSERT_OK(bt_mesh_test_wait_for_packet(xmit_scan_cb, &observer_sem, 20)); in test_rx_proxy_mixin() 469 ASSERT_OK(bt_mesh_test_wait_for_packet(gatt_scan_cb, &observer_sem, 20)); in test_rx_proxy_mixin()
|
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 | 266 ASSERT_OK(bt_mesh_model_extend(model, model - 2)); in model3_init() 267 ASSERT_OK(bt_mesh_model_extend(model, model - 1)); in model3_init() 270 ASSERT_OK(bt_mesh_model_extend(model, &models[4])); in model3_init() 278 ASSERT_OK(bt_mesh_model_extend(model, model - 1)); in model4_init() 285 ASSERT_OK(bt_mesh_model_extend(model, model - 4)); in model5_init() 427 ASSERT_OK(k_poll(events, 1, K_SECONDS(3))); in test_sub_ext_model()
|
D | mesh_test.h | 49 #define ASSERT_OK(cond) \ macro
|
D | test_blob.c | 1558 ASSERT_OK(blob_srv.state.xfer.mode != BT_MESH_BLOB_XFER_MODE_NONE); in test_srv_stop()
|