Skip to content

Commit

Permalink
Set default value for vsock_test_tool
Browse files Browse the repository at this point in the history
Signed-off-by: qcheng-redhat <[email protected]>
  • Loading branch information
qcheng-redhat committed Jun 28, 2024
1 parent f860381 commit 9ef2dea
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 25 deletions.
5 changes: 2 additions & 3 deletions qemu/tests/cfg/nested_vsock_con_sockets.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
vsocks = vhost_vsock0
vsock_port = 2345
no RHEL.7, RHEL.8.0, RHEL.8.1, RHEL.8.2
vsock_test_tool = ncat
RHEL.8:
vsock_test_tool = nc_vsock
RHEL.9:
vsock_test_tool = ncat
vsock_test_tool = nc_vsock
disable_firewall = "systemctl stop firewalld.service"
5 changes: 2 additions & 3 deletions qemu/tests/cfg/nested_vsock_con_sockets_l1.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@
wait_response_timeout = 1800
#mq_port = 2000
vsocks = vhost_vsock0
vsock_test_tool = ncat
RHEL.8:
vsock_test_tool = nc_vsock
RHEL.9:
vsock_test_tool = ncat
vsock_test_tool = nc_vsock
host_cid = 2
socat_cmd = "socat vsock-listen:%s,reuseaddr,fork vsock-connect:2:%s &"
disable_firewall = "systemctl stop firewalld.service"
37 changes: 18 additions & 19 deletions qemu/tests/cfg/vsock_test.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@
no Windows
type = vsock_test
vsocks = vhost_vsock0
vsock_test_tool = ncat
RHEL.7, RHEL.8:
vsock_test_tool = nc_vsock
RHEL.9:
vsock_test_tool = ncat
vsock_test_tool = nc_vsock
# TODO: Work out a python version nc-vsock and use the APIs directly
variants:
- @basic_test:
Expand All @@ -17,15 +16,15 @@
addr_pattern = '\d\d:\d\d\.\d'
device_pattern = 'Communication controller: Red Hat.* Device'
q35:
device_pattern = 'Communication controller: Red Hat.* Virtio socket'
RHEL.7, RHEL.8.1, RHEL.8.2:
device_pattern = 'Communication controller: Red Hat.* Device'
device_pattern = 'Communication controller: Red Hat.* Virtio socket'
RHEL.7, RHEL.8.1, RHEL.8.2:
device_pattern = 'Communication controller: Red Hat.* Device'
s390x:
check_vsock_cmd = 'lscss'
addr_pattern = '0.1.2345'
device_pattern = '\d\.\d\.\d\d\d\d'
dmesg_check = 'no'
devno = 'fe.1.2345'
check_vsock_cmd = 'lscss'
addr_pattern = '0.1.2345'
device_pattern = '\d\.\d\.\d\d\d\d'
dmesg_check = 'no'
devno = 'fe.1.2345'
- migration_with_vsock:
type = migration_with_vsock
- iommu_enabled:
Expand All @@ -44,11 +43,11 @@
virtio_dev_disable_legacy = on
virtio_dev_disable_modern = off
- vsock_test_suite:
no RHEL.6 RHEL.7 RHEL.8
no Host_RHEL.m6 Host_RHEL.m7 Host_RHEL.m8
type = vsock_test_suite
only q35, aarch64
host_cid = 2
disable_firewall = "systemctl stop firewalld.service"
server_cmd = "%s --mode=server --control-port=%s --peer-cid=%s"
client_cmd = "%s --mode=client --control-host=%s --control-port=%s --peer-cid=%s"
no RHEL.6 RHEL.7 RHEL.8
no Host_RHEL.m6 Host_RHEL.m7 Host_RHEL.m8
type = vsock_test_suite
only q35, aarch64
host_cid = 2
disable_firewall = "systemctl stop firewalld.service"
server_cmd = "%s --mode=server --control-port=%s --peer-cid=%s"
client_cmd = "%s --mode=client --control-host=%s --control-port=%s --peer-cid=%s"

0 comments on commit 9ef2dea

Please sign in to comment.