summaryrefslogtreecommitdiffstats
path: root/tools/testing/vsock/vsock_test.c
Commit message (Collapse)AuthorAgeFilesLines
* vsock_test: add SOCK_STREAM MSG_PEEK testStefano Garzarella2019-12-201-0/+34
| | | | | | | Test if the MSG_PEEK flags of recv(2) works as expected. Signed-off-by: Stefano Garzarella <sgarzare@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
* testing/vsock: print list of options and descriptionStefano Garzarella2019-12-201-1/+12
| | | | | | | | Since we now have several options, in the help we print the list of all supported options and a brief description of them. Signed-off-by: Stefano Garzarella <sgarzare@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
* testing/vsock: add parameters to list and skip testsStefano Garzarella2019-12-201-1/+19
| | | | | | | | | Some tests can fail with transports that have a slightly different behavior, so let's add the possibility to specify which tests to skip. Signed-off-by: Stefano Garzarella <sgarzare@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
* vsock_test: wait for the remote to close the connectionStefano Garzarella2019-12-201-4/+8
| | | | | | | | | | | Before check if a send returns -EPIPE, we need to make sure the connection is closed. To do that, we use epoll API to wait EPOLLRDHUP or EPOLLHUP events on the socket. Reported-by: Jorgen Hansen <jhansen@vmware.com> Signed-off-by: Stefano Garzarella <sgarzare@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
* VSOCK: add AF_VSOCK test casesStefan Hajnoczi2019-12-201-0/+312
The vsock_test.c program runs a test suite of AF_VSOCK test cases. Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Stefano Garzarella <sgarzare@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
OpenPOWER on IntegriCloud