| 801 | } |
| 802 | |
| 803 | static int |
| 804 | buffers_compare(const uint8_t *expected, uint16_t expected_len, |
| 805 | const uint8_t *received, uint16_t received_len) |
| 806 | { |
| 807 | TEST_ASSERT_EQUAL(expected_len, received_len, "Length mismatch %d != %d !\n", |
| 808 | expected_len, received_len); |
| 809 | |
| 810 | if (memcmp(expected, received, expected_len)) { |
| 811 | rte_hexdump(rte_log_get_stream(), "expected", expected, expected_len); |
| 812 | rte_hexdump(rte_log_get_stream(), "received", received, expected_len); |
| 813 | return TEST_FAILED; |
| 814 | } |
| 815 | |
| 816 | return TEST_SUCCESS; |
| 817 | } |
| 818 | |
| 819 | static int |
| 820 | crosscheck_all_devices(const struct crosscheck_test_profile *profile, enum crypto_op_type op_type, |
no test coverage detected