Searched refs:test_str (Results 1 – 7 of 7) sorted by relevance
/linux/tools/testing/selftests/net/ |
H A D | tls.c | 235 char const *test_str = "test_read"; in TEST_F() local 239 ASSERT_EQ(strlen(test_str) + 1, send_len); in TEST_F() 241 EXPECT_EQ(send(self->fd, test_str, send_len, 0), send_len); in TEST_F() 243 EXPECT_EQ(memcmp(buf, test_str, send_len), 0); in TEST_F() 274 char const *test_str = "test_read"; in TEST_F() local 286 EXPECT_EQ(send(self->fd, test_str, send_len, 0), -1); in TEST_F() 435 char const *test_str = "test_send"; in TEST_F() local 436 int to_send = strlen(test_str) + 1; in TEST_F() 445 EXPECT_EQ(send(self->fd, test_str, to_send, 0), to_send); in TEST_F() 447 EXPECT_EQ(memcmp(test_str, recv_buf, to_send), 0); in TEST_F() [all …]
|
/linux/tools/testing/selftests/drivers/net/ |
H A D | xdp.py | 91 test_str = "".join(random.choice(string.ascii_lowercase) for _ in range(size)) 92 recvd_str = _exchg_udp(cfg, port, test_str) 94 return recvd_str == test_str 422 test_str = "".join(random.choice(string.ascii_lowercase) for _ in range(pkt_sz)) 423 recvd_str = _exchg_udp(cfg, port, test_str) 438 expected_data = test_str + (offset * chr(int(tag, 16))) 440 expected_data = test_str[0:pkt_sz + offset] 549 test_str = ''.join(random.choice(string.ascii_lowercase) for _ in range(pkt_sz)) 558 recvd_str = _exchg_udp(cfg, port, test_str) 573 expected_data = chr(int(tag, 16)) * (0 - offset) + test_str [all...] |
/linux/tools/testing/selftests/kvm/ |
H A D | guest_print_test.c | 160 char test_str[UCALL_BUFFER_LEN + 10]; in guest_code_limits() local 162 memset(test_str, 'a', sizeof(test_str)); in guest_code_limits() 163 test_str[sizeof(test_str) - 1] = 0; in guest_code_limits() 165 GUEST_PRINTF("%s", test_str); in guest_code_limits()
|
/linux/tools/testing/selftests/bpf/ |
H A D | testing_helpers.c | 77 char *test_str, in do_insert_test() argument 87 if (strcmp(test_str, test->name) == 0) { in do_insert_test() 88 free(test_str); in do_insert_test() 100 test->name = test_str; in do_insert_test()
|
/linux/drivers/net/ethernet/intel/fm10k/ |
H A D | fm10k_tlv.c | 597 static const unsigned char test_str[] = "fm10k"; variable 644 test_str); in fm10k_tlv_msg_test_generate_data() 736 if (!err && memcmp(test_str, result_str, sizeof(test_str))) in fm10k_tlv_msg_test()
|
/linux/drivers/net/ethernet/sfc/ |
H A D | ethtool_common.c | 261 char unit_str[ETH_GSTRING_LEN], test_str[ETH_GSTRING_LEN]; in efx_fill_test() local 274 snprintf(test_str, sizeof(test_str), test_format, test_id); in efx_fill_test() 277 "%-6s %-24s", unit_str, test_str); in efx_fill_test()
|
/linux/drivers/net/ethernet/sfc/falcon/ |
H A D | ethtool.c | 213 char unit_str[ETH_GSTRING_LEN], test_str[ETH_GSTRING_LEN]; in ef4_fill_test() local 226 snprintf(test_str, sizeof(test_str), test_format, test_id); in ef4_fill_test() 229 "%-6s %-24s", unit_str, test_str); in ef4_fill_test()
|