qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH v2 4/4] Acceptance test: provides to use RDMA transport for migra


From: Oksana Vohchana
Subject: [PATCH v2 4/4] Acceptance test: provides to use RDMA transport for migration test
Date: Tue, 25 Feb 2020 15:13:02 +0200

Adds test for RDMA migration check

Signed-off-by: Oksana Vohchana <address@hidden>
---
 tests/acceptance/migration.py | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/tests/acceptance/migration.py b/tests/acceptance/migration.py
index 5632d74f14..9b58b5a629 100644
--- a/tests/acceptance/migration.py
+++ b/tests/acceptance/migration.py
@@ -103,3 +103,12 @@ class Migration(Test):
         dest_uri = 'exec:nc -l localhost %u' % free_port
         src_uri = 'exec:nc localhost %u' % free_port
         self.do_migrate(dest_uri, src_uri)
+
+    @skipUnless(NET_AVAILABLE, 'Netifaces module not installed')
+    @skipUnless(_if_rdma_enable(None), "Unit rdma.service could not be found")
+    @skipUnless(_get_ip_rdma(None), 'RoCE(RDMA) service or interface not 
configured')
+    def test_migration_with_rdma_localhost(self):
+        ip = self._get_ip_rdma()
+        free_port = self._get_free_port(address=ip)
+        dest_uri = 'rdma:%s:%u' % (ip, free_port)
+        self.do_migrate(dest_uri)
-- 
2.21.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]