/Zephyr-latest/tests/bsim/bluetooth/mesh/src/ |
D | test_replay_cache.c | 147 ASSERT_TRUE(is_tx_succeeded); in test_tx_immediate_replay_attack() 165 ASSERT_TRUE(!is_tx_succeeded); in test_tx_immediate_replay_attack() 210 ASSERT_TRUE(!is_tx_succeeded); in test_tx_power_replay_attack() 226 ASSERT_TRUE(is_tx_succeeded); in test_tx_power_replay_attack() 333 ASSERT_TRUE(msg_recv(100 + i)); in test_rx_rpl_frag() 339 ASSERT_TRUE(msg_send(rx_cfg.addr, tx_cfg.addr)); in test_rx_rpl_frag() 342 ASSERT_TRUE(ivi_update_toggle()); in test_rx_rpl_frag() 347 ASSERT_TRUE(msg_recv(100)); in test_rx_rpl_frag() 348 ASSERT_TRUE(msg_recv(102)); in test_rx_rpl_frag() 353 ASSERT_TRUE(msg_send(rx_cfg.addr, tx_cfg.addr)); in test_rx_rpl_frag() [all …]
|
D | test_beacon.c | 151 ASSERT_TRUE(!atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_INITIATOR)); in tx_on_iv_update_test() 152 ASSERT_TRUE(!atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_IN_PROGRESS)); in tx_on_iv_update_test() 153 ASSERT_TRUE(!atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_PENDING)); in tx_on_iv_update_test() 154 ASSERT_TRUE(!atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_TEST)); in tx_on_iv_update_test() 155 ASSERT_TRUE(bt_mesh.iv_index == 0); in tx_on_iv_update_test() 161 ASSERT_TRUE(atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_TEST)); in tx_on_iv_update_test() 163 ASSERT_TRUE(bt_mesh_iv_update()); in tx_on_iv_update_test() 164 ASSERT_TRUE(atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_IN_PROGRESS)); in tx_on_iv_update_test() 165 ASSERT_TRUE(bt_mesh.iv_index == 1); in tx_on_iv_update_test() 169 ASSERT_TRUE(!bt_mesh_iv_update()); in tx_on_iv_update_test() [all …]
|
D | test_blob.c | 163 ASSERT_TRUE(lost_target_find_and_remove(blobt->addr)); in blob_cli_lost_target() 383 ASSERT_TRUE(blob_cli_xfer.target_count < ARRAY_SIZE(blob_cli_xfer.targets)); in target_srv_add() 426 ASSERT_TRUE(srv1->acked); in test_cli_caps_all_rsp() 428 ASSERT_TRUE(srv2->acked); in test_cli_caps_all_rsp() 441 ASSERT_TRUE(srv1->acked); in test_cli_caps_partial_rsp() 444 ASSERT_TRUE(srv2->timedout); in test_cli_caps_partial_rsp() 457 ASSERT_TRUE(srv1->timedout); in test_cli_caps_no_rsp() 459 ASSERT_TRUE(srv2->timedout); in test_cli_caps_no_rsp() 500 ASSERT_TRUE(srv1->acked); in test_cli_caps_cancelled() 520 ASSERT_TRUE(srv1->acked); in test_cli_caps_cancelled() [all …]
|
D | test_iv_index.c | 68 ASSERT_TRUE(bt_mesh_net_iv_update(TEST_IV_IDX + 2, BCN_IV_IN_IDLE)); in test_ivu_recovery() 88 ASSERT_TRUE(bt_mesh_net_iv_update(TEST_IV_IDX + 1, BCN_IV_IN_IDLE)); in test_ivu_recovery() 109 ASSERT_TRUE(bt_mesh_net_iv_update(TEST_IV_IDX, BCN_IV_IN_IDLE)); in test_ivu_normal() 122 ASSERT_TRUE(bt_mesh_net_iv_update(TEST_IV_IDX + 1, BCN_IV_IN_PROGRESS)); in test_ivu_normal() 123 ASSERT_TRUE(atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_IN_PROGRESS)); in test_ivu_normal() 143 ASSERT_TRUE(atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_IN_PROGRESS)); in test_ivu_deferring()
|
D | test_dfu.c | 192 ASSERT_TRUE(expect_dfu_start); in target_dfu_start() 210 ASSERT_TRUE(expect_dfu_xfer_end); in target_dfu_transfer_end() 211 ASSERT_TRUE(success); in target_dfu_transfer_end() 255 ASSERT_TRUE(expect_dfu_apply); in target_dfu_apply() 549 ASSERT_TRUE(slot_add(NULL)); in test_dist_dfu() 551 ASSERT_TRUE(dfu_targets_cnt > 0); in test_dist_dfu() 567 ASSERT_TRUE(dfu_targets_cnt > 0); in test_dist_dfu_self_update() 573 ASSERT_TRUE(slot_add(NULL)); in test_dist_dfu_self_update() 651 ASSERT_TRUE(memcmp(fwid, slot->fwid, fwid_len) == 0); in check_slot() 655 ASSERT_TRUE(memcmp(metadata, slot->metadata, metadata_len) == 0); in check_slot() [all …]
|
D | test_provision.c | 342 ASSERT_TRUE(size == sizeof(uint32_t)); in delayed_input() 417 ASSERT_TRUE(test_step < ARRAY_SIZE(oob_auth_test_vector)); in oob_auth_set() 453 ASSERT_TRUE(status == PSA_SUCCESS); in generate_oob_key_pair() 457 ASSERT_TRUE(status == PSA_SUCCESS); in generate_oob_key_pair() 459 ASSERT_TRUE(key_len == PSA_KEY_EXPORT_ECC_PUBLIC_KEY_MAX_SIZE(256)); in generate_oob_key_pair() 462 ASSERT_TRUE(status == PSA_SUCCESS); in generate_oob_key_pair() 464 ASSERT_TRUE(key_len == sizeof(private_key_be)); in generate_oob_key_pair() 560 ASSERT_TRUE(subs_count == 0); in node_configure_and_reset() 900 ASSERT_TRUE(bt_mesh_is_provisioned()); in device_pb_remote_server_setup() 1087 ASSERT_TRUE(bt_mesh_key_compare(prev_node_dev_key, &node->dev_key)); in reprovision_remote_devkey_client() [all …]
|
D | test_persistence.c | 348 ASSERT_TRUE(name != NULL); in test_model_settings_set() 354 ASSERT_TRUE(name == NULL); in test_model_settings_set() 356 ASSERT_TRUE(current_access_cfg != NULL); in test_model_settings_set() 379 ASSERT_TRUE(name != NULL); in test_vnd_model_settings_set() 385 ASSERT_TRUE(name == NULL); in test_vnd_model_settings_set() 387 ASSERT_TRUE(current_access_cfg != NULL); in test_vnd_model_settings_set() 446 ASSERT_TRUE(subnet != NULL); in provisioner_setup() 744 ASSERT_TRUE(current_access_cfg != NULL); in test_access_data_load() 901 ASSERT_TRUE(current_stack_cfg != NULL); in test_cfg_save() 992 ASSERT_TRUE(current_stack_cfg != NULL); in test_cfg_load() [all …]
|
D | test_brg.c | 194 ASSERT_TRUE(subnet != NULL); in tester_setup() 651 ASSERT_TRUE(va_entry != NULL); in test_tester_simple_va() 934 ASSERT_TRUE(!atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_IN_PROGRESS)); in test_tester_ivu() 935 ASSERT_TRUE(bt_mesh.iv_index == test_ividx); in test_tester_ivu() 955 ASSERT_TRUE(bt_mesh_iv_update()); in test_tester_ivu() 956 ASSERT_TRUE(atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_IN_PROGRESS)); in test_tester_ivu() 957 ASSERT_TRUE(bt_mesh.iv_index == iv_index + 1); in test_tester_ivu() 965 ASSERT_TRUE(!bt_mesh_iv_update()); in test_tester_ivu() 966 ASSERT_TRUE(!atomic_test_bit(bt_mesh.flags, BT_MESH_IVU_IN_PROGRESS)); in test_tester_ivu() 967 ASSERT_TRUE(bt_mesh.iv_index == iv_index + 1); in test_tester_ivu()
|
D | dfu_blob_common.c | 21 ASSERT_TRUE(lost_targets.rem_cnt > 0); in lost_target_find_and_remove()
|
D | test_lcd.c | 165 ASSERT_TRUE(node); in target_node_alloc() 181 ASSERT_TRUE(memcmp(local_data->data, merged_data, ARRAY_SIZE(merged_data)) == 0); in merge_and_compare_assert() 218 ASSERT_TRUE(memcmp(srv_rsp->data->data, local_data->data, srv_rsp->data->len) == 0); in rsp_equals_local_data_assert() 308 ASSERT_TRUE(total_size <= CONFIG_BT_MESH_COMP_PST_BUF_SIZE); in test_cli_split_comp_data_request()
|
D | test_access.c | 126 ASSERT_TRUE(prev_num != num); in test_msgf_handler() 641 ASSERT_TRUE(jitter <= 10); in pub_jitter_check() 677 ASSERT_TRUE(jitter <= RX_JITTER_MAX); in recv_jitter_check() 921 ASSERT_TRUE(jitter <= 10); in test_tx_cancel() 969 ASSERT_TRUE(jitter <= RX_JITTER_MAX); in test_rx_cancel()
|
D | mesh_test.h | 70 #define ASSERT_TRUE(cond) \ macro
|
D | test_heartbeat.c | 65 ASSERT_TRUE(sub->remaining <= SUBSCRIBE_PERIOD_SEC); in sub_hb_recv_cb()
|
D | test_friendship.c | 766 ASSERT_TRUE(va != NULL); in test_lpn_group() 872 ASSERT_TRUE(va != NULL); in test_lpn_loopback() 1063 ASSERT_TRUE(va[i] != NULL); in test_lpn_va_collision()
|
D | test_sar.c | 89 ASSERT_TRUE(memcmp(net_buf_simple_pull_mem(buf, MAX_SDU_MSG_LEN), dummy_msg, in data_integrity_check()
|
D | test_advertiser.c | 97 ASSERT_TRUE(delta >= (interval - 5) && in check_delta_time() 122 ASSERT_TRUE(duration >= 90 && duration <= 200); in single_start_cb()
|
D | test_suspend.c | 70 ASSERT_TRUE(prev_num != num); in msg_handler()
|