aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/quic/test
diff options
context:
space:
mode:
authorDave Wallace <dwallacelf@gmail.com>2019-10-21 22:45:23 +0000
committerFlorin Coras <florin.coras@gmail.com>2019-10-22 18:07:17 +0000
commit3ad078d75d1430b3f71c28a0e8dc7a880b28d332 (patch)
treedf711a5b3849ed5729b47f6c3098e4dc076ab7dc /src/plugins/quic/test
parent419d31f817af0436c699c0b565e2d6a058c487db (diff)
tests: quic add big stream extended tests
Type: test Signed-off-by: Dave Wallace <dwallacelf@gmail.com> Change-Id: I6c5bdfd934a2c96c410c36c2bc090ee47b679bea
Diffstat (limited to 'src/plugins/quic/test')
-rw-r--r--src/plugins/quic/test/test_quic.py75
1 files changed, 65 insertions, 10 deletions
diff --git a/src/plugins/quic/test/test_quic.py b/src/plugins/quic/test/test_quic.py
index 7b8e81c54f9..63abffc6c15 100644
--- a/src/plugins/quic/test/test_quic.py
+++ b/src/plugins/quic/test/test_quic.py
@@ -106,11 +106,12 @@ class QUICTestCase(VppTestCase):
class QUICEchoIntTestCase(QUICTestCase):
"""QUIC Echo Internal Test Case"""
+ test_bytes = ' test-bytes'
def setUp(self):
super(QUICEchoIntTestCase, self).setUp()
- self.client_args = "uri %s fifo-size 64 test-bytes appns client" \
- % self.uri
+ self.client_args = 'uri {uri} fifo-size 64{testbytes} appns client' \
+ .format(uri=self.uri, testbytes=self.test_bytes)
self.server_args = "uri %s fifo-size 64 appns server" % self.uri
def server(self, *args):
@@ -137,6 +138,16 @@ class QUICEchoIntTransferTestCase(QUICEchoIntTestCase):
self.client("no-output", "mbytes", "2")
+class QUICEchoIntTransferBigTestCase(QUICEchoIntTestCase):
+ """QUIC Echo Internal Transfer Big Test Case"""
+ test_bytes = ''
+
+ @unittest.skipUnless(running_extended_tests, "part of extended tests")
+ def test_quic_int_transfer_big(self):
+ self.server()
+ self.client("no-output", "gbytes", "10")
+
+
class QUICEchoIntSerialTestCase(QUICEchoIntTestCase):
"""QUIC Echo Internal Serial Transfer Test Case"""
def test_quic_serial_int_transfer(self):
@@ -148,6 +159,19 @@ class QUICEchoIntSerialTestCase(QUICEchoIntTestCase):
self.client("no-output", "mbytes", "2")
+class QUICEchoIntSerialBigTestCase(QUICEchoIntTestCase):
+ """QUIC Echo Internal Serial Transfer Big Test Case"""
+
+ @unittest.skipUnless(running_extended_tests, "part of extended tests")
+ def test_quic_serial_int_transfer_big(self):
+ self.server()
+ self.client("no-output", "gbytes", "5")
+ self.client("no-output", "gbytes", "5")
+ self.client("no-output", "gbytes", "5")
+ self.client("no-output", "gbytes", "5")
+ self.client("no-output", "gbytes", "5")
+
+
class QUICEchoIntMStreamTestCase(QUICEchoIntTestCase):
"""QUIC Echo Internal MultiStream Test Case"""
def test_quic_int_multistream_transfer(self):
@@ -155,9 +179,19 @@ class QUICEchoIntMStreamTestCase(QUICEchoIntTestCase):
self.client("nclients", "10", "mbytes", "1", "no-output")
+class QUICEchoIntMStreamBigTestCase(QUICEchoIntTestCase):
+ """QUIC Echo Internal MultiStream Big Test Case"""
+
+ @unittest.skipUnless(running_extended_tests, "part of extended tests")
+ def test_quic_int_multistream_transfer(self):
+ self.server()
+ self.client("nclients", "10", "gbytes", "5", "no-output")
+
+
class QUICEchoExtTestCase(QUICTestCase):
extra_vpp_punt_config = ["session", "{", "evt_qs_memfd_seg", "}"]
quic_setup = "default"
+ test_bytes = "test-bytes:assert"
app = "vpp_echo"
def setUp(self):
@@ -166,15 +200,14 @@ class QUICEchoExtTestCase(QUICTestCase):
"uri",
self.uri,
"json",
- "fifo-size",
- "64",
- "test-bytes:assert",
- "socket-name",
- self.api_sock]
+ "fifo-size", "64",
+ self.test_bytes,
+ "socket-name", self.api_sock,
+ "quic-setup", self.quic_setup]
self.server_echo_test_args = common_args + \
- ["server", "appns", "server", "quic-setup", self.quic_setup]
+ ["server", "appns", "server"]
self.client_echo_test_args = common_args + \
- ["client", "appns", "client", "quic-setup", self.quic_setup]
+ ["client", "appns", "client"]
error = self.vapi.cli(
"quic set fifo-size 4Mb")
if error:
@@ -195,7 +228,6 @@ class QUICEchoExtTestCase(QUICTestCase):
def client(self, *args):
_args = self.client_echo_test_args + list(args)
- # self.client_echo_test_args += "use-svm-api"
self.worker_client = QUICAppWorker(
self.build_dir,
self.app,
@@ -241,6 +273,17 @@ class QUICEchoExtTransferTestCase(QUICEchoExtTestCase):
self.validate_ext_test_results()
+class QUICEchoExtTransferBigTestCase(QUICEchoExtTestCase):
+ """QUIC Echo External Transfer Big Test Case"""
+ test_bytes = ''
+
+ @unittest.skipUnless(running_extended_tests, "part of extended tests")
+ def test_quic_ext_transfer_big(self):
+ self.server("TX=0", "RX=10Gb")
+ self.client("TX=10Gb", "RX=0")
+ self.validate_ext_test_results()
+
+
class QUICEchoExtQcloseRxTestCase(QUICEchoExtTestCase):
"""QUIC Echo External Transfer Qclose Rx Test Case"""
@@ -336,6 +379,18 @@ class QUICEchoExtServerStreamTestCase(QUICEchoExtTestCase):
self.validate_ext_test_results()
+class QUICEchoExtBigServerStreamTestCase(QUICEchoExtTestCase):
+ """QUIC Echo External Transfer Big Server Stream Test Case"""
+ quic_setup = "serverstream"
+ test_bytes = ''
+
+ @unittest.skipUnless(running_extended_tests, "part of extended tests")
+ def test_quic_ext_transfer_big_server_stream(self):
+ self.server("TX=10Gb", "RX=0")
+ self.client("TX=0", "RX=10Gb")
+ self.validate_ext_test_results()
+
+
class QUICEchoExtServerStreamQcloseRxTestCase(QUICEchoExtTestCase):
"""QUIC Echo External Transfer Server Stream Qclose Rx Test Case"""
quic_setup = "serverstream"