/Zephyr-Core-3.7.0/tests/net/socket/tls/src/ |
D | main.c | 19 #define TEST_STR_SMALL "test" macro 413 .data = TEST_STR_SMALL, in ZTEST() 416 uint8_t rx_buf[sizeof(TEST_STR_SMALL) - 1] = { 0 }; in ZTEST() 436 zassert_mem_equal(rx_buf, TEST_STR_SMALL, sizeof(rx_buf), in ZTEST() 457 zassert_mem_equal(rx_buf, TEST_STR_SMALL, sizeof(rx_buf) - 1, in ZTEST() 469 .data = TEST_STR_SMALL, in ZTEST() 472 uint8_t rx_buf[sizeof(TEST_STR_SMALL) - 1] = { 0 }; in ZTEST() 492 zassert_mem_equal(rx_buf, TEST_STR_SMALL, sizeof(rx_buf), in ZTEST() 513 zassert_mem_equal(rx_buf, TEST_STR_SMALL, sizeof(rx_buf) - 1, in ZTEST() 541 uint8_t rx_buf[sizeof(TEST_STR_SMALL) - 1]; in test_msg_trunc() [all …]
|
/Zephyr-Core-3.7.0/tests/net/socket/service/src/ |
D | main.c | 20 #define TEST_STR_SMALL "test" macro 109 len = send(c_sock_udp, BUF_AND_SIZE(TEST_STR_SMALL), 0); in run_test_service() 110 zassert_equal(len, STRLEN(TEST_STR_SMALL), "invalid send len"); in run_test_service() 118 zassert_equal(len, STRLEN(TEST_STR_SMALL), "invalid recv len"); in run_test_service() 132 len = send(c_sock_tcp, BUF_AND_SIZE(TEST_STR_SMALL), 0); in run_test_service() 133 zassert_equal(len, STRLEN(TEST_STR_SMALL), "invalid send len"); in run_test_service() 153 zassert_equal(len, STRLEN(TEST_STR_SMALL), "invalid recv len"); in run_test_service()
|
/Zephyr-Core-3.7.0/tests/net/socket/udp/src/ |
D | main.c | 33 #define TEST_STR_SMALL "test" macro 81 sent = zsock_sendto(client_sock, TEST_STR_SMALL, strlen(TEST_STR_SMALL), in comm_sendto_recvfrom() 83 zassert_equal(sent, strlen(TEST_STR_SMALL), "sendto failed"); in comm_sendto_recvfrom() 89 zassert_equal(avail, strlen(TEST_STR_SMALL)); in comm_sendto_recvfrom() 97 zassert_equal(recved, strlen(TEST_STR_SMALL), in comm_sendto_recvfrom() 99 zassert_mem_equal(rx_buf, BUF_AND_SIZE(TEST_STR_SMALL), "wrong data"); in comm_sendto_recvfrom() 108 zassert_equal(recved, strlen(TEST_STR_SMALL), in comm_sendto_recvfrom() 110 zassert_mem_equal(rx_buf, BUF_AND_SIZE(TEST_STR_SMALL), "wrong data"); in comm_sendto_recvfrom() 150 sent = zsock_sendto(server_sock, TEST_STR_SMALL, sizeof(TEST_STR_SMALL) - 1, in comm_sendto_recvfrom() 152 zassert_equal(sent, STRLEN(TEST_STR_SMALL), "sendto failed"); in comm_sendto_recvfrom() [all …]
|
/Zephyr-Core-3.7.0/tests/net/socket/tcp/src/ |
D | main.c | 18 #define TEST_STR_SMALL "test" macro 110 strlen(TEST_STR_SMALL), in test_recv() 112 zassert_equal(strncmp(rx_buf, TEST_STR_SMALL, strlen(TEST_STR_SMALL)), in test_recv() 127 strlen(TEST_STR_SMALL), in test_recvfrom() 129 zassert_equal(strncmp(rx_buf, TEST_STR_SMALL, strlen(TEST_STR_SMALL)), in test_recvfrom() 248 test_send(c_sock, TEST_STR_SMALL, strlen(TEST_STR_SMALL), 0); in ZTEST_USER() 283 test_send(c_sock, TEST_STR_SMALL, strlen(TEST_STR_SMALL), 0); in ZTEST_USER() 525 test_send(c_sock, TEST_STR_SMALL, strlen(TEST_STR_SMALL), 0); in ZTEST() 541 test_send(c_sock, TEST_STR_SMALL, strlen(TEST_STR_SMALL), 0); in ZTEST() 596 test_sendto(c_sock, TEST_STR_SMALL, strlen(TEST_STR_SMALL), 0, in ZTEST_USER() [all …]
|
/Zephyr-Core-3.7.0/tests/net/socket/select/src/ |
D | main.c | 20 #define TEST_STR_SMALL "test" macro 122 len = zsock_send(c_sock, BUF_AND_SIZE(TEST_STR_SMALL), 0); in ZTEST_USER() 123 zassert_equal(len, STRLEN(TEST_STR_SMALL), "invalid send len"); in ZTEST_USER() 141 zassert_equal(len, STRLEN(TEST_STR_SMALL), "invalid recv len"); in ZTEST_USER()
|
/Zephyr-Core-3.7.0/tests/net/socket/poll/src/ |
D | main.c | 21 #define TEST_STR_SMALL "test" macro 89 len = zsock_send(c_sock, BUF_AND_SIZE(TEST_STR_SMALL), 0); in ZTEST() 90 zassert_equal(len, STRLEN(TEST_STR_SMALL), "invalid send len"); in ZTEST() 108 zassert_equal(len, STRLEN(TEST_STR_SMALL), "invalid recv len"); in ZTEST()
|
/Zephyr-Core-3.7.0/tests/net/vlan/src/ |
D | main.c | 90 #define TEST_STR_SMALL "test" macro 766 sent = zsock_sendto(client_sock, TEST_STR_SMALL, strlen(TEST_STR_SMALL), in comm_sendto_recvfrom() 768 zassert_equal(sent, strlen(TEST_STR_SMALL), "sendto failed (%d vs %d)", in comm_sendto_recvfrom() 769 sent, strlen(TEST_STR_SMALL)); in comm_sendto_recvfrom()
|