aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/quic/test/test_quic.py
diff options
context:
space:
mode:
authorDave Wallace <dwallacelf@gmail.com>2019-10-21 03:28:17 +0000
committerFlorin Coras <florin.coras@gmail.com>2019-10-22 16:31:03 +0000
commit91af1859da0313d48fb152999a74a34cf384b490 (patch)
treee51cfaffb4787de8fab8a6ba2197df70388e4d9f /src/plugins/quic/test/test_quic.py
parent2456433df46ae99dfbcec6260d14e592b5823c83 (diff)
tests: enable vpp_echo to run in gdb
- Enable vpp_echo to be run in gdb when running 'make test DEBUG=gdb-all' Type: test Signed-off-by: Dave Wallace <dwallacelf@gmail.com> Change-Id: I79a69b0573c01900535078d7493d52b417350815
Diffstat (limited to 'src/plugins/quic/test/test_quic.py')
-rw-r--r--src/plugins/quic/test/test_quic.py29
1 files changed, 22 insertions, 7 deletions
diff --git a/src/plugins/quic/test/test_quic.py b/src/plugins/quic/test/test_quic.py
index 2a005369f81..7b8e81c54f9 100644
--- a/src/plugins/quic/test/test_quic.py
+++ b/src/plugins/quic/test/test_quic.py
@@ -14,9 +14,13 @@ class QUICAppWorker(Worker):
""" QUIC Test Application Worker """
process = None
- def __init__(self, build_dir, appname, args, logger, env={}):
+ def __init__(self, build_dir, appname, args, logger, role, testcase,
+ env={}):
app = "%s/vpp/bin/%s" % (build_dir, appname)
self.args = [app] + args
+ self.role = role
+ self.wait_for_gdb = 'wait-for-gdb'
+ self.testcase = testcase
super(QUICAppWorker, self).__init__(self.args, logger, env)
def run(self):
@@ -154,6 +158,7 @@ class QUICEchoIntMStreamTestCase(QUICEchoIntTestCase):
class QUICEchoExtTestCase(QUICTestCase):
extra_vpp_punt_config = ["session", "{", "evt_qs_memfd_seg", "}"]
quic_setup = "default"
+ app = "vpp_echo"
def setUp(self):
super(QUICEchoExtTestCase, self).setUp()
@@ -170,14 +175,21 @@ class QUICEchoExtTestCase(QUICTestCase):
["server", "appns", "server", "quic-setup", self.quic_setup]
self.client_echo_test_args = common_args + \
["client", "appns", "client", "quic-setup", self.quic_setup]
+ error = self.vapi.cli(
+ "quic set fifo-size 4Mb")
+ if error:
+ self.logger.critical(error)
+ self.assertNotIn("failed", error)
def server(self, *args):
_args = self.server_echo_test_args + list(args)
self.worker_server = QUICAppWorker(
self.build_dir,
- "vpp_echo",
+ self.app,
_args,
- self.logger)
+ self.logger,
+ 'server',
+ self)
self.worker_server.start()
self.sleep(self.pre_test_sleep)
@@ -186,12 +198,15 @@ class QUICEchoExtTestCase(QUICTestCase):
# self.client_echo_test_args += "use-svm-api"
self.worker_client = QUICAppWorker(
self.build_dir,
- "vpp_echo",
+ self.app,
_args,
- self.logger)
+ self.logger,
+ 'client',
+ self)
self.worker_client.start()
- self.worker_client.join(self.timeout)
- self.worker_server.join(self.timeout)
+ timeout = None if self.debug_all else self.timeout
+ self.worker_client.join(timeout)
+ self.worker_server.join(timeout)
self.sleep(self.post_test_sleep)
def validate_ext_test_results(self):