Home
last modified time | relevance | path

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

/dpdk/app/test/
H A Dtest_service_cores.c147 TEST_ASSERT_EQUAL(-EINVAL, in dummy_register()
152 TEST_ASSERT_EQUAL(-EINVAL, in dummy_register()
173 TEST_ASSERT_EQUAL(-ENODEV, in service_get_by_name()
176 TEST_ASSERT_EQUAL(-EINVAL, in service_get_by_name()
183 TEST_ASSERT_EQUAL(-EINVAL, in service_get_by_name()
187 TEST_ASSERT_EQUAL(-EINVAL, in service_get_by_name()
204 TEST_ASSERT_EQUAL(-ENODEV, in service_get_by_name()
295 TEST_ASSERT_EQUAL(0, attr_value, in service_attr_get()
301 TEST_ASSERT_EQUAL(0, attr_value, in service_attr_get()
341 TEST_ASSERT_EQUAL(0, attr_value, in service_attr_get()
[all …]
H A Dtest_fbarray.c113 TEST_ASSERT_EQUAL(rte_errno, EINVAL, "Wrong errno value\n"); in test_invalid()
116 TEST_ASSERT_EQUAL(rte_errno, EINVAL, "Wrong errno value\n"); in test_invalid()
123 TEST_ASSERT_EQUAL(rte_errno, EINVAL, "Wrong errno value\n"); in test_invalid()
552 TEST_ASSERT_EQUAL(rte_fbarray_find_contig_free(arr, in test_biggest()
576 TEST_ASSERT_EQUAL(rte_fbarray_find_contig_free(arr, in test_biggest()
600 TEST_ASSERT_EQUAL(rte_fbarray_find_contig_free(arr, in test_biggest()
622 TEST_ASSERT_EQUAL(rte_fbarray_find_contig_used(arr, in ensure_correct()
635 TEST_ASSERT_EQUAL(rte_fbarray_find_next_n_used(arr, in ensure_correct()
645 TEST_ASSERT_EQUAL(rte_fbarray_find_prev_n_used(arr, in ensure_correct()
649 TEST_ASSERT_EQUAL(rte_fbarray_find_contig_free(arr, in ensure_correct()
[all …]
H A Dtest_event_timer_adapter.c842 TEST_ASSERT_EQUAL(ev_tim[j]->state, in _cancel_producer_burst()
849 TEST_ASSERT_EQUAL(ret, MAX_BURST, in _cancel_producer_burst()
854 TEST_ASSERT_EQUAL(arm_count, MAX_TIMERS, in _cancel_producer_burst()
916 TEST_ASSERT_EQUAL(ev_tim[i]->state, in _cancel_burst_thread()
930 TEST_ASSERT_EQUAL(cancel_count, MAX_TIMERS, in _cancel_burst_thread()
1121 TEST_ASSERT_EQUAL(info.event_dev_port_id, 1, in adapter_get_info()
1209 TEST_ASSERT_EQUAL(ret, num_evtims, in stat_inc_reset_ev_enq()
1425 TEST_ASSERT_EQUAL(evtim, evtim2, in event_timer_arm_expiry()
1475 TEST_ASSERT_EQUAL(evtim, evtim2, in event_timer_arm_rearm()
1495 TEST_ASSERT_EQUAL(evtim, evtim2, in event_timer_arm_rearm()
[all …]
H A Dtest_link_bonding.c1093 TEST_ASSERT_EQUAL(slave_count, 0, in test_set_bonded_port_initialization_mac_assignment()
1288 TEST_ASSERT_EQUAL(slave_count, 0, in test_status_interrupt()
1459 TEST_ASSERT_EQUAL(refcnt, val, in verify_mbufs_ref_count()
1933 TEST_ASSERT_EQUAL(slave_count, in test_roundrobin_verify_slave_link_status_change_behaviour()
1947 TEST_ASSERT_EQUAL( in test_roundrobin_verify_slave_link_status_change_behaviour()
1954 TEST_ASSERT_EQUAL( in test_roundrobin_verify_slave_link_status_change_behaviour()
2515 TEST_ASSERT_EQUAL(slave_count, 4, in test_activebackup_verify_slave_link_status_change_failover()
2521 TEST_ASSERT_EQUAL(slave_count, 4, in test_activebackup_verify_slave_link_status_change_failover()
4029 TEST_ASSERT_EQUAL(slave_count, 4, in test_broadcast_verify_slave_link_status_change_behaviour()
4035 TEST_ASSERT_EQUAL(slave_count, 4, in test_broadcast_verify_slave_link_status_change_behaviour()
[all …]
H A Dtest_sched.c175 TEST_ASSERT_EQUAL(err, 10, "Wrong enqueue, err=%d\n", err); in test_sched()
178 TEST_ASSERT_EQUAL(err, 10, "Wrong dequeue, err=%d\n", err); in test_sched()
185 TEST_ASSERT_EQUAL(color, RTE_COLOR_YELLOW, "Wrong color\n"); in test_sched()
190 TEST_ASSERT_EQUAL(subport, SUBPORT, "Wrong subport\n"); in test_sched()
191 TEST_ASSERT_EQUAL(pipe, PIPE, "Wrong pipe\n"); in test_sched()
192 TEST_ASSERT_EQUAL(traffic_class, TC, "Wrong traffic_class\n"); in test_sched()
193 TEST_ASSERT_EQUAL(queue, QUEUE, "Wrong queue\n"); in test_sched()
202 TEST_ASSERT_EQUAL(subport_stats.n_pkts_tc[TC-1], 10, "Wrong subport stats\n"); in test_sched()
208 TEST_ASSERT_EQUAL(queue_stats.n_pkts, 10, "Wrong queue stats\n"); in test_sched()
H A Dtest_link_bonding_mode4.c366 TEST_ASSERT_EQUAL(retval, 0, in remove_slaves_and_stop_bonded_device()
564 TEST_ASSERT_EQUAL(retval, lacp_tx_buf_cnt, in bond_handshake_reply()
685 TEST_ASSERT_EQUAL(retval, AGG_STABLE, in test_mode4_agg_mode_selection()
707 TEST_ASSERT_EQUAL(retval, AGG_BANDWIDTH, in test_mode4_agg_mode_selection()
727 TEST_ASSERT_EQUAL(retval, AGG_COUNT, in test_mode4_agg_mode_selection()
799 TEST_ASSERT_EQUAL(retval, count, in generate_and_put_packets()
1059 TEST_ASSERT_EQUAL(slow_cnt, 0, in test_mode4_tx_burst()
1139 TEST_ASSERT_EQUAL(slow_cnt, 0, in test_mode4_tx_burst()
1218 TEST_ASSERT_EQUAL(retval, 1, in test_mode4_marker()
1232 TEST_ASSERT_EQUAL(retval, 0, in test_mode4_marker()
[all …]
H A Dtest_logs.c72 TEST_ASSERT_EQUAL(ret, exp1, \ in test_logs()
76 TEST_ASSERT_EQUAL(ret, exp2, \ in test_logs()
80 TEST_ASSERT_EQUAL(ret, exp3, \ in test_logs()
99 TEST_ASSERT_EQUAL(ret, RTE_LOG_INFO, in test_logs()
104 TEST_ASSERT_EQUAL(ret, RTE_LOG_INFO, in test_logs()
109 TEST_ASSERT_EQUAL(ret, RTE_LOG_ERR, in test_logs()
H A Dtest_efd.c142 TEST_ASSERT_EQUAL(rte_efd_lookup(handle, test_socket_id, &keys[0]), in test_add_delete()
149 TEST_ASSERT_EQUAL(prev_value, data[0], in test_add_delete()
184 TEST_ASSERT_EQUAL(rte_efd_lookup(handle, test_socket_id, &keys[1]), in test_add_update_delete()
193 TEST_ASSERT_EQUAL(rte_efd_lookup(handle, test_socket_id, &keys[1]), in test_add_update_delete()
199 TEST_ASSERT_EQUAL(prev_value, data[1], in test_add_update_delete()
231 TEST_ASSERT_EQUAL(result, handle, "could not find existing efd table"); in test_efd_find_existing()
285 TEST_ASSERT_EQUAL(result[i], data[i], in test_five_keys()
305 TEST_ASSERT_EQUAL(rte_efd_lookup(handle, test_socket_id, in test_five_keys()
316 TEST_ASSERT_EQUAL(prev_value, data[i], in test_five_keys()
H A Dtest_eventdev.c190 TEST_ASSERT_EQUAL(-EINVAL, in test_eventdev_configure()
193 TEST_ASSERT_EQUAL(-EINVAL, in test_eventdev_configure()
196 TEST_ASSERT_EQUAL(-EINVAL, in test_eventdev_configure()
199 TEST_ASSERT_EQUAL(-EINVAL, in test_eventdev_configure()
202 TEST_ASSERT_EQUAL(-EINVAL, in test_eventdev_configure()
207 TEST_ASSERT_EQUAL(-EINVAL, in test_eventdev_configure()
211 TEST_ASSERT_EQUAL(-EINVAL, in test_eventdev_configure()
376 TEST_ASSERT_EQUAL(priority, in test_eventdev_queue_attr_priority()
380 TEST_ASSERT_EQUAL(priority, in test_eventdev_queue_attr_priority()
525 TEST_ASSERT_EQUAL(get_val, set_val, in test_eventdev_queue_attr_weight_runtime()
[all …]
H A Dtest_reorder.c59 TEST_ASSERT_EQUAL(b, test_params->b, in test_reorder_create()
108 TEST_ASSERT_EQUAL(b, test_params->b, in test_reorder_find_existing()
129 TEST_ASSERT_EQUAL(b1, b2, "Failed to find existing reorder buffer"); in test_reorder_free()
H A Dtest_ipsec.c854 TEST_ASSERT_EQUAL(ut_params->cop[i]->type, in lksd_proto_ipsec()
858 TEST_ASSERT_EQUAL(ut_params->cop[i]->status, in lksd_proto_ipsec()
862 TEST_ASSERT_EQUAL(ut_params->cop[i]->sess_type, in lksd_proto_ipsec()
1235 TEST_ASSERT_EQUAL(ut_params->obuf[j]->data_len, in crypto_inb_burst_null_null_check()
1238 TEST_ASSERT_EQUAL(ut_params->obuf[j]->data_len, in crypto_inb_burst_null_null_check()
1337 TEST_ASSERT_EQUAL(ut_params->obuf[j]->data_len, in crypto_outb_burst_null_null_check()
1340 TEST_ASSERT_EQUAL(ut_params->obuf[j]->pkt_len, in crypto_outb_burst_null_null_check()
1443 TEST_ASSERT_EQUAL(ut_params->ibuf[j]->data_len, in inline_inb_burst_null_null_check()
1446 TEST_ASSERT_EQUAL(ut_params->ibuf[j]->pkt_len, in inline_inb_burst_null_null_check()
1449 TEST_ASSERT_EQUAL(ut_params->ibuf[j]->data_len, in inline_inb_burst_null_null_check()
[all …]
H A Dtest_security.c137 TEST_ASSERT_EQUAL(exp_calls, mock_data.called, \
141 TEST_ASSERT_EQUAL(0, mock_data.failed, \
156 TEST_ASSERT_EQUAL(exp_ret, f_ret, "Expecting " RTE_STR(f_name) \
177 TEST_ASSERT_EQUAL(expected_sessions_count, \
197 TEST_ASSERT_EQUAL(expected_mempool_usage, mempool_usage, \
216 TEST_ASSERT_EQUAL(expected_priv_mp_usage, priv_mp_usage, \
283 TEST_ASSERT_EQUAL(0, ret, in mock_session_create()
724 TEST_ASSERT_EQUAL(sess, mock_session_create_exp.sess, in ut_setup_with_session()
914 TEST_ASSERT_EQUAL(0, ret, in test_session_create_mempool_empty()
919 TEST_ASSERT_EQUAL(0, ret, in test_session_create_mempool_empty()
[all …]
H A Dtest_cryptodev_asym.c636 TEST_ASSERT_EQUAL(status, 0, "Test failed"); in test_one_by_one()
675 TEST_ASSERT_EQUAL(status, 0, "Test failed"); in test_rsa_sign_verify()
715 TEST_ASSERT_EQUAL(status, 0, "Test failed"); in test_rsa_enc_dec()
755 TEST_ASSERT_EQUAL(status, 0, "Test failed"); in test_rsa_sign_verify_crt()
795 TEST_ASSERT_EQUAL(status, 0, "Test failed"); in test_rsa_enc_dec_crt()
1487 TEST_ASSERT_EQUAL(status, 0, "Test failed"); in test_mod_inv()
1599 TEST_ASSERT_EQUAL(status, 0, "Test failed"); in test_mod_exp()
1618 TEST_ASSERT_EQUAL(status, 0, "Test failed"); in test_dh_keygenration()
1624 TEST_ASSERT_EQUAL(status, 0, "Test failed"); in test_dh_keygenration()
1630 TEST_ASSERT_EQUAL(status, 0, "Test failed"); in test_dh_keygenration()
[all …]
H A Dtest_event_eth_tx_adapter.c457 TEST_ASSERT_EQUAL(r, m, "mbuf comparison failed" in tx_adapter_single()
600 TEST_ASSERT_EQUAL(pbufs[i], &bufs[i], in tx_adapter_service()
611 TEST_ASSERT_EQUAL(stats.tx_packets, MAX_NUM_QUEUE * RING_SIZE, in tx_adapter_service()
621 TEST_ASSERT_EQUAL(stats.tx_packets, 0, in tx_adapter_service()
H A Dtest_event_crypto_adapter.c130 TEST_ASSERT_EQUAL(ret, NUM, "Failed to send event to crypto adapter\n"); in send_recv_ev()
358 TEST_ASSERT_EQUAL(ret, NUM, "Failed to enqueue to cryptodev\n"); in send_op_recv_ev()
656 TEST_ASSERT_EQUAL(queue_count, 2, "Unexpected queue count\n"); in configure_eventdev()
676 TEST_ASSERT_EQUAL(port_count, 1, "Unexpected port count\n"); in configure_eventdev()
H A Dtest_cryptodev.c2207 TEST_ASSERT_EQUAL(status, 0, "Session init failed"); in test_AES_CBC_HMAC_SHA1_encrypt_digest()
2465 TEST_ASSERT_EQUAL(status, 0, "session init failed"); in create_wireless_algo_hash_session()
2507 TEST_ASSERT_EQUAL(status, 0, "session init failed"); in create_wireless_algo_cipher_session()
2630 TEST_ASSERT_EQUAL(status, 0, "session init failed"); in create_wireless_algo_cipher_auth_session()
10954 TEST_ASSERT_EQUAL(ut_params->op->status, in test_authenticated_decryption()
11391 TEST_ASSERT_EQUAL(ut_params->op->status, in test_authenticated_decryption_oop()
11460 TEST_ASSERT_EQUAL(ut_params->op->sess_type, in test_authenticated_encryption_sessionless()
11568 TEST_ASSERT_EQUAL(ut_params->op->sess_type, in test_authenticated_decryption_sessionless()
11598 TEST_ASSERT_EQUAL(ut_params->op->status, in test_authenticated_decryption_sessionless()
12392 TEST_ASSERT_EQUAL( in test_null_burst_operation()
[all …]
H A Dtest.h29 #define TEST_ASSERT_EQUAL RTE_TEST_ASSERT_EQUAL macro