Home
last modified time | relevance | path

Searched refs:ASSERT_OK (Results 1 – 17 of 17) sorted by relevance

/tests/bsim/bluetooth/mesh/src/
A Dtest_provision.c392 ASSERT_OK(bt_mesh_prov_enable(prov_bearer)); in prov_reset()
435 ASSERT_OK(bt_mesh_input_string(oob_str)); in delayed_input()
608 ASSERT_OK(bt_mesh_cdb_create(test_net_key)); in oob_provisioner()
702 ASSERT_OK(bt_mesh_prov_enable(prov_bearer)); in test_device_no_oob()
720 ASSERT_OK(bt_mesh_prov_enable(prov_bearer)); in test_device_reprovision()
741 ASSERT_OK(bt_mesh_cdb_create(test_net_key)); in test_provisioner_no_oob()
1224 ASSERT_OK(status); in reprovision_remote_devkey_client()
1307 ASSERT_OK(status); in reprovision_remote_address_client()
1341 ASSERT_OK(status); in test_provisioner_pb_remote_client_nppi_robustness()
1541 ASSERT_OK(status); in test_provisioner_pb_remote_client_ncrp_provision()
[all …]
A Dtest_brg.c167 ASSERT_OK(bt_mesh_cdb_create(test_net_key)); in tester_setup()
185 ASSERT_OK( in tester_setup()
252 ASSERT_OK( in tester_bridge_configure()
355 ASSERT_OK( in bridge_table_verify()
578 ASSERT_OK(send_data(addr, i, uuid)); in tester_simple_multicast()
583 ASSERT_OK(send_get(addr, uuid)); in tester_simple_multicast()
603 ASSERT_OK(send_data(addr, i, uuid)); in tester_simple_multicast()
614 ASSERT_OK(send_get(addr, uuid)); in tester_simple_multicast()
682 ASSERT_OK(send_get(DEVICE_ADDR_START, NULL)); in test_tester_table_state_change()
691 ASSERT_OK(send_get(DEVICE_ADDR_START, NULL)); in test_tester_table_state_change()
[all …]
A Dtest_op_agg.c140 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()
A Dtest_friendship.c307 ASSERT_OK(bt_mesh_va_add(test_va_uuid, &va)); in test_friend_group()
375 ASSERT_OK(bt_mesh_va_add(test_va_col_uuid[i], &va[i])); in test_friend_va_collision()
570 ASSERT_OK(bt_mesh_model_publish(test_model)); in test_lpn_msg_mesh()
804 ASSERT_OK(bt_mesh_test_recv_msg(&msg, K_SECONDS(1))); in test_lpn_group()
810 ASSERT_OK(bt_mesh_test_recv_msg(&msg, K_SECONDS(1))); in test_lpn_group()
821 ASSERT_OK(bt_mesh_test_recv_msg(&msg, K_SECONDS(1))); in test_lpn_group()
827 ASSERT_OK(bt_mesh_test_recv_msg(&msg, K_SECONDS(1))); in test_lpn_group()
851 ASSERT_OK(bt_mesh_test_recv_msg(&msg, K_SECONDS(1))); in test_lpn_group()
1008 ASSERT_OK(bt_mesh_va_add(test_va_uuid, &va)); in test_other_group()
1105 ASSERT_OK(bt_mesh_test_recv_msg(&msg, K_SECONDS(10))); in test_lpn_va_collision()
[all …]
A Dtest_transport.c174 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()
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()
453 ASSERT_OK(k_sem_take(&sem, K_SECONDS(10))); in test_tx_seg_fail()
[all …]
A Dtest_proxy_sol.c167 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()
A Dtest_suspend.c166 ASSERT_OK(bt_mesh_provision(net_key, 0, 0, 0, cfg.addr, cfg.dev_key)); in provision_and_configure()
321 ASSERT_OK(bt_mesh_suspend()); in dut_pub_common()
356 ASSERT_OK(bt_mesh_provision(test_net_key, 0, 0, 0, dut_cfg.addr, dut_cfg.dev_key)); in dut_gatt_common()
365 ASSERT_OK(k_sem_take(&send_sem, K_MSEC(200))); in dut_gatt_common()
440 ASSERT_OK(bt_mesh_test_wait_for_packet(gatt_scan_cb, &publish_sem, 10)); in test_tester_gatt()
450 ASSERT_OK(bt_mesh_test_wait_for_packet(gatt_scan_cb, &publish_sem, 10)); in test_tester_gatt()
458 ASSERT_OK(bt_mesh_test_wait_for_packet(suspend_state_change_cb, &publish_sem, 20)); in test_tester_gatt()
465 ASSERT_OK(bt_mesh_test_wait_for_packet(suspend_state_change_cb, &publish_sem, 20)); in test_tester_gatt()
467 ASSERT_OK(bt_mesh_test_wait_for_packet(gatt_scan_cb, &publish_sem, 10)); in test_tester_gatt()
A Dtest_lcd.c149 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()
A Dtest_sar.c158 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()
A Dtest_cdp1.c116 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()
A Dtest_replay_cache.c140 ASSERT_OK(bt_mesh_test_send_data(rx_cfg.addr, NULL, test_data, sizeof(test_data), in test_tx_immediate_replay_attack()
158 ASSERT_OK(bt_mesh_test_send_data(rx_cfg.addr, NULL, test_data, sizeof(test_data), in test_tx_immediate_replay_attack()
203 ASSERT_OK(bt_mesh_test_send_data(rx_cfg.addr, NULL, test_data, sizeof(test_data), in test_tx_power_replay_attack()
219 ASSERT_OK(bt_mesh_test_send_data(rx_cfg.addr, NULL, test_data, sizeof(test_data), in test_tx_power_replay_attack()
A Dtest_iv_index.c140 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()
A Dtest_persistence.c332 ASSERT_OK(bt_mesh_provision_adv(uuid, test_netkey_idx, TEST_ADDR, 0)); in unprovisioned_beacon()
380 ASSERT_OK(bt_mesh_model_data_store(test_model, false, TEST_MOD_DATA_NAME, NULL, 0)); in test_model_reset()
411 ASSERT_OK(bt_mesh_model_data_store(test_vnd_model, true, TEST_VND_MOD_DATA_NAME, NULL, 0)); in test_vnd_model_reset()
451 ASSERT_OK(bt_mesh_cdb_create(primary_netkey)); in provisioner_setup()
452 ASSERT_OK(bt_mesh_provision(primary_netkey, 0, test_flags, test_ividx, TEST_PROV_ADDR, in provisioner_setup()
575 ASSERT_OK(bt_mesh_key_export(dev_key, dkey)); in test_provisioning_data_load()
582 ASSERT_OK(bt_mesh_key_export(net_key, &tx.sub->keys[0].net)); in test_provisioning_data_load()
1155 ASSERT_OK(bt_mesh_prov_enable(BT_MESH_PROV_ADV)); in test_reprovisioning_device()
1158 ASSERT_OK(k_sem_take(&prov_sem, K_SECONDS(40))); in test_reprovisioning_device()
1161 ASSERT_OK(k_sem_take(&prov_sem, K_SECONDS(40))); in test_reprovisioning_device()
[all …]
A Dtest_advertiser.c282 ASSERT_OK(bt_mesh_test_wait_for_packet(receive_order_scan_cb, &observer_sem, 10)); in receive_order()
356 ASSERT_OK(bt_mesh_test_wait_for_packet(xmit_scan_cb, &observer_sem, 20)); in test_rx_xmit()
424 ASSERT_OK(bt_mesh_cfg_cli_beacon_set(0, adv_cfg.addr, BT_MESH_BEACON_DISABLED, &status)); in test_tx_proxy_mixin()
458 ASSERT_OK(bt_mesh_test_wait_for_packet(gatt_scan_cb, &observer_sem, 20)); in test_rx_proxy_mixin()
468 ASSERT_OK(bt_mesh_test_wait_for_packet(gatt_scan_cb, &observer_sem, 20)); in test_rx_proxy_mixin()
473 ASSERT_OK(bt_mesh_test_wait_for_packet(xmit_scan_cb, &observer_sem, 20)); in test_rx_proxy_mixin()
476 ASSERT_OK(bt_mesh_test_wait_for_packet(gatt_scan_cb, &observer_sem, 20)); in test_rx_proxy_mixin()
A Dtest_access.c266 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()
A Dmesh_test.h49 #define ASSERT_OK(cond) \ macro
A Dtest_blob.c1558 ASSERT_OK(blob_srv.state.xfer.mode != BT_MESH_BLOB_XFER_MODE_NONE); in test_srv_stop()

Completed in 35 milliseconds