Home
last modified time | relevance | path

Searched refs:ASSERT_EQUAL (Results 1 – 20 of 20) sorted by relevance

/Zephyr-latest/tests/bsim/bluetooth/mesh/src/
Dgatt_common.c13 ASSERT_EQUAL(0x0201, net_buf_simple_pull_be16(buf)); in bt_mesh_test_parse_mesh_gatt_preamble()
16 ASSERT_EQUAL(0x0303, net_buf_simple_pull_be16(buf)); in bt_mesh_test_parse_mesh_gatt_preamble()
23 ASSERT_EQUAL(0x2718, net_buf_simple_pull_be16(buf)); in bt_mesh_test_parse_mesh_pb_gatt_service()
24 ASSERT_EQUAL(0x1516, net_buf_simple_pull_be16(buf)); in bt_mesh_test_parse_mesh_pb_gatt_service()
26 ASSERT_EQUAL(0x2718, net_buf_simple_pull_be16(buf)); in bt_mesh_test_parse_mesh_pb_gatt_service()
33 ASSERT_EQUAL(0x2818, net_buf_simple_pull_be16(buf)); in bt_mesh_test_parse_mesh_proxy_service()
34 ASSERT_EQUAL(0x0c16, net_buf_simple_pull_be16(buf)); in bt_mesh_test_parse_mesh_proxy_service()
36 ASSERT_EQUAL(0x2818, net_buf_simple_pull_be16(buf)); in bt_mesh_test_parse_mesh_proxy_service()
38 ASSERT_EQUAL(0x00, net_buf_simple_pull_u8(buf)); in bt_mesh_test_parse_mesh_proxy_service()
Dtest_heartbeat.c62 ASSERT_EQUAL(PUBLISHER_ADDR_START, sub->src); in sub_hb_recv_cb()
63 ASSERT_EQUAL(pub_addr, sub->dst); in sub_hb_recv_cb()
64 ASSERT_EQUAL(SUBSCRIBE_PERIOD_SEC, sub->period); in sub_hb_recv_cb()
66 ASSERT_EQUAL(sub_ctx.count + 1, sub->count); in sub_hb_recv_cb()
67 ASSERT_EQUAL(hops, EXPECTED_HB_HOPS); in sub_hb_recv_cb()
87 ASSERT_EQUAL(feature, feat); in sub_hb_recv_cb()
97 ASSERT_EQUAL(PUBLISHER_ADDR_START, sub->src); in sub_hb_end_cb()
98 ASSERT_EQUAL(pub_addr, sub->dst); in sub_hb_end_cb()
99 ASSERT_EQUAL(SUBSCRIBE_PERIOD_SEC, sub->period); in sub_hb_end_cb()
100 ASSERT_EQUAL(0, sub->remaining); in sub_hb_end_cb()
[all …]
Dtest_dfu.c149 ASSERT_EQUAL(BT_MESH_DFD_PHASE_APPLYING_UPDATE, prev_phase); in dist_phase_changed()
471 ASSERT_EQUAL(sizeof(target_fw_ver_new), fwid_len); in slot_add()
503 ASSERT_EQUAL(BT_MESH_DFD_SUCCESS, status); in dist_dfu_start_and_confirm()
513 ASSERT_EQUAL(BT_MESH_DFD_PHASE_FAILED, dfd_srv.phase); in dist_dfu_start_and_confirm()
517 ASSERT_EQUAL(BT_MESH_DFD_PHASE_COMPLETED, dfd_srv.phase); in dist_dfu_start_and_confirm()
523 ASSERT_EQUAL(expected_status, dfd_srv.targets[i].status); in dist_dfu_start_and_confirm()
530 ASSERT_EQUAL(BT_MESH_DFU_PHASE_APPLY_FAIL, in dist_dfu_start_and_confirm()
533 ASSERT_EQUAL(BT_MESH_DFU_PHASE_APPLYING, dfd_srv.targets[i].phase); in dist_dfu_start_and_confirm()
536 ASSERT_EQUAL(expected_phase, dfd_srv.targets[i].phase); in dist_dfu_start_and_confirm()
555 ASSERT_EQUAL(BT_MESH_DFD_SUCCESS, status); in test_dist_dfu()
[all …]
Dtest_advertiser.c123 ASSERT_EQUAL(0, err); in single_start_cb()
124 ASSERT_EQUAL(cb_msg, cb_data); in single_start_cb()
125 ASSERT_EQUAL(0, seq_checker & 1); in single_start_cb()
135 ASSERT_EQUAL(0, err); in single_end_cb()
136 ASSERT_EQUAL(cb_msg, cb_data); in single_end_cb()
137 ASSERT_EQUAL(1, seq_checker & 1); in single_end_cb()
146 ASSERT_EQUAL(0, err); in realloc_end_cb()
156 ASSERT_EQUAL(0, err); in seq_start_cb()
157 ASSERT_EQUAL(seq_checker, (intptr_t)cb_data); in seq_start_cb()
162 ASSERT_EQUAL(0, err); in seq_end_cb()
[all …]
Dtest_iv_index.c69 ASSERT_EQUAL(TEST_IV_IDX + 2, bt_mesh.iv_index); in test_ivu_recovery()
89 ASSERT_EQUAL(TEST_IV_IDX + 1, bt_mesh.iv_index); in test_ivu_recovery()
111 ASSERT_EQUAL(TEST_IV_IDX, bt_mesh.iv_index); in test_ivu_normal()
112 ASSERT_EQUAL(0, bt_mesh.seq); in test_ivu_normal()
124 ASSERT_EQUAL(TEST_IV_IDX + 1, bt_mesh.iv_index); in test_ivu_normal()
125 ASSERT_EQUAL(100, bt_mesh.seq); in test_ivu_normal()
Dtest_brg.c86 ASSERT_EQUAL(1, get_device_nbr()); in test_bridge_init()
314 ASSERT_EQUAL(type, MSG_TYPE_STATUS); in tester_data_cb()
317 ASSERT_EQUAL(recvd_msgs_cnt * sizeof(recvd_msgs[0]), length - 2); in tester_data_cb()
354 ASSERT_EQUAL(rsp.status, 0); in bridge_table_verify()
355 ASSERT_EQUAL(rsp.net_idx1, net_idx1); in bridge_table_verify()
356 ASSERT_EQUAL(rsp.net_idx2, net_idx2); in bridge_table_verify()
357 ASSERT_EQUAL(rsp.start_idx, start_idx); in bridge_table_verify()
361 ASSERT_EQUAL(rsp.list->len / 5, list_len); in bridge_table_verify()
362 ASSERT_EQUAL(rsp.list->len % 5, 0); in bridge_table_verify()
371 ASSERT_EQUAL(entry.addr1, list[i].addr1); in bridge_table_verify()
[all …]
Dtest_cdp1.c310 ASSERT_EQUAL(test_p1_elem_models[elem_idx][mod_idx + offset].cor_present, in verify_model_item()
312 ASSERT_EQUAL(test_p1_elem_models[elem_idx][mod_idx + offset].format, mod_item->format); in verify_model_item()
313 ASSERT_EQUAL(test_p1_elem_models[elem_idx][mod_idx + offset].ext_item_cnt, in verify_model_item()
316 ASSERT_EQUAL(test_p1_elem_models[elem_idx][mod_idx + offset].cor_id, in verify_model_item()
344 ASSERT_EQUAL(test_p1_ext_item->type, ext_item->type); in verify_ext_item()
346 ASSERT_EQUAL(test_p1_ext_item->short_item.elem_offset, in verify_ext_item()
348 ASSERT_EQUAL(test_p1_ext_item->short_item.mod_item_idx, in verify_ext_item()
351 ASSERT_EQUAL(test_p1_ext_item->long_item.elem_offset, in verify_ext_item()
353 ASSERT_EQUAL(test_p1_ext_item->long_item.mod_item_idx, in verify_ext_item()
366 ASSERT_EQUAL(test_p1_elems[elem_idx].nsig, p1_elem->nsig); in verify_cdp1()
[all …]
Dtest_beacon.c344 ASSERT_EQUAL(BT_GAP_ADV_TYPE_ADV_NONCONN_IND, adv_type); in beacon_scan_cb()
347 ASSERT_EQUAL(buf->len, length); in beacon_scan_cb()
356 ASSERT_EQUAL(expected_beacon, beacon_type); in beacon_scan_cb()
364 ASSERT_EQUAL(expected_beacon, beacon_type); in beacon_scan_cb()
481 ASSERT_EQUAL(0x00, beacon.flags); in corrupted_beacon_test()
482 ASSERT_EQUAL(0x0000, beacon.iv_index); in corrupted_beacon_test()
498 ASSERT_EQUAL(0x02, beacon.flags); in corrupted_beacon_test()
499 ASSERT_EQUAL(0x0001, beacon.iv_index); in corrupted_beacon_test()
543 ASSERT_EQUAL(0, bt_mesh.iv_index); in test_rx_invalid()
550 ASSERT_EQUAL(1, bt_mesh.iv_index); in test_rx_invalid()
[all …]
Dtest_provision.c559 ASSERT_EQUAL(0, status); in node_configure_and_reset()
565 ASSERT_EQUAL(0, status); in node_configure_and_reset()
578 ASSERT_EQUAL(0, status); in node_configure_and_reset()
584 ASSERT_EQUAL(0, status); in node_configure_and_reset()
590 ASSERT_EQUAL(0, status); in node_configure_and_reset()
597 ASSERT_EQUAL(0, status); in node_configure_and_reset()
847 ASSERT_EQUAL(BT_MESH_RPR_SUCCESS, scan_status.status); in provision_remote()
848 ASSERT_EQUAL(BT_MESH_RPR_SCAN_MULTI, scan_status.scan); in provision_remote()
849 ASSERT_EQUAL(1, scan_status.max_devs); in provision_remote()
850 ASSERT_EQUAL(5, scan_status.timeout); in provision_remote()
[all …]
Dtest_blob.c147 ASSERT_EQUAL(caps->mtu_size, BT_MESH_RX_SDU_MAX - BT_MESH_MIC_SHORT); in blob_cli_caps()
148 ASSERT_EQUAL(caps->modes, BT_MESH_BLOB_XFER_MODE_ALL); in blob_cli_caps()
149 ASSERT_EQUAL(caps->max_size, CONFIG_BT_MESH_BLOB_SIZE_MAX); in blob_cli_caps()
150 ASSERT_EQUAL(caps->min_block_size_log, BLOB_BLOCK_SIZE_LOG_MIN); in blob_cli_caps()
151 ASSERT_EQUAL(caps->max_block_size_log, BLOB_BLOCK_SIZE_LOG_MAX); in blob_cli_caps()
152 ASSERT_EQUAL(caps->max_chunk_size, BLOB_CHUNK_SIZE_MAX(BT_MESH_RX_SDU_MAX)); in blob_cli_caps()
153 ASSERT_EQUAL(caps->max_chunks, CONFIG_BT_MESH_BLOB_CHUNK_COUNT_MAX); in blob_cli_caps()
491 ASSERT_EQUAL(blob_cli.state, BT_MESH_BLOB_CLI_STATE_NONE); in test_cli_caps_cancelled()
563 ASSERT_EQUAL(BLOB_GROUP_ADDR, dst); in broadcast_send()
650 ASSERT_EQUAL(k_sem_count_get(&blob_broad_send_sem), 1); in test_cli_broadcast_basic()
[all …]
Dtest_friendship.c376 ASSERT_EQUAL(test_va_col_addr, va[i]->addr); in test_friend_va_collision()
685 ASSERT_EQUAL(5, msg.len); in test_lpn_overflow()
686 ASSERT_EQUAL(cfg->addr, msg.ctx.recv_dst); in test_lpn_overflow()
687 ASSERT_EQUAL(exp_seq, msg.seq); in test_lpn_overflow()
692 ASSERT_EQUAL(5, msg.len); in test_lpn_overflow()
693 ASSERT_EQUAL(cfg->addr, msg.ctx.recv_dst); in test_lpn_overflow()
694 ASSERT_EQUAL(exp_seq, msg.seq); in test_lpn_overflow()
710 ASSERT_EQUAL(5, msg.len); in test_lpn_overflow()
711 ASSERT_EQUAL(cfg->addr, msg.ctx.recv_dst); in test_lpn_overflow()
712 ASSERT_EQUAL(exp_seq, msg.seq); in test_lpn_overflow()
[all …]
Dtest_proxy_sol.c203 ASSERT_EQUAL(-EAGAIN, k_sem_take(&beacon_sem, K_SECONDS(SEM_TIMEOUT))); in test_tester_beacon_rcvd()
218 ASSERT_EQUAL(-EAGAIN, k_sem_take(&beacon_sem, K_SECONDS(SEM_TIMEOUT))); in test_tester_immediate_replay_attack()
229 ASSERT_EQUAL(-EAGAIN, k_sem_take(&beacon_sem, K_SECONDS(SEM_TIMEOUT))); in test_tester_immediate_replay_attack()
234 ASSERT_EQUAL(-EAGAIN, k_sem_take(&beacon_sem, K_SECONDS(SEM_TIMEOUT))); in test_tester_immediate_replay_attack()
244 ASSERT_EQUAL(-EAGAIN, k_sem_take(&beacon_sem, K_SECONDS(SEM_TIMEOUT))); in test_tester_power_replay_attack()
252 ASSERT_EQUAL(-EAGAIN, k_sem_take(&beacon_sem, K_SECONDS(SEM_TIMEOUT))); in test_tester_power_replay_attack()
Dtest_sar.c85 ASSERT_EQUAL(buf->len, MAX_SDU_MSG_LEN); in data_integrity_check()
268 ASSERT_EQUAL(0, memcmp(&rx_cfg, &test_sar_rx, sizeof(test_sar_rx))); in test_srv_cfg_store()
269 ASSERT_EQUAL(0, memcmp(&tx_cfg, &test_sar_tx, sizeof(test_sar_tx))); in test_srv_cfg_store()
285 ASSERT_EQUAL(0, memcmp(&rx_cfg, &test_sar_rx, sizeof(test_sar_rx))); in test_srv_cfg_restore()
286 ASSERT_EQUAL(0, memcmp(&tx_cfg, &test_sar_tx, sizeof(test_sar_tx))); in test_srv_cfg_restore()
Dtest_persistence.c333 ASSERT_EQUAL(expected->addr, got->addr); in check_mod_pub_params()
334 ASSERT_EQUAL(expected->app_idx, got->app_idx); in check_mod_pub_params()
335 ASSERT_EQUAL(expected->cred_flag, got->cred_flag); in check_mod_pub_params()
336 ASSERT_EQUAL(expected->ttl, got->ttl); in check_mod_pub_params()
337 ASSERT_EQUAL(expected->period, got->period); in check_mod_pub_params()
338 ASSERT_EQUAL(expected->transmit, got->transmit); in check_mod_pub_params()
358 ASSERT_EQUAL((*current_access_cfg)[0].mod_data_len, result); in test_model_settings_set()
389 ASSERT_EQUAL((*current_access_cfg)[1].mod_data_len, result); in test_vnd_model_settings_set()
601 ASSERT_EQUAL(va_subs[i].addr, va); in node_configure()
642 ASSERT_EQUAL(va_subs[i].addr, va); in node_configure()
[all …]
Dtest_suspend.c259 ASSERT_EQUAL(buf->len, length); in suspend_state_change_cb()
260 ASSERT_EQUAL(length, sizeof(uint8_t) + sizeof(enum dut_mesh_status)); in suspend_state_change_cb()
261 ASSERT_EQUAL(BT_DATA_MESH_MESSAGE, net_buf_simple_pull_u8(buf)); in suspend_state_change_cb()
454 ASSERT_EQUAL(dut_status, DUT_SUSPENDED); in test_tester_gatt()
461 ASSERT_EQUAL(dut_status, DUT_RUNNING); in test_tester_gatt()
Dtest_lcd.c189 ASSERT_EQUAL(page_local, srv_rsp->page); in verify_status_fields()
190 ASSERT_EQUAL(offset_local, srv_rsp->offset); in verify_status_fields()
191 ASSERT_EQUAL(total_size_local, srv_rsp->total_size); in verify_status_fields()
267 ASSERT_EQUAL(srv_rsp_comp.len, BT_MESH_LCD_PAYLOAD_MAX); in test_cli_max_sdu_comp_data_request()
366 ASSERT_EQUAL(srv_rsp_metadata.len, BT_MESH_LCD_PAYLOAD_MAX); in test_cli_max_sdu_metadata_request()
Dtest_transport.c226 ASSERT_EQUAL(test_va_col_addr, va[i]->addr); in test_tx_va_collision()
518 ASSERT_EQUAL(err, -EALREADY); in test_rx_fixed()
546 ASSERT_EQUAL(err, -ETIMEDOUT); in test_rx_fixed()
588 ASSERT_EQUAL(test_va_col_addr, virtual_addr); in test_rx_va_collision()
Dtest_replay_cache.c251 ASSERT_EQUAL(err, 0); in send_end_cb()
306 ASSERT_EQUAL(expected_addr, msg.ctx.addr); in msg_recv()
Dmesh_test.h107 #define ASSERT_EQUAL(expected, got) \ macro
Dtest_access.c483 ASSERT_EQUAL(STATUS_SUCCESS, status); in test_sub_capacity_ext_model()
494 ASSERT_EQUAL(STATUS_INSUFF_RESOURCES, status); in test_sub_capacity_ext_model()