Home
last modified time | relevance | path

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

/tests/bsim/bluetooth/mesh/src/
A 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()
A Dtest_heartbeat.c63 ASSERT_EQUAL(pub_addr, sub->dst); 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()
98 ASSERT_EQUAL(pub_addr, sub->dst); in sub_hb_end_cb()
100 ASSERT_EQUAL(0, sub->remaining); in sub_hb_end_cb()
101 ASSERT_EQUAL(PUBLISH_MSG_CNT, sub->count); in sub_hb_end_cb()
102 ASSERT_EQUAL(sub_ctx.count, sub->count); in sub_hb_end_cb()
114 ASSERT_EQUAL(pub_addr, pub->dst); in pub_hb_sent_cb()
115 ASSERT_EQUAL(pub_cnt, pub->count); in pub_hb_sent_cb()
117 ASSERT_EQUAL(0, pub->net_idx); in pub_hb_sent_cb()
[all …]
A Dtest_dfu.c646 ASSERT_EQUAL(idx, (*i)++); in check_slot()
647 ASSERT_EQUAL(size, slot->size); in check_slot()
684 ASSERT_EQUAL(idx, i - 2); in test_dist_dfu_slot_create_recover()
685 ASSERT_EQUAL(size, slot->size); in test_dist_dfu_slot_create_recover()
705 ASSERT_EQUAL(0, slot_count); in check_delete_all()
1116 ASSERT_EQUAL(0, lost_targets_rem()); in test_cli_all_targets_lost_on_metadata()
1134 ASSERT_EQUAL(0, lost_targets_rem()); in test_cli_all_targets_lost_on_caps_get()
1152 ASSERT_EQUAL(0, lost_targets_rem()); in test_cli_all_targets_lost_on_update_get()
1169 ASSERT_EQUAL(0, lost_targets_rem()); in test_cli_all_targets_lost_on_verify()
1200 ASSERT_EQUAL(0, lost_targets_rem()); in test_cli_all_targets_lost_on_apply()
[all …]
A Dtest_advertiser.c130 ASSERT_EQUAL(0, err); in single_start_cb()
131 ASSERT_EQUAL(cb_msg, cb_data); in single_start_cb()
142 ASSERT_EQUAL(0, err); in single_end_cb()
153 ASSERT_EQUAL(0, err); in realloc_end_cb()
163 ASSERT_EQUAL(0, err); in seq_start_cb()
169 ASSERT_EQUAL(0, err); in seq_end_cb()
232 ASSERT_EQUAL(2, adv->b.len); in send_order_start_cb()
819 ASSERT_EQUAL(err, 0); in adv_send_end()
842 ASSERT_EQUAL(err, 0); in adv_send_start()
856 ASSERT_EQUAL(err, 0); in adv_send_start()
[all …]
A 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()
A Dtest_cdp1.c310 ASSERT_EQUAL(test_p1_elem_models[elem_idx][mod_idx + offset].cor_present, 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()
367 ASSERT_EQUAL(test_p1_elems[elem_idx].nvnd, p1_elem->nvnd); in verify_cdp1()
[all …]
A Dtest_brg.c86 ASSERT_EQUAL(1, get_device_nbr()); in test_bridge_init()
357 ASSERT_EQUAL(rsp.status, 0); in bridge_table_verify()
394 ASSERT_EQUAL(2, length); in device_data_cb()
545 ASSERT_EQUAL(recvd_msgs_cnt, 0); in test_tester_simple()
684 ASSERT_EQUAL(err, -EAGAIN); in test_tester_table_state_change()
693 ASSERT_EQUAL(err, -EAGAIN); in test_tester_table_state_change()
720 ASSERT_EQUAL(recvd_msgs_cnt, 1); in test_tester_table_state_change()
737 ASSERT_EQUAL(recvd_msgs_cnt, 0); in test_tester_table_state_change()
766 ASSERT_EQUAL(recvd_msgs_cnt, 1); in test_tester_net_key_remove()
774 ASSERT_EQUAL(err, -EAGAIN); in test_tester_net_key_remove()
[all …]
A Dtest_beacon.c347 ASSERT_EQUAL(buf->len, length); in beacon_scan_cb()
498 ASSERT_EQUAL(0x02, beacon.flags); in corrupted_beacon_test()
586 ASSERT_EQUAL(0x00, beacon.flags); in test_tx_kr_old_key()
594 ASSERT_EQUAL(0x02, beacon.flags); in test_tx_kr_old_key()
1013 ASSERT_EQUAL(snb->flags, 0x02); in snb_recv()
1014 ASSERT_EQUAL(snb->iv_idx, 1); in snb_recv()
1031 ASSERT_EQUAL(snb_cnt, 1); in test_rx_beacon_cache()
1488 ASSERT_EQUAL(prb->flags, 0x02); in priv_beacon_recv()
1489 ASSERT_EQUAL(prb->iv_idx, 1); in priv_beacon_recv()
1507 ASSERT_EQUAL(prb_cnt, 1); in test_rx_priv_beacon_cache()
[all …]
A Dtest_blob.c148 ASSERT_EQUAL(caps->modes, BT_MESH_BLOB_XFER_MODE_ALL); in blob_cli_caps()
563 ASSERT_EQUAL(BLOB_GROUP_ADDR, dst); in broadcast_send()
802 ASSERT_EQUAL(BLOB_CLI_ADDR + 1, dst_addr_last); in test_cli_broadcast_unicast_seq()
808 ASSERT_EQUAL(BLOB_CLI_ADDR + 2, dst_addr_last); in test_cli_broadcast_unicast_seq()
818 ASSERT_EQUAL(BLOB_CLI_ADDR + 2, dst_addr_last); in test_cli_broadcast_unicast_seq()
1525 ASSERT_EQUAL(0, blob_srv.state.ttl); in srv_check_reboot_and_continue()
1526 ASSERT_EQUAL(BLOB_CLI_ADDR, blob_srv.state.cli); in srv_check_reboot_and_continue()
1527 ASSERT_EQUAL(1, blob_srv.state.timeout_base); in srv_check_reboot_and_continue()
1531 ASSERT_EQUAL(1, blob_srv.state.xfer.id); in srv_check_reboot_and_continue()
1559 ASSERT_EQUAL(0, blob_srv.state.ttl); in test_srv_stop()
[all …]
A Dtest_provision.c647 ASSERT_EQUAL(0, status); in node_configure_and_reset()
653 ASSERT_EQUAL(0, status); in node_configure_and_reset()
666 ASSERT_EQUAL(0, status); in node_configure_and_reset()
672 ASSERT_EQUAL(0, status); in node_configure_and_reset()
678 ASSERT_EQUAL(0, status); in node_configure_and_reset()
685 ASSERT_EQUAL(0, status); in node_configure_and_reset()
980 ASSERT_EQUAL(5, scan_status.timeout); in provision_remote()
1255 ASSERT_EQUAL(0, page); in reprovision_remote_comp_data_client()
1695 ASSERT_EQUAL(page, page_rsp); in comp_data_get()
1821 ASSERT_EQUAL(-EAGAIN, err); in test_provisioner_pb_remote_client_ncrp_second_time()
[all …]
A Dtest_friendship.c704 ASSERT_EQUAL(5, msg.len); in test_lpn_overflow()
706 ASSERT_EQUAL(exp_seq, msg.seq); in test_lpn_overflow()
711 ASSERT_EQUAL(5, msg.len); in test_lpn_overflow()
713 ASSERT_EQUAL(exp_seq, msg.seq); in test_lpn_overflow()
729 ASSERT_EQUAL(5, msg.len); in test_lpn_overflow()
731 ASSERT_EQUAL(exp_seq, msg.seq); in test_lpn_overflow()
739 ASSERT_EQUAL(exp_seq, msg.seq); in test_lpn_overflow()
743 ASSERT_EQUAL(5, msg.len); in test_lpn_overflow()
786 ASSERT_EQUAL(vaddr, va->addr); in test_lpn_group()
892 ASSERT_EQUAL(vaddr, va->addr); in test_lpn_loopback()
[all …]
A 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()
A 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()
A Dtest_persistence.c344 ASSERT_EQUAL(expected->addr, got->addr); in check_mod_pub_params()
345 ASSERT_EQUAL(expected->app_idx, got->app_idx); in check_mod_pub_params()
346 ASSERT_EQUAL(expected->cred_flag, got->cred_flag); in check_mod_pub_params()
347 ASSERT_EQUAL(expected->ttl, got->ttl); in check_mod_pub_params()
348 ASSERT_EQUAL(expected->period, got->period); in check_mod_pub_params()
349 ASSERT_EQUAL(expected->transmit, got->transmit); in check_mod_pub_params()
674 ASSERT_EQUAL(va_subs[i].addr, va); in node_configure()
715 ASSERT_EQUAL(va_subs[i].addr, va); in node_configure()
792 ASSERT_EQUAL((*cfg)[m].subs_count, subs_count); in node_configuration_check()
794 ASSERT_EQUAL((*cfg)[m].subs[i], subs[i]); in node_configuration_check()
[all …]
A 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()
459 ASSERT_EQUAL(dut_status, DUT_SUSPENDED); in test_tester_gatt()
466 ASSERT_EQUAL(dut_status, DUT_RUNNING); in test_tester_gatt()
A 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()
A 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()
A Dtest_replay_cache.c251 ASSERT_EQUAL(err, 0); in send_end_cb()
306 ASSERT_EQUAL(expected_addr, msg.ctx.addr); in msg_recv()
A Dmesh_test.h107 #define ASSERT_EQUAL(expected, got) \ macro
A 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()

Completed in 53 milliseconds