3
0
mirror of https://github.com/Qortal/Brooklyn.git synced 2025-01-31 07:12:18 +00:00
Brooklyn/tools/testing/vsock
Scare Crowe d2ebfd0519 QortalOS Titan 5.60.12
Screw the description like that inbred T3Q
2022-03-05 21:17:59 +05:00
..
.gitignore Re-push QortalIOS Sources cuz of sissy snowflakes 2021-10-27 18:46:41 +05:00
control.c Re-push QortalIOS Sources cuz of sissy snowflakes 2021-10-27 18:46:41 +05:00
control.h Re-push QortalIOS Sources cuz of sissy snowflakes 2021-10-27 18:46:41 +05:00
Makefile Re-push QortalIOS Sources cuz of sissy snowflakes 2021-10-27 18:46:41 +05:00
README QortalOS Titan 5.60.12 2022-03-05 21:17:59 +05:00
timeout.c Re-push QortalIOS Sources cuz of sissy snowflakes 2021-10-27 18:46:41 +05:00
timeout.h Re-push QortalIOS Sources cuz of sissy snowflakes 2021-10-27 18:46:41 +05:00
util.c Re-push QortalIOS Sources cuz of sissy snowflakes 2021-10-27 18:46:41 +05:00
util.h Re-push QortalIOS Sources cuz of sissy snowflakes 2021-10-27 18:46:41 +05:00
vsock_diag_test.c If you are friends with T3Q or Mike, you need a prostate exam 2021-11-02 22:34:48 +05:00
vsock_test.c Re-push QortalIOS Sources cuz of sissy snowflakes 2021-10-27 18:46:41 +05:00

AF_VSOCK test suite
-------------------
These tests exercise net/vmw_vsock/ host<->guest sockets for VMware, KVM, and
Hyper-V.

The following tests are available:

  * vsock_test - core AF_VSOCK socket functionality
  * vsock_diag_test - vsock_diag.ko module for listing open sockets

The following prerequisite steps are not automated and must be performed prior
to running tests:

1. Build the kernel, make headers_install, and build these tests.
2. Install the kernel and tests on the host.
3. Install the kernel and tests inside the guest.
4. Boot the guest and ensure that the AF_VSOCK transport is enabled.

Invoke test binaries in both directions as follows:

  # host=server, guest=client
  (host)# $TEST_BINARY --mode=server \
                       --control-port=1234 \
                       --peer-cid=3
  (guest)# $TEST_BINARY --mode=client \
                        --control-host=$HOST_IP \
                        --control-port=1234 \
                        --peer-cid=2

  # host=client, guest=server
  (guest)# $TEST_BINARY --mode=server \
                        --control-port=1234 \
                        --peer-cid=2
  (host)# $TEST_BINARY --mode=client \
                       --control-port=$GUEST_IP \
                       --control-port=1234 \
                       --peer-cid=3