2019-10-31 13:31:07 -05:00
|
|
|
#!/usr/bin/env python3
|
2018-02-16 18:31:56 -05:00
|
|
|
""" Vpp VCL tests """
|
|
|
|
|
|
|
|
import unittest
|
|
|
|
import os
|
2018-03-14 20:01:28 -04:00
|
|
|
import subprocess
|
2018-02-16 18:31:56 -05:00
|
|
|
import signal
|
2021-09-30 20:04:14 +02:00
|
|
|
import glob
|
2021-05-31 16:08:53 +02:00
|
|
|
from config import config
|
2024-08-19 18:47:55 -04:00
|
|
|
from asfframework import VppAsfTestCase, VppTestRunner, Worker, tag_fixme_ubuntu2404
|
2023-08-31 00:47:44 -04:00
|
|
|
from vpp_ip_route import VppIpTable, VppIpRoute, VppRoutePath
|
2018-02-16 18:31:56 -05:00
|
|
|
|
2022-04-26 19:02:15 +02:00
|
|
|
iperf3 = "/usr/bin/iperf3"
|
tests: Have worker return immediately on bad executable
No reason to waste CI cycles if we know the test will not run.
See:
17:55:11 ==============================================================================
17:55:11 VPP Object Model Test
17:55:11 ==============================================================================
17:55:11 Exception in thread Thread-4:
17:55:11 Traceback (most recent call last):
17:55:11 File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
17:55:11 self.run()
17:55:11 File "/w/workspace/vpp-beta-verify-master-ubuntu1804/test/framework.py", line 1475, in run
17:55:11 stdout=subprocess.PIPE, stderr=subprocess.PIPE)
17:55:11 File "/w/workspace/vpp-beta-verify-master-ubuntu1804/test/run/venv/local/lib/python2.7/site-packages/subprocess32.py", line 617, in __init__
17:55:11 restore_signals, start_new_session)
17:55:11 File "/w/workspace/vpp-beta-verify-master-ubuntu1804/test/run/venv/local/lib/python2.7/site-packages/subprocess32.py", line 1415, in _execute_child
17:55:11 raise child_exception_type(errno_num, err_msg)
17:55:11 OSError: [Errno 2] No such file or directory: '/w/workspace/vpp-beta-verify-master-ubuntu1804/test/build/vom_test/vom_test'
17:55:11
17:55:11 17:55:11,328 Timeout! Worker did not finish in 120s
17:55:11 run C++ VOM tests ERROR [ temp dir used by test case: /tmp/vpp-unittest-VOMTestCase-vpMcWF ]
17:55:11
Type: fix
Change-Id: I3d8252807e98a09a8abd70de8a22517151f9d786
Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
2019-06-30 15:38:55 -04:00
|
|
|
|
|
|
|
|
|
|
|
def have_app(app):
|
|
|
|
try:
|
2022-04-26 19:02:15 +02:00
|
|
|
subprocess.check_output([app, "-v"])
|
tests: Have worker return immediately on bad executable
No reason to waste CI cycles if we know the test will not run.
See:
17:55:11 ==============================================================================
17:55:11 VPP Object Model Test
17:55:11 ==============================================================================
17:55:11 Exception in thread Thread-4:
17:55:11 Traceback (most recent call last):
17:55:11 File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
17:55:11 self.run()
17:55:11 File "/w/workspace/vpp-beta-verify-master-ubuntu1804/test/framework.py", line 1475, in run
17:55:11 stdout=subprocess.PIPE, stderr=subprocess.PIPE)
17:55:11 File "/w/workspace/vpp-beta-verify-master-ubuntu1804/test/run/venv/local/lib/python2.7/site-packages/subprocess32.py", line 617, in __init__
17:55:11 restore_signals, start_new_session)
17:55:11 File "/w/workspace/vpp-beta-verify-master-ubuntu1804/test/run/venv/local/lib/python2.7/site-packages/subprocess32.py", line 1415, in _execute_child
17:55:11 raise child_exception_type(errno_num, err_msg)
17:55:11 OSError: [Errno 2] No such file or directory: '/w/workspace/vpp-beta-verify-master-ubuntu1804/test/build/vom_test/vom_test'
17:55:11
17:55:11 17:55:11,328 Timeout! Worker did not finish in 120s
17:55:11 run C++ VOM tests ERROR [ temp dir used by test case: /tmp/vpp-unittest-VOMTestCase-vpMcWF ]
17:55:11
Type: fix
Change-Id: I3d8252807e98a09a8abd70de8a22517151f9d786
Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
2019-06-30 15:38:55 -04:00
|
|
|
except (subprocess.CalledProcessError, OSError):
|
|
|
|
return False
|
|
|
|
return True
|
|
|
|
|
|
|
|
|
|
|
|
_have_iperf3 = have_app(iperf3)
|
|
|
|
|
2018-02-16 18:31:56 -05:00
|
|
|
|
2018-03-14 20:01:28 -04:00
|
|
|
class VCLAppWorker(Worker):
|
2022-04-26 19:02:15 +02:00
|
|
|
"""VCL Test Application Worker"""
|
2018-02-16 18:31:56 -05:00
|
|
|
|
2021-09-30 20:04:14 +02:00
|
|
|
libname = "libvcl_ldpreload.so"
|
|
|
|
|
|
|
|
class LibraryNotFound(Exception):
|
|
|
|
pass
|
|
|
|
|
2022-04-26 19:02:15 +02:00
|
|
|
def __init__(
|
|
|
|
self, appname, executable_args, logger, env=None, role=None, *args, **kwargs
|
|
|
|
):
|
2021-05-20 14:01:51 -04:00
|
|
|
self.role = role
|
2021-05-31 16:08:53 +02:00
|
|
|
vcl_ldpreload_glob = f"{config.vpp_install_dir}/**/{self.libname}"
|
2021-09-30 20:04:14 +02:00
|
|
|
vcl_ldpreload_so = glob.glob(vcl_ldpreload_glob, recursive=True)
|
|
|
|
|
|
|
|
if len(vcl_ldpreload_so) < 1:
|
2022-04-26 19:02:15 +02:00
|
|
|
raise LibraryNotFound("cannot locate library: {}".format(self.libname))
|
2021-09-30 20:04:14 +02:00
|
|
|
|
|
|
|
vcl_ldpreload_so = vcl_ldpreload_so[0]
|
|
|
|
|
2019-12-04 19:43:53 -05:00
|
|
|
if env is None:
|
|
|
|
env = {}
|
2018-03-14 20:01:28 -04:00
|
|
|
if "iperf" in appname:
|
|
|
|
app = appname
|
2022-04-26 19:02:15 +02:00
|
|
|
env.update({"LD_PRELOAD": vcl_ldpreload_so})
|
2018-08-31 14:31:41 -07:00
|
|
|
elif "sock" in appname:
|
2021-05-31 16:08:53 +02:00
|
|
|
app = f"{config.vpp_build_dir}/vpp/bin/{appname}"
|
2022-04-26 19:02:15 +02:00
|
|
|
env.update({"LD_PRELOAD": vcl_ldpreload_so})
|
2018-03-14 20:01:28 -04:00
|
|
|
else:
|
2021-05-31 16:08:53 +02:00
|
|
|
app = f"{config.vpp_build_dir}/vpp/bin/{appname}"
|
2019-12-04 19:43:53 -05:00
|
|
|
self.args = [app] + executable_args
|
2022-04-26 19:02:15 +02:00
|
|
|
super(VCLAppWorker, self).__init__(self.args, logger, env, *args, **kwargs)
|
2018-02-20 12:39:37 -05:00
|
|
|
|
|
|
|
|
2023-08-31 00:47:44 -04:00
|
|
|
class VCLTestCase(VppAsfTestCase):
|
2022-04-26 19:02:15 +02:00
|
|
|
"""VCL Test Class"""
|
|
|
|
|
2021-08-12 08:38:02 -07:00
|
|
|
session_startup = ["poll-main"]
|
2018-02-16 18:31:56 -05:00
|
|
|
|
2019-01-25 14:05:48 -08:00
|
|
|
@classmethod
|
|
|
|
def setUpClass(cls):
|
2021-08-12 08:38:02 -07:00
|
|
|
if cls.session_startup:
|
|
|
|
conf = "session {" + " ".join(cls.session_startup) + "}"
|
2023-01-26 12:35:35 +01:00
|
|
|
cls.extra_vpp_config = [conf]
|
2019-01-25 14:05:48 -08:00
|
|
|
super(VCLTestCase, cls).setUpClass()
|
|
|
|
|
|
|
|
@classmethod
|
|
|
|
def tearDownClass(cls):
|
|
|
|
super(VCLTestCase, cls).tearDownClass()
|
|
|
|
|
|
|
|
def setUp(self):
|
2022-04-26 19:02:15 +02:00
|
|
|
self.vppDebug = "vpp_debug" in config.vpp_install_dir
|
2018-02-28 17:55:23 -05:00
|
|
|
self.server_addr = "127.0.0.1"
|
|
|
|
self.server_port = "22000"
|
2018-03-14 20:01:28 -04:00
|
|
|
self.server_args = [self.server_port]
|
2018-03-20 09:22:13 -04:00
|
|
|
self.server_ipv6_addr = "::1"
|
|
|
|
self.server_ipv6_args = ["-6", self.server_port]
|
2018-12-03 17:47:26 -08:00
|
|
|
self.timeout = 20
|
2018-02-28 17:55:23 -05:00
|
|
|
self.echo_phrase = "Hello, world! Jenny is a friend of mine."
|
2018-12-03 17:47:26 -08:00
|
|
|
self.pre_test_sleep = 0.3
|
2023-08-31 00:47:44 -04:00
|
|
|
self.post_test_sleep = 1
|
2021-08-12 08:38:02 -07:00
|
|
|
self.sapi_client_sock = ""
|
|
|
|
self.sapi_server_sock = ""
|
2018-12-03 17:47:26 -08:00
|
|
|
|
|
|
|
if os.path.isfile("/tmp/ldp_server_af_unix_socket"):
|
|
|
|
os.remove("/tmp/ldp_server_af_unix_socket")
|
2018-02-20 12:39:37 -05:00
|
|
|
|
2019-01-25 14:05:48 -08:00
|
|
|
super(VCLTestCase, self).setUp()
|
2018-02-26 14:40:13 -05:00
|
|
|
|
2021-08-12 08:38:02 -07:00
|
|
|
def update_vcl_app_env(self, ns_id, ns_secret, attach_sock):
|
|
|
|
if not ns_id:
|
2022-04-26 19:02:15 +02:00
|
|
|
if "VCL_APP_NAMESPACE_ID" in self.vcl_app_env:
|
|
|
|
del self.vcl_app_env["VCL_APP_NAMESPACE_ID"]
|
2021-08-12 08:38:02 -07:00
|
|
|
else:
|
2022-04-26 19:02:15 +02:00
|
|
|
self.vcl_app_env["VCL_APP_NAMESPACE_ID"] = ns_id
|
2021-08-12 08:38:02 -07:00
|
|
|
|
|
|
|
if not ns_secret:
|
2022-04-26 19:02:15 +02:00
|
|
|
if "VCL_APP_NAMESPACE_SECRET" in self.vcl_app_env:
|
|
|
|
del self.vcl_app_env["VCL_APP_NAMESPACE_SECRET"]
|
2021-08-12 08:38:02 -07:00
|
|
|
else:
|
2022-04-26 19:02:15 +02:00
|
|
|
self.vcl_app_env["VCL_APP_NAMESPACE_SECRET"] = ns_secret
|
2021-08-12 08:38:02 -07:00
|
|
|
|
|
|
|
if not attach_sock:
|
2022-04-26 19:02:15 +02:00
|
|
|
self.vcl_app_env["VCL_VPP_API_SOCKET"] = self.get_api_sock_path()
|
|
|
|
if "VCL_VPP_SAPI_SOCKET" in self.vcl_app_env:
|
|
|
|
del self.vcl_app_env["VCL_VPP_SAPI_SOCKET"]
|
2021-08-12 08:38:02 -07:00
|
|
|
else:
|
|
|
|
sapi_sock = "%s/app_ns_sockets/%s" % (self.tempdir, attach_sock)
|
2022-04-26 19:02:15 +02:00
|
|
|
self.vcl_app_env["VCL_VPP_SAPI_SOCKET"] = sapi_sock
|
|
|
|
if "VCL_VPP_API_SOCKET" in self.vcl_app_env:
|
|
|
|
del self.vcl_app_env["VCL_VPP_API_SOCKET"]
|
2021-08-12 08:38:02 -07:00
|
|
|
|
2018-02-28 17:55:23 -05:00
|
|
|
def cut_thru_setup(self):
|
2020-11-24 11:22:01 +01:00
|
|
|
self.vapi.session_enable_disable(is_enable=1)
|
2018-02-26 14:40:13 -05:00
|
|
|
|
2018-02-28 17:55:23 -05:00
|
|
|
def cut_thru_tear_down(self):
|
2020-11-24 11:22:01 +01:00
|
|
|
self.vapi.session_enable_disable(is_enable=0)
|
2018-02-26 14:40:13 -05:00
|
|
|
|
2018-03-14 20:01:28 -04:00
|
|
|
def cut_thru_test(self, server_app, server_args, client_app, client_args):
|
2022-04-26 19:02:15 +02:00
|
|
|
self.vcl_app_env = {"VCL_APP_SCOPE_LOCAL": "true"}
|
2021-08-12 08:38:02 -07:00
|
|
|
|
|
|
|
self.update_vcl_app_env("", "", self.sapi_server_sock)
|
2022-04-26 19:02:15 +02:00
|
|
|
worker_server = VCLAppWorker(
|
|
|
|
server_app, server_args, self.logger, self.vcl_app_env, "server"
|
|
|
|
)
|
2018-02-26 14:40:13 -05:00
|
|
|
worker_server.start()
|
2018-12-03 17:47:26 -08:00
|
|
|
self.sleep(self.pre_test_sleep)
|
2021-08-12 08:38:02 -07:00
|
|
|
|
|
|
|
self.update_vcl_app_env("", "", self.sapi_client_sock)
|
2022-04-26 19:02:15 +02:00
|
|
|
worker_client = VCLAppWorker(
|
|
|
|
client_app, client_args, self.logger, self.vcl_app_env, "client"
|
|
|
|
)
|
2018-02-26 14:40:13 -05:00
|
|
|
worker_client.start()
|
|
|
|
worker_client.join(self.timeout)
|
2018-03-09 12:04:10 -05:00
|
|
|
try:
|
|
|
|
self.validateResults(worker_client, worker_server, self.timeout)
|
2018-06-24 22:49:33 +02:00
|
|
|
except Exception as error:
|
2018-03-09 12:04:10 -05:00
|
|
|
self.fail("Failed with %s" % error)
|
2018-12-03 17:47:26 -08:00
|
|
|
self.sleep(self.post_test_sleep)
|
2018-02-26 14:40:13 -05:00
|
|
|
|
2018-02-28 17:55:23 -05:00
|
|
|
def thru_host_stack_setup(self):
|
2020-11-24 11:22:01 +01:00
|
|
|
self.vapi.session_enable_disable(is_enable=1)
|
2018-06-24 22:49:33 +02:00
|
|
|
self.create_loopback_interfaces(2)
|
2018-02-20 12:39:37 -05:00
|
|
|
|
2018-03-27 17:29:32 -07:00
|
|
|
table_id = 1
|
2018-02-20 12:39:37 -05:00
|
|
|
|
|
|
|
for i in self.lo_interfaces:
|
|
|
|
i.admin_up()
|
|
|
|
|
|
|
|
if table_id != 0:
|
|
|
|
tbl = VppIpTable(self, table_id)
|
|
|
|
tbl.add_vpp_config()
|
|
|
|
|
|
|
|
i.set_table_ip4(table_id)
|
|
|
|
i.config_ip4()
|
|
|
|
table_id += 1
|
|
|
|
|
|
|
|
# Configure namespaces
|
2023-04-27 12:43:46 +02:00
|
|
|
self.vapi.app_namespace_add_del_v4(
|
2022-04-26 19:02:15 +02:00
|
|
|
namespace_id="1", secret=1234, sw_if_index=self.loop0.sw_if_index
|
|
|
|
)
|
2023-04-27 12:43:46 +02:00
|
|
|
self.vapi.app_namespace_add_del_v4(
|
2022-04-26 19:02:15 +02:00
|
|
|
namespace_id="2", secret=5678, sw_if_index=self.loop1.sw_if_index
|
|
|
|
)
|
2018-02-20 12:39:37 -05:00
|
|
|
|
|
|
|
# Add inter-table routes
|
2022-04-26 19:02:15 +02:00
|
|
|
ip_t01 = VppIpRoute(
|
|
|
|
self,
|
|
|
|
self.loop1.local_ip4,
|
|
|
|
32,
|
|
|
|
[VppRoutePath("0.0.0.0", 0xFFFFFFFF, nh_table_id=2)],
|
|
|
|
table_id=1,
|
|
|
|
)
|
|
|
|
ip_t10 = VppIpRoute(
|
|
|
|
self,
|
|
|
|
self.loop0.local_ip4,
|
|
|
|
32,
|
|
|
|
[VppRoutePath("0.0.0.0", 0xFFFFFFFF, nh_table_id=1)],
|
|
|
|
table_id=2,
|
|
|
|
)
|
2018-02-20 12:39:37 -05:00
|
|
|
ip_t01.add_vpp_config()
|
|
|
|
ip_t10.add_vpp_config()
|
2018-03-27 17:29:32 -07:00
|
|
|
self.logger.debug(self.vapi.cli("show ip fib"))
|
2018-02-20 12:39:37 -05:00
|
|
|
|
2018-02-28 17:55:23 -05:00
|
|
|
def thru_host_stack_tear_down(self):
|
2024-07-08 11:21:23 -07:00
|
|
|
self.vapi.app_namespace_add_del_v4(
|
|
|
|
is_add=0, namespace_id="1", secret=1234, sw_if_index=self.loop0.sw_if_index
|
|
|
|
)
|
|
|
|
self.vapi.app_namespace_add_del_v4(
|
|
|
|
is_add=0, namespace_id="2", secret=5678, sw_if_index=self.loop1.sw_if_index
|
|
|
|
)
|
2018-02-28 17:55:23 -05:00
|
|
|
for i in self.lo_interfaces:
|
|
|
|
i.unconfig_ip4()
|
|
|
|
i.set_table_ip4(0)
|
|
|
|
i.admin_down()
|
2022-05-13 04:24:19 +00:00
|
|
|
i.remove_vpp_config()
|
2018-02-28 17:55:23 -05:00
|
|
|
|
2018-03-20 09:22:13 -04:00
|
|
|
def thru_host_stack_ipv6_setup(self):
|
2020-11-24 11:22:01 +01:00
|
|
|
self.vapi.session_enable_disable(is_enable=1)
|
2018-06-24 22:49:33 +02:00
|
|
|
self.create_loopback_interfaces(2)
|
2018-03-20 09:22:13 -04:00
|
|
|
|
|
|
|
table_id = 1
|
|
|
|
|
|
|
|
for i in self.lo_interfaces:
|
|
|
|
i.admin_up()
|
|
|
|
|
|
|
|
tbl = VppIpTable(self, table_id, is_ip6=1)
|
|
|
|
tbl.add_vpp_config()
|
|
|
|
|
|
|
|
i.set_table_ip6(table_id)
|
|
|
|
i.config_ip6()
|
|
|
|
table_id += 1
|
|
|
|
|
|
|
|
# Configure namespaces
|
2023-04-27 12:43:46 +02:00
|
|
|
self.vapi.app_namespace_add_del_v4(
|
2022-04-26 19:02:15 +02:00
|
|
|
namespace_id="1", secret=1234, sw_if_index=self.loop0.sw_if_index
|
|
|
|
)
|
2023-04-27 12:43:46 +02:00
|
|
|
self.vapi.app_namespace_add_del_v4(
|
2022-04-26 19:02:15 +02:00
|
|
|
namespace_id="2", secret=5678, sw_if_index=self.loop1.sw_if_index
|
|
|
|
)
|
2018-03-20 09:22:13 -04:00
|
|
|
|
|
|
|
# Add inter-table routes
|
2022-04-26 19:02:15 +02:00
|
|
|
ip_t01 = VppIpRoute(
|
|
|
|
self,
|
|
|
|
self.loop1.local_ip6,
|
|
|
|
128,
|
|
|
|
[VppRoutePath("::0", 0xFFFFFFFF, nh_table_id=2)],
|
|
|
|
table_id=1,
|
|
|
|
)
|
|
|
|
ip_t10 = VppIpRoute(
|
|
|
|
self,
|
|
|
|
self.loop0.local_ip6,
|
|
|
|
128,
|
|
|
|
[VppRoutePath("::0", 0xFFFFFFFF, nh_table_id=1)],
|
|
|
|
table_id=2,
|
|
|
|
)
|
2018-03-20 09:22:13 -04:00
|
|
|
ip_t01.add_vpp_config()
|
|
|
|
ip_t10.add_vpp_config()
|
|
|
|
self.logger.debug(self.vapi.cli("show interface addr"))
|
|
|
|
self.logger.debug(self.vapi.cli("show ip6 fib"))
|
|
|
|
|
|
|
|
def thru_host_stack_ipv6_tear_down(self):
|
2024-07-08 11:21:23 -07:00
|
|
|
self.vapi.app_namespace_add_del_v4(
|
|
|
|
is_add=0, namespace_id="1", secret=1234, sw_if_index=self.loop0.sw_if_index
|
|
|
|
)
|
|
|
|
self.vapi.app_namespace_add_del_v4(
|
|
|
|
is_add=0, namespace_id="2", secret=5678, sw_if_index=self.loop1.sw_if_index
|
|
|
|
)
|
2018-03-20 09:22:13 -04:00
|
|
|
for i in self.lo_interfaces:
|
|
|
|
i.unconfig_ip6()
|
|
|
|
i.set_table_ip6(0)
|
|
|
|
i.admin_down()
|
|
|
|
|
2020-11-24 11:22:01 +01:00
|
|
|
self.vapi.session_enable_disable(is_enable=0)
|
2018-03-20 09:22:13 -04:00
|
|
|
|
tests: Have worker return immediately on bad executable
No reason to waste CI cycles if we know the test will not run.
See:
17:55:11 ==============================================================================
17:55:11 VPP Object Model Test
17:55:11 ==============================================================================
17:55:11 Exception in thread Thread-4:
17:55:11 Traceback (most recent call last):
17:55:11 File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
17:55:11 self.run()
17:55:11 File "/w/workspace/vpp-beta-verify-master-ubuntu1804/test/framework.py", line 1475, in run
17:55:11 stdout=subprocess.PIPE, stderr=subprocess.PIPE)
17:55:11 File "/w/workspace/vpp-beta-verify-master-ubuntu1804/test/run/venv/local/lib/python2.7/site-packages/subprocess32.py", line 617, in __init__
17:55:11 restore_signals, start_new_session)
17:55:11 File "/w/workspace/vpp-beta-verify-master-ubuntu1804/test/run/venv/local/lib/python2.7/site-packages/subprocess32.py", line 1415, in _execute_child
17:55:11 raise child_exception_type(errno_num, err_msg)
17:55:11 OSError: [Errno 2] No such file or directory: '/w/workspace/vpp-beta-verify-master-ubuntu1804/test/build/vom_test/vom_test'
17:55:11
17:55:11 17:55:11,328 Timeout! Worker did not finish in 120s
17:55:11 run C++ VOM tests ERROR [ temp dir used by test case: /tmp/vpp-unittest-VOMTestCase-vpMcWF ]
17:55:11
Type: fix
Change-Id: I3d8252807e98a09a8abd70de8a22517151f9d786
Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
2019-06-30 15:38:55 -04:00
|
|
|
@unittest.skipUnless(_have_iperf3, "'%s' not found, Skipping.")
|
2022-04-26 19:02:15 +02:00
|
|
|
def thru_host_stack_test(self, server_app, server_args, client_app, client_args):
|
|
|
|
self.vcl_app_env = {"VCL_APP_SCOPE_GLOBAL": "true"}
|
2018-02-28 17:55:23 -05:00
|
|
|
|
2021-08-12 08:38:02 -07:00
|
|
|
self.update_vcl_app_env("1", "1234", self.sapi_server_sock)
|
2022-04-26 19:02:15 +02:00
|
|
|
worker_server = VCLAppWorker(
|
|
|
|
server_app, server_args, self.logger, self.vcl_app_env, "server"
|
|
|
|
)
|
2018-02-20 12:39:37 -05:00
|
|
|
worker_server.start()
|
2018-12-03 17:47:26 -08:00
|
|
|
self.sleep(self.pre_test_sleep)
|
2018-02-26 14:40:13 -05:00
|
|
|
|
2021-08-12 08:38:02 -07:00
|
|
|
self.update_vcl_app_env("2", "5678", self.sapi_client_sock)
|
2022-04-26 19:02:15 +02:00
|
|
|
worker_client = VCLAppWorker(
|
|
|
|
client_app, client_args, self.logger, self.vcl_app_env, "client"
|
|
|
|
)
|
2018-02-20 12:39:37 -05:00
|
|
|
worker_client.start()
|
2018-02-26 14:40:13 -05:00
|
|
|
worker_client.join(self.timeout)
|
|
|
|
|
2018-03-09 12:04:10 -05:00
|
|
|
try:
|
|
|
|
self.validateResults(worker_client, worker_server, self.timeout)
|
2018-06-24 22:49:33 +02:00
|
|
|
except Exception as error:
|
2018-03-09 12:04:10 -05:00
|
|
|
self.fail("Failed with %s" % error)
|
2018-12-03 17:47:26 -08:00
|
|
|
self.sleep(self.post_test_sleep)
|
2018-02-20 12:39:37 -05:00
|
|
|
|
2018-02-28 17:55:23 -05:00
|
|
|
def validateResults(self, worker_client, worker_server, timeout):
|
tests: Have worker return immediately on bad executable
No reason to waste CI cycles if we know the test will not run.
See:
17:55:11 ==============================================================================
17:55:11 VPP Object Model Test
17:55:11 ==============================================================================
17:55:11 Exception in thread Thread-4:
17:55:11 Traceback (most recent call last):
17:55:11 File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
17:55:11 self.run()
17:55:11 File "/w/workspace/vpp-beta-verify-master-ubuntu1804/test/framework.py", line 1475, in run
17:55:11 stdout=subprocess.PIPE, stderr=subprocess.PIPE)
17:55:11 File "/w/workspace/vpp-beta-verify-master-ubuntu1804/test/run/venv/local/lib/python2.7/site-packages/subprocess32.py", line 617, in __init__
17:55:11 restore_signals, start_new_session)
17:55:11 File "/w/workspace/vpp-beta-verify-master-ubuntu1804/test/run/venv/local/lib/python2.7/site-packages/subprocess32.py", line 1415, in _execute_child
17:55:11 raise child_exception_type(errno_num, err_msg)
17:55:11 OSError: [Errno 2] No such file or directory: '/w/workspace/vpp-beta-verify-master-ubuntu1804/test/build/vom_test/vom_test'
17:55:11
17:55:11 17:55:11,328 Timeout! Worker did not finish in 120s
17:55:11 run C++ VOM tests ERROR [ temp dir used by test case: /tmp/vpp-unittest-VOMTestCase-vpMcWF ]
17:55:11
Type: fix
Change-Id: I3d8252807e98a09a8abd70de8a22517151f9d786
Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
2019-06-30 15:38:55 -04:00
|
|
|
if worker_server.process is None:
|
2022-04-26 19:02:15 +02:00
|
|
|
raise RuntimeError("worker_server is not running.")
|
|
|
|
if os.path.isdir("/proc/{}".format(worker_server.process.pid)):
|
|
|
|
self.logger.info(
|
|
|
|
"Killing server worker process (pid %d)" % worker_server.process.pid
|
|
|
|
)
|
2019-05-06 10:49:41 -04:00
|
|
|
os.killpg(os.getpgid(worker_server.process.pid), signal.SIGTERM)
|
2018-03-02 13:19:30 -05:00
|
|
|
worker_server.join()
|
2018-02-28 17:55:23 -05:00
|
|
|
self.logger.info("Client worker result is `%s'" % worker_client.result)
|
|
|
|
error = False
|
|
|
|
if worker_client.result is None:
|
|
|
|
try:
|
|
|
|
error = True
|
|
|
|
self.logger.error(
|
2022-04-26 19:02:15 +02:00
|
|
|
"Timeout: %ss! Killing client worker process (pid %d)"
|
|
|
|
% (timeout, worker_client.process.pid)
|
|
|
|
)
|
|
|
|
os.killpg(os.getpgid(worker_client.process.pid), signal.SIGKILL)
|
2018-02-28 17:55:23 -05:00
|
|
|
worker_client.join()
|
2019-05-13 19:21:24 -04:00
|
|
|
except OSError:
|
2022-04-26 19:02:15 +02:00
|
|
|
self.logger.debug("Couldn't kill client worker process")
|
2018-02-28 17:55:23 -05:00
|
|
|
raise
|
|
|
|
if error:
|
2022-04-26 19:02:15 +02:00
|
|
|
raise RuntimeError("Timeout! Client worker did not finish in %ss" % timeout)
|
2018-02-28 17:55:23 -05:00
|
|
|
self.assert_equal(worker_client.result, 0, "Binary test return code")
|
|
|
|
|
|
|
|
|
2024-08-19 18:47:55 -04:00
|
|
|
@tag_fixme_ubuntu2404
|
2018-11-29 18:22:10 -08:00
|
|
|
class LDPCutThruTestCase(VCLTestCase):
|
2022-04-26 19:02:15 +02:00
|
|
|
"""LDP Cut Thru Tests"""
|
2018-02-28 17:55:23 -05:00
|
|
|
|
2019-01-25 14:05:48 -08:00
|
|
|
@classmethod
|
|
|
|
def setUpClass(cls):
|
2021-08-12 08:38:02 -07:00
|
|
|
cls.session_startup = ["poll-main", "use-app-socket-api"]
|
2019-01-25 14:05:48 -08:00
|
|
|
super(LDPCutThruTestCase, cls).setUpClass()
|
|
|
|
|
|
|
|
@classmethod
|
|
|
|
def tearDownClass(cls):
|
|
|
|
super(LDPCutThruTestCase, cls).tearDownClass()
|
|
|
|
|
2018-02-28 17:55:23 -05:00
|
|
|
def setUp(self):
|
2018-11-29 18:22:10 -08:00
|
|
|
super(LDPCutThruTestCase, self).setUp()
|
2018-02-28 17:55:23 -05:00
|
|
|
|
|
|
|
self.cut_thru_setup()
|
2022-04-26 19:02:15 +02:00
|
|
|
self.client_echo_test_args = [
|
|
|
|
"-E",
|
|
|
|
self.echo_phrase,
|
|
|
|
"-X",
|
|
|
|
self.server_addr,
|
|
|
|
self.server_port,
|
|
|
|
]
|
2018-03-14 20:01:28 -04:00
|
|
|
self.client_iperf3_timeout = 20
|
2021-05-06 00:08:18 -07:00
|
|
|
self.client_iperf3_args = ["-4", "-t 2", "-c", self.server_addr]
|
|
|
|
self.server_iperf3_args = ["-4", "-s"]
|
2018-11-29 00:39:53 -08:00
|
|
|
self.client_uni_dir_nsock_timeout = 20
|
2022-04-26 19:02:15 +02:00
|
|
|
self.client_uni_dir_nsock_test_args = [
|
|
|
|
"-N",
|
|
|
|
"1000",
|
|
|
|
"-U",
|
|
|
|
"-X",
|
|
|
|
"-I",
|
|
|
|
"2",
|
|
|
|
self.server_addr,
|
|
|
|
self.server_port,
|
|
|
|
]
|
2018-11-29 00:39:53 -08:00
|
|
|
self.client_bi_dir_nsock_timeout = 20
|
2022-04-26 19:02:15 +02:00
|
|
|
self.client_bi_dir_nsock_test_args = [
|
|
|
|
"-N",
|
|
|
|
"1000",
|
|
|
|
"-B",
|
|
|
|
"-X",
|
|
|
|
"-I",
|
|
|
|
"2",
|
|
|
|
self.server_addr,
|
|
|
|
self.server_port,
|
|
|
|
]
|
2021-08-12 08:38:02 -07:00
|
|
|
self.sapi_client_sock = "default"
|
|
|
|
self.sapi_server_sock = "default"
|
2018-02-28 17:55:23 -05:00
|
|
|
|
|
|
|
def tearDown(self):
|
2018-11-29 18:22:10 -08:00
|
|
|
super(LDPCutThruTestCase, self).tearDown()
|
2019-05-10 20:41:08 -04:00
|
|
|
self.cut_thru_tear_down()
|
2018-02-28 17:55:23 -05:00
|
|
|
|
2019-03-13 09:23:05 -07:00
|
|
|
def show_commands_at_teardown(self):
|
|
|
|
self.logger.debug(self.vapi.cli("show session verbose 2"))
|
2021-01-15 13:49:33 -08:00
|
|
|
self.logger.debug(self.vapi.cli("show app mq"))
|
2019-03-13 09:23:05 -07:00
|
|
|
|
2021-05-31 16:08:53 +02:00
|
|
|
@unittest.skipUnless(config.extended, "part of extended tests")
|
2018-02-28 17:55:23 -05:00
|
|
|
def test_ldp_cut_thru_echo(self):
|
2022-04-26 19:02:15 +02:00
|
|
|
"""run LDP cut thru echo test"""
|
2018-02-28 17:55:23 -05:00
|
|
|
|
2022-04-26 19:02:15 +02:00
|
|
|
self.cut_thru_test(
|
|
|
|
"sock_test_server",
|
|
|
|
self.server_args,
|
|
|
|
"sock_test_client",
|
|
|
|
self.client_echo_test_args,
|
|
|
|
)
|
2018-03-14 20:01:28 -04:00
|
|
|
|
|
|
|
def test_ldp_cut_thru_iperf3(self):
|
2022-04-26 19:02:15 +02:00
|
|
|
"""run LDP cut thru iperf3 test"""
|
2018-03-14 20:01:28 -04:00
|
|
|
|
|
|
|
self.timeout = self.client_iperf3_timeout
|
2022-04-26 19:02:15 +02:00
|
|
|
self.cut_thru_test(
|
|
|
|
iperf3, self.server_iperf3_args, iperf3, self.client_iperf3_args
|
|
|
|
)
|
2018-02-28 17:55:23 -05:00
|
|
|
|
2021-05-31 16:08:53 +02:00
|
|
|
@unittest.skipUnless(config.extended, "part of extended tests")
|
2018-03-02 13:19:30 -05:00
|
|
|
def test_ldp_cut_thru_uni_dir_nsock(self):
|
2022-04-26 19:02:15 +02:00
|
|
|
"""run LDP cut thru uni-directional (multiple sockets) test"""
|
2018-03-02 13:19:30 -05:00
|
|
|
|
|
|
|
self.timeout = self.client_uni_dir_nsock_timeout
|
2022-04-26 19:02:15 +02:00
|
|
|
self.cut_thru_test(
|
|
|
|
"sock_test_server",
|
|
|
|
self.server_args,
|
|
|
|
"sock_test_client",
|
|
|
|
self.client_uni_dir_nsock_test_args,
|
|
|
|
)
|
2018-03-02 13:19:30 -05:00
|
|
|
|
2021-05-31 16:08:53 +02:00
|
|
|
@unittest.skipUnless(config.extended, "part of extended tests")
|
2019-07-02 19:33:15 -07:00
|
|
|
@unittest.skip("sock test apps need to be improved")
|
2018-03-02 13:19:30 -05:00
|
|
|
def test_ldp_cut_thru_bi_dir_nsock(self):
|
2022-04-26 19:02:15 +02:00
|
|
|
"""run LDP cut thru bi-directional (multiple sockets) test"""
|
2018-03-02 13:19:30 -05:00
|
|
|
|
|
|
|
self.timeout = self.client_bi_dir_nsock_timeout
|
2022-04-26 19:02:15 +02:00
|
|
|
self.cut_thru_test(
|
|
|
|
"sock_test_server",
|
|
|
|
self.server_args,
|
|
|
|
"sock_test_client",
|
|
|
|
self.client_bi_dir_nsock_test_args,
|
|
|
|
)
|
2018-03-02 13:19:30 -05:00
|
|
|
|
2018-11-29 18:22:10 -08:00
|
|
|
|
2024-03-11 10:38:46 +00:00
|
|
|
@unittest.skipIf(
|
|
|
|
"hs_apps" in config.excluded_plugins, "Exclude tests requiring hs_apps plugin"
|
|
|
|
)
|
2018-11-29 18:22:10 -08:00
|
|
|
class VCLCutThruTestCase(VCLTestCase):
|
2022-04-26 19:02:15 +02:00
|
|
|
"""VCL Cut Thru Tests"""
|
2018-11-29 18:22:10 -08:00
|
|
|
|
2019-01-25 14:05:48 -08:00
|
|
|
@classmethod
|
|
|
|
def setUpClass(cls):
|
|
|
|
super(VCLCutThruTestCase, cls).setUpClass()
|
|
|
|
|
|
|
|
@classmethod
|
|
|
|
def tearDownClass(cls):
|
|
|
|
super(VCLCutThruTestCase, cls).tearDownClass()
|
|
|
|
|
2018-11-29 18:22:10 -08:00
|
|
|
def setUp(self):
|
|
|
|
super(VCLCutThruTestCase, self).setUp()
|
|
|
|
|
|
|
|
self.cut_thru_setup()
|
2022-04-26 19:02:15 +02:00
|
|
|
self.client_echo_test_args = [
|
|
|
|
"-E",
|
|
|
|
self.echo_phrase,
|
|
|
|
"-X",
|
|
|
|
self.server_addr,
|
|
|
|
self.server_port,
|
|
|
|
]
|
2018-11-29 18:22:10 -08:00
|
|
|
|
|
|
|
self.client_uni_dir_nsock_timeout = 20
|
2022-04-26 19:02:15 +02:00
|
|
|
self.client_uni_dir_nsock_test_args = [
|
|
|
|
"-N",
|
|
|
|
"1000",
|
|
|
|
"-U",
|
|
|
|
"-X",
|
|
|
|
"-I",
|
|
|
|
"2",
|
|
|
|
self.server_addr,
|
|
|
|
self.server_port,
|
|
|
|
]
|
2018-11-29 18:22:10 -08:00
|
|
|
self.client_bi_dir_nsock_timeout = 20
|
2022-04-26 19:02:15 +02:00
|
|
|
self.client_bi_dir_nsock_test_args = [
|
|
|
|
"-N",
|
|
|
|
"1000",
|
|
|
|
"-B",
|
|
|
|
"-X",
|
|
|
|
"-I",
|
|
|
|
"2",
|
|
|
|
self.server_addr,
|
|
|
|
self.server_port,
|
|
|
|
]
|
2018-11-29 18:22:10 -08:00
|
|
|
|
|
|
|
def tearDown(self):
|
|
|
|
super(VCLCutThruTestCase, self).tearDown()
|
|
|
|
|
2019-04-17 09:57:46 -07:00
|
|
|
def show_commands_at_teardown(self):
|
|
|
|
self.logger.debug(self.vapi.cli("show session verbose 2"))
|
2021-01-15 13:49:33 -08:00
|
|
|
self.logger.debug(self.vapi.cli("show app mq"))
|
2019-04-17 09:57:46 -07:00
|
|
|
|
2018-02-28 17:55:23 -05:00
|
|
|
def test_vcl_cut_thru_echo(self):
|
2022-04-26 19:02:15 +02:00
|
|
|
"""run VCL cut thru echo test"""
|
2018-02-28 17:55:23 -05:00
|
|
|
|
2022-04-26 19:02:15 +02:00
|
|
|
self.cut_thru_test(
|
|
|
|
"vcl_test_server",
|
|
|
|
self.server_args,
|
|
|
|
"vcl_test_client",
|
|
|
|
self.client_echo_test_args,
|
|
|
|
)
|
2018-02-28 17:55:23 -05:00
|
|
|
|
2018-03-02 13:19:30 -05:00
|
|
|
def test_vcl_cut_thru_uni_dir_nsock(self):
|
2022-04-26 19:02:15 +02:00
|
|
|
"""run VCL cut thru uni-directional (multiple sockets) test"""
|
2018-03-02 13:19:30 -05:00
|
|
|
|
|
|
|
self.timeout = self.client_uni_dir_nsock_timeout
|
2022-04-26 19:02:15 +02:00
|
|
|
self.cut_thru_test(
|
|
|
|
"vcl_test_server",
|
|
|
|
self.server_args,
|
|
|
|
"vcl_test_client",
|
|
|
|
self.client_uni_dir_nsock_test_args,
|
|
|
|
)
|
2018-03-02 13:19:30 -05:00
|
|
|
|
|
|
|
def test_vcl_cut_thru_bi_dir_nsock(self):
|
2022-04-26 19:02:15 +02:00
|
|
|
"""run VCL cut thru bi-directional (multiple sockets) test"""
|
2018-03-02 13:19:30 -05:00
|
|
|
|
|
|
|
self.timeout = self.client_bi_dir_nsock_timeout
|
2022-04-26 19:02:15 +02:00
|
|
|
self.cut_thru_test(
|
|
|
|
"vcl_test_server",
|
|
|
|
self.server_args,
|
|
|
|
"vcl_test_client",
|
|
|
|
self.client_bi_dir_nsock_test_args,
|
|
|
|
)
|
2018-03-02 13:19:30 -05:00
|
|
|
|
2018-02-28 17:55:23 -05:00
|
|
|
|
2024-03-11 10:38:46 +00:00
|
|
|
@unittest.skipIf(
|
|
|
|
"hs_apps" in config.excluded_plugins, "Exclude tests requiring hs_apps plugin"
|
|
|
|
)
|
2018-12-03 17:47:26 -08:00
|
|
|
class VCLThruHostStackEcho(VCLTestCase):
|
2022-04-26 19:02:15 +02:00
|
|
|
"""VCL Thru Host Stack Echo"""
|
2018-12-03 17:47:26 -08:00
|
|
|
|
2019-01-25 14:05:48 -08:00
|
|
|
@classmethod
|
|
|
|
def setUpClass(cls):
|
|
|
|
super(VCLThruHostStackEcho, cls).setUpClass()
|
|
|
|
|
|
|
|
@classmethod
|
|
|
|
def tearDownClass(cls):
|
|
|
|
super(VCLThruHostStackEcho, cls).tearDownClass()
|
|
|
|
|
2018-12-03 17:47:26 -08:00
|
|
|
def setUp(self):
|
|
|
|
super(VCLThruHostStackEcho, self).setUp()
|
|
|
|
|
|
|
|
self.thru_host_stack_setup()
|
|
|
|
self.client_bi_dir_nsock_timeout = 20
|
2022-04-26 19:02:15 +02:00
|
|
|
self.client_bi_dir_nsock_test_args = [
|
|
|
|
"-N",
|
|
|
|
"1000",
|
|
|
|
"-B",
|
|
|
|
"-X",
|
|
|
|
"-I",
|
|
|
|
"2",
|
|
|
|
self.loop0.local_ip4,
|
|
|
|
self.server_port,
|
|
|
|
]
|
|
|
|
self.client_echo_test_args = [
|
|
|
|
"-E",
|
|
|
|
self.echo_phrase,
|
|
|
|
"-X",
|
|
|
|
self.loop0.local_ip4,
|
|
|
|
self.server_port,
|
|
|
|
]
|
2018-02-28 17:55:23 -05:00
|
|
|
|
2018-12-03 17:47:26 -08:00
|
|
|
def tearDown(self):
|
|
|
|
self.thru_host_stack_tear_down()
|
|
|
|
super(VCLThruHostStackEcho, self).tearDown()
|
2018-03-02 13:19:30 -05:00
|
|
|
|
2022-02-08 09:40:00 +00:00
|
|
|
def test_vcl_thru_host_stack_echo(self):
|
2022-04-26 19:02:15 +02:00
|
|
|
"""run VCL IPv4 thru host stack echo test"""
|
2022-02-08 09:40:00 +00:00
|
|
|
|
2022-04-26 19:02:15 +02:00
|
|
|
self.thru_host_stack_test(
|
|
|
|
"vcl_test_server",
|
|
|
|
self.server_args,
|
|
|
|
"vcl_test_client",
|
|
|
|
self.client_echo_test_args,
|
|
|
|
)
|
2022-02-08 09:40:00 +00:00
|
|
|
|
2019-03-13 09:23:05 -07:00
|
|
|
def show_commands_at_teardown(self):
|
|
|
|
self.logger.debug(self.vapi.cli("show app server"))
|
|
|
|
self.logger.debug(self.vapi.cli("show session verbose"))
|
2021-01-15 13:49:33 -08:00
|
|
|
self.logger.debug(self.vapi.cli("show app mq"))
|
2019-03-13 09:23:05 -07:00
|
|
|
|
2018-03-02 13:19:30 -05:00
|
|
|
|
2024-03-11 10:38:46 +00:00
|
|
|
@unittest.skipIf(
|
|
|
|
"hs_apps" in config.excluded_plugins, "Exclude tests requiring hs_apps plugin"
|
|
|
|
)
|
2019-02-18 22:39:39 -08:00
|
|
|
class VCLThruHostStackTLS(VCLTestCase):
|
2022-04-26 19:02:15 +02:00
|
|
|
"""VCL Thru Host Stack TLS"""
|
2019-02-18 22:39:39 -08:00
|
|
|
|
|
|
|
@classmethod
|
|
|
|
def setUpClass(cls):
|
2021-08-12 08:38:02 -07:00
|
|
|
cls.session_startup = ["poll-main", "use-app-socket-api"]
|
2019-02-18 22:39:39 -08:00
|
|
|
super(VCLThruHostStackTLS, cls).setUpClass()
|
|
|
|
|
|
|
|
@classmethod
|
|
|
|
def tearDownClass(cls):
|
|
|
|
super(VCLThruHostStackTLS, cls).tearDownClass()
|
|
|
|
|
|
|
|
def setUp(self):
|
|
|
|
super(VCLThruHostStackTLS, self).setUp()
|
|
|
|
|
|
|
|
self.thru_host_stack_setup()
|
|
|
|
self.client_uni_dir_tls_timeout = 20
|
2019-03-25 19:34:50 -04:00
|
|
|
self.server_tls_args = ["-L", self.server_port]
|
2022-04-26 19:02:15 +02:00
|
|
|
self.client_uni_dir_tls_test_args = [
|
|
|
|
"-N",
|
|
|
|
"1000",
|
|
|
|
"-U",
|
|
|
|
"-X",
|
|
|
|
"-L",
|
|
|
|
self.loop0.local_ip4,
|
|
|
|
self.server_port,
|
|
|
|
]
|
2021-08-12 08:38:02 -07:00
|
|
|
self.sapi_server_sock = "1"
|
|
|
|
self.sapi_client_sock = "2"
|
2019-02-18 22:39:39 -08:00
|
|
|
|
|
|
|
def test_vcl_thru_host_stack_tls_uni_dir(self):
|
2022-04-26 19:02:15 +02:00
|
|
|
"""run VCL thru host stack uni-directional TLS test"""
|
2019-02-18 22:39:39 -08:00
|
|
|
|
|
|
|
self.timeout = self.client_uni_dir_tls_timeout
|
2022-04-26 19:02:15 +02:00
|
|
|
self.thru_host_stack_test(
|
|
|
|
"vcl_test_server",
|
|
|
|
self.server_tls_args,
|
|
|
|
"vcl_test_client",
|
|
|
|
self.client_uni_dir_tls_test_args,
|
|
|
|
)
|
2019-02-18 22:39:39 -08:00
|
|
|
|
|
|
|
def tearDown(self):
|
|
|
|
self.thru_host_stack_tear_down()
|
|
|
|
super(VCLThruHostStackTLS, self).tearDown()
|
|
|
|
|
2019-03-13 09:23:05 -07:00
|
|
|
def show_commands_at_teardown(self):
|
|
|
|
self.logger.debug(self.vapi.cli("show app server"))
|
2021-05-06 12:46:04 -07:00
|
|
|
self.logger.debug(self.vapi.cli("show session verbose 2"))
|
|
|
|
self.logger.debug(self.vapi.cli("show app mq"))
|
|
|
|
|
|
|
|
|
2024-03-11 10:38:46 +00:00
|
|
|
@unittest.skipIf(
|
|
|
|
"hs_apps" in config.excluded_plugins, "Exclude tests requiring hs_apps plugin"
|
|
|
|
)
|
2022-11-11 11:56:54 +01:00
|
|
|
class VCLThruHostStackEchoInterruptMode(VCLThruHostStackEcho):
|
|
|
|
"""VCL Thru Host Stack Echo interrupt mode"""
|
|
|
|
|
|
|
|
@classmethod
|
|
|
|
def setUpClass(cls):
|
|
|
|
cls.session_startup = ["use-private-rx-mqs", "use-app-socket-api"]
|
|
|
|
super(VCLThruHostStackEcho, cls).setUpClass()
|
|
|
|
|
|
|
|
def test_vcl_thru_host_stack_echo(self):
|
|
|
|
"""run VCL IPv4 thru host stack echo test interrupt mode"""
|
|
|
|
|
|
|
|
self.sapi_server_sock = "1"
|
|
|
|
self.sapi_client_sock = "2"
|
|
|
|
|
|
|
|
self.thru_host_stack_test(
|
|
|
|
"vcl_test_server",
|
|
|
|
self.server_args,
|
|
|
|
"vcl_test_client",
|
|
|
|
self.client_echo_test_args,
|
|
|
|
)
|
|
|
|
|
|
|
|
|
2022-02-14 15:39:26 +00:00
|
|
|
class VCLThruHostStackTLSInterruptMode(VCLThruHostStackTLS):
|
|
|
|
"""VCL Thru Host Stack TLS interrupt mode"""
|
|
|
|
|
|
|
|
@classmethod
|
|
|
|
def setUpClass(cls):
|
|
|
|
cls.session_startup = ["poll-main", "use-app-socket-api", "use-private-rx-mqs"]
|
|
|
|
super(VCLThruHostStackTLS, cls).setUpClass()
|
|
|
|
|
|
|
|
|
2024-03-11 10:38:46 +00:00
|
|
|
@unittest.skipIf(
|
|
|
|
"hs_apps" in config.excluded_plugins, "Exclude tests requiring hs_apps plugin"
|
|
|
|
)
|
2021-05-06 12:46:04 -07:00
|
|
|
class VCLThruHostStackDTLS(VCLTestCase):
|
2022-04-26 19:02:15 +02:00
|
|
|
"""VCL Thru Host Stack DTLS"""
|
2021-05-06 12:46:04 -07:00
|
|
|
|
|
|
|
@classmethod
|
|
|
|
def setUpClass(cls):
|
|
|
|
super(VCLThruHostStackDTLS, cls).setUpClass()
|
|
|
|
|
|
|
|
@classmethod
|
|
|
|
def tearDownClass(cls):
|
|
|
|
super(VCLThruHostStackDTLS, cls).tearDownClass()
|
|
|
|
|
|
|
|
def setUp(self):
|
|
|
|
super(VCLThruHostStackDTLS, self).setUp()
|
|
|
|
|
|
|
|
self.thru_host_stack_setup()
|
|
|
|
self.client_uni_dir_dtls_timeout = 20
|
2021-05-18 00:28:59 -07:00
|
|
|
self.server_dtls_args = ["-p", "dtls", self.server_port]
|
2022-04-26 19:02:15 +02:00
|
|
|
self.client_uni_dir_dtls_test_args = [
|
|
|
|
"-N",
|
|
|
|
"1000",
|
|
|
|
"-U",
|
|
|
|
"-X",
|
|
|
|
"-p",
|
|
|
|
"dtls",
|
|
|
|
"-T 1400",
|
|
|
|
self.loop0.local_ip4,
|
|
|
|
self.server_port,
|
|
|
|
]
|
2021-05-06 12:46:04 -07:00
|
|
|
|
|
|
|
def test_vcl_thru_host_stack_dtls_uni_dir(self):
|
2022-04-26 19:02:15 +02:00
|
|
|
"""run VCL thru host stack uni-directional DTLS test"""
|
2021-05-06 12:46:04 -07:00
|
|
|
|
|
|
|
self.timeout = self.client_uni_dir_dtls_timeout
|
2022-04-26 19:02:15 +02:00
|
|
|
self.thru_host_stack_test(
|
|
|
|
"vcl_test_server",
|
|
|
|
self.server_dtls_args,
|
|
|
|
"vcl_test_client",
|
|
|
|
self.client_uni_dir_dtls_test_args,
|
|
|
|
)
|
2021-05-06 12:46:04 -07:00
|
|
|
|
|
|
|
def tearDown(self):
|
|
|
|
self.thru_host_stack_tear_down()
|
|
|
|
super(VCLThruHostStackDTLS, self).tearDown()
|
|
|
|
|
|
|
|
def show_commands_at_teardown(self):
|
|
|
|
self.logger.debug(self.vapi.cli("show app server"))
|
2021-05-18 00:35:50 -07:00
|
|
|
self.logger.debug(self.vapi.cli("show session verbose 2"))
|
|
|
|
self.logger.debug(self.vapi.cli("show app mq"))
|
|
|
|
|
|
|
|
|
2024-03-11 10:38:46 +00:00
|
|
|
@unittest.skipIf(
|
|
|
|
"hs_apps" in config.excluded_plugins, "Exclude tests requiring hs_apps plugin"
|
|
|
|
)
|
2021-05-18 00:35:50 -07:00
|
|
|
class VCLThruHostStackQUIC(VCLTestCase):
|
2022-04-26 19:02:15 +02:00
|
|
|
"""VCL Thru Host Stack QUIC"""
|
2021-05-18 00:35:50 -07:00
|
|
|
|
|
|
|
@classmethod
|
|
|
|
def setUpClass(cls):
|
|
|
|
cls.extra_vpp_plugin_config.append("plugin quic_plugin.so { enable }")
|
|
|
|
super(VCLThruHostStackQUIC, cls).setUpClass()
|
|
|
|
|
|
|
|
@classmethod
|
|
|
|
def tearDownClass(cls):
|
|
|
|
super(VCLThruHostStackQUIC, cls).tearDownClass()
|
|
|
|
|
|
|
|
def setUp(self):
|
|
|
|
super(VCLThruHostStackQUIC, self).setUp()
|
|
|
|
|
|
|
|
self.thru_host_stack_setup()
|
|
|
|
self.client_uni_dir_quic_timeout = 20
|
|
|
|
self.server_quic_args = ["-p", "quic", self.server_port]
|
2022-04-26 19:02:15 +02:00
|
|
|
self.client_uni_dir_quic_test_args = [
|
|
|
|
"-N",
|
|
|
|
"1000",
|
|
|
|
"-U",
|
|
|
|
"-X",
|
|
|
|
"-p",
|
|
|
|
"quic",
|
|
|
|
self.loop0.local_ip4,
|
|
|
|
self.server_port,
|
|
|
|
]
|
2021-05-18 00:35:50 -07:00
|
|
|
|
2021-05-31 16:08:53 +02:00
|
|
|
@unittest.skipUnless(config.extended, "part of extended tests")
|
2021-05-18 00:35:50 -07:00
|
|
|
def test_vcl_thru_host_stack_quic_uni_dir(self):
|
2022-04-26 19:02:15 +02:00
|
|
|
"""run VCL thru host stack uni-directional QUIC test"""
|
2021-05-18 00:35:50 -07:00
|
|
|
|
|
|
|
self.timeout = self.client_uni_dir_quic_timeout
|
2022-04-26 19:02:15 +02:00
|
|
|
self.thru_host_stack_test(
|
|
|
|
"vcl_test_server",
|
|
|
|
self.server_quic_args,
|
|
|
|
"vcl_test_client",
|
|
|
|
self.client_uni_dir_quic_test_args,
|
|
|
|
)
|
2021-05-18 00:35:50 -07:00
|
|
|
|
|
|
|
def tearDown(self):
|
|
|
|
self.thru_host_stack_tear_down()
|
|
|
|
super(VCLThruHostStackQUIC, self).tearDown()
|
|
|
|
|
|
|
|
def show_commands_at_teardown(self):
|
|
|
|
self.logger.debug(self.vapi.cli("show app server"))
|
2019-03-13 09:23:05 -07:00
|
|
|
self.logger.debug(self.vapi.cli("show session verbose 2"))
|
2021-01-15 13:49:33 -08:00
|
|
|
self.logger.debug(self.vapi.cli("show app mq"))
|
2019-03-13 09:23:05 -07:00
|
|
|
|
2019-02-18 22:39:39 -08:00
|
|
|
|
2024-08-28 14:02:34 -07:00
|
|
|
@unittest.skipIf(
|
|
|
|
"hs_apps" in config.excluded_plugins, "Exclude tests requiring hs_apps plugin"
|
|
|
|
)
|
|
|
|
class VCLThruHostStackHTTPPost(VCLTestCase):
|
|
|
|
"""VCL Thru Host Stack HTTP Post"""
|
|
|
|
|
|
|
|
@classmethod
|
|
|
|
def setUpClass(cls):
|
|
|
|
cls.extra_vpp_plugin_config.append("plugin http_plugin.so { enable }")
|
|
|
|
super(VCLThruHostStackHTTPPost, cls).setUpClass()
|
|
|
|
|
|
|
|
@classmethod
|
|
|
|
def tearDownClass(cls):
|
|
|
|
super(VCLThruHostStackHTTPPost, cls).tearDownClass()
|
|
|
|
|
|
|
|
def setUp(self):
|
|
|
|
super(VCLThruHostStackHTTPPost, self).setUp()
|
|
|
|
|
|
|
|
self.thru_host_stack_setup()
|
|
|
|
self.client_uni_dir_http_post_timeout = 20
|
|
|
|
self.server_http_post_args = ["-p", "http", self.server_port]
|
|
|
|
self.client_uni_dir_http_post_test_args = [
|
|
|
|
"-N",
|
|
|
|
"10000",
|
|
|
|
"-U",
|
|
|
|
"-X",
|
|
|
|
"-p",
|
|
|
|
"http",
|
|
|
|
self.loop0.local_ip4,
|
|
|
|
self.server_port,
|
|
|
|
]
|
|
|
|
|
|
|
|
def test_vcl_thru_host_stack_http_post_uni_dir(self):
|
|
|
|
"""run VCL thru host stack uni-directional HTTP POST test"""
|
|
|
|
|
|
|
|
self.timeout = self.client_uni_dir_http_post_timeout
|
|
|
|
self.thru_host_stack_test(
|
|
|
|
"vcl_test_server",
|
|
|
|
self.server_http_post_args,
|
|
|
|
"vcl_test_client",
|
|
|
|
self.client_uni_dir_http_post_test_args,
|
|
|
|
)
|
|
|
|
|
|
|
|
def tearDown(self):
|
|
|
|
self.thru_host_stack_tear_down()
|
|
|
|
super(VCLThruHostStackHTTPPost, self).tearDown()
|
|
|
|
|
|
|
|
def show_commands_at_teardown(self):
|
|
|
|
self.logger.debug(self.vapi.cli("show app server"))
|
|
|
|
self.logger.debug(self.vapi.cli("show session verbose 2"))
|
|
|
|
self.logger.debug(self.vapi.cli("show app mq"))
|
|
|
|
|
|
|
|
|
2024-03-11 10:38:46 +00:00
|
|
|
@unittest.skipIf(
|
|
|
|
"hs_apps" in config.excluded_plugins, "Exclude tests requiring hs_apps plugin"
|
|
|
|
)
|
2018-12-03 17:47:26 -08:00
|
|
|
class VCLThruHostStackBidirNsock(VCLTestCase):
|
2022-04-26 19:02:15 +02:00
|
|
|
"""VCL Thru Host Stack Bidir Nsock"""
|
2018-03-02 13:19:30 -05:00
|
|
|
|
2019-01-25 14:05:48 -08:00
|
|
|
@classmethod
|
|
|
|
def setUpClass(cls):
|
|
|
|
super(VCLThruHostStackBidirNsock, cls).setUpClass()
|
|
|
|
|
|
|
|
@classmethod
|
|
|
|
def tearDownClass(cls):
|
|
|
|
super(VCLThruHostStackBidirNsock, cls).tearDownClass()
|
|
|
|
|
2018-03-02 13:19:30 -05:00
|
|
|
def setUp(self):
|
2018-12-03 17:47:26 -08:00
|
|
|
super(VCLThruHostStackBidirNsock, self).setUp()
|
2018-03-02 13:19:30 -05:00
|
|
|
|
|
|
|
self.thru_host_stack_setup()
|
2018-12-03 17:47:26 -08:00
|
|
|
self.client_bi_dir_nsock_timeout = 20
|
2022-04-26 19:02:15 +02:00
|
|
|
self.client_bi_dir_nsock_test_args = [
|
|
|
|
"-N",
|
|
|
|
"1000",
|
|
|
|
"-B",
|
|
|
|
"-X",
|
|
|
|
"-I",
|
|
|
|
"2",
|
|
|
|
self.loop0.local_ip4,
|
|
|
|
self.server_port,
|
|
|
|
]
|
|
|
|
self.client_echo_test_args = [
|
|
|
|
"-E",
|
|
|
|
self.echo_phrase,
|
|
|
|
"-X",
|
|
|
|
self.loop0.local_ip4,
|
|
|
|
self.server_port,
|
|
|
|
]
|
2018-03-02 13:19:30 -05:00
|
|
|
|
|
|
|
def tearDown(self):
|
|
|
|
self.thru_host_stack_tear_down()
|
2018-12-03 17:47:26 -08:00
|
|
|
super(VCLThruHostStackBidirNsock, self).tearDown()
|
2018-03-02 13:19:30 -05:00
|
|
|
|
2019-03-13 09:23:05 -07:00
|
|
|
def show_commands_at_teardown(self):
|
|
|
|
self.logger.debug(self.vapi.cli("show session verbose 2"))
|
2021-01-15 13:49:33 -08:00
|
|
|
self.logger.debug(self.vapi.cli("show app mq"))
|
2019-03-13 09:23:05 -07:00
|
|
|
|
2018-03-02 13:19:30 -05:00
|
|
|
def test_vcl_thru_host_stack_bi_dir_nsock(self):
|
2022-04-26 19:02:15 +02:00
|
|
|
"""run VCL thru host stack bi-directional (multiple sockets) test"""
|
2018-03-02 13:19:30 -05:00
|
|
|
|
|
|
|
self.timeout = self.client_bi_dir_nsock_timeout
|
2022-04-26 19:02:15 +02:00
|
|
|
self.thru_host_stack_test(
|
|
|
|
"vcl_test_server",
|
|
|
|
self.server_args,
|
|
|
|
"vcl_test_client",
|
|
|
|
self.client_bi_dir_nsock_test_args,
|
|
|
|
)
|
2018-03-02 13:19:30 -05:00
|
|
|
|
|
|
|
|
2024-03-11 10:38:46 +00:00
|
|
|
@unittest.skipIf(
|
|
|
|
"hs_apps" in config.excluded_plugins, "Exclude tests requiring hs_apps plugin"
|
|
|
|
)
|
2018-12-03 17:47:26 -08:00
|
|
|
class LDPThruHostStackBidirNsock(VCLTestCase):
|
2022-04-26 19:02:15 +02:00
|
|
|
"""LDP Thru Host Stack Bidir Nsock"""
|
2018-03-02 13:19:30 -05:00
|
|
|
|
2019-01-25 14:05:48 -08:00
|
|
|
@classmethod
|
|
|
|
def setUpClass(cls):
|
|
|
|
super(LDPThruHostStackBidirNsock, cls).setUpClass()
|
|
|
|
|
|
|
|
@classmethod
|
|
|
|
def tearDownClass(cls):
|
|
|
|
super(LDPThruHostStackBidirNsock, cls).tearDownClass()
|
|
|
|
|
2018-03-02 13:19:30 -05:00
|
|
|
def setUp(self):
|
2018-12-03 17:47:26 -08:00
|
|
|
super(LDPThruHostStackBidirNsock, self).setUp()
|
2018-03-02 13:19:30 -05:00
|
|
|
|
|
|
|
self.thru_host_stack_setup()
|
2020-04-03 19:48:48 -04:00
|
|
|
self.client_bi_dir_nsock_timeout = 20
|
2022-04-26 19:02:15 +02:00
|
|
|
self.client_bi_dir_nsock_test_args = [
|
|
|
|
"-N",
|
|
|
|
"1000",
|
|
|
|
"-B",
|
|
|
|
"-X",
|
|
|
|
# OUCH! Host Stack Bug?
|
|
|
|
# Only fails when running
|
|
|
|
# 'make test TEST_JOBS=auto'
|
|
|
|
# or TEST_JOBS > 1
|
|
|
|
# "-I", "2",
|
|
|
|
self.loop0.local_ip4,
|
|
|
|
self.server_port,
|
|
|
|
]
|
2018-03-02 13:19:30 -05:00
|
|
|
|
|
|
|
def tearDown(self):
|
|
|
|
self.thru_host_stack_tear_down()
|
2018-12-03 17:47:26 -08:00
|
|
|
super(LDPThruHostStackBidirNsock, self).tearDown()
|
2018-03-02 13:19:30 -05:00
|
|
|
|
2019-03-13 09:23:05 -07:00
|
|
|
def show_commands_at_teardown(self):
|
|
|
|
self.logger.debug(self.vapi.cli("show session verbose 2"))
|
2021-01-15 13:49:33 -08:00
|
|
|
self.logger.debug(self.vapi.cli("show app mq"))
|
2019-03-13 09:23:05 -07:00
|
|
|
|
2018-03-02 13:19:30 -05:00
|
|
|
def test_ldp_thru_host_stack_bi_dir_nsock(self):
|
2022-04-26 19:02:15 +02:00
|
|
|
"""run LDP thru host stack bi-directional (multiple sockets) test"""
|
2018-03-02 13:19:30 -05:00
|
|
|
|
|
|
|
self.timeout = self.client_bi_dir_nsock_timeout
|
2022-04-26 19:02:15 +02:00
|
|
|
self.thru_host_stack_test(
|
|
|
|
"sock_test_server",
|
|
|
|
self.server_args,
|
|
|
|
"sock_test_client",
|
|
|
|
self.client_bi_dir_nsock_test_args,
|
|
|
|
)
|
2018-03-02 13:19:30 -05:00
|
|
|
|
|
|
|
|
2024-03-11 10:38:46 +00:00
|
|
|
@unittest.skipIf(
|
|
|
|
"hs_apps" in config.excluded_plugins, "Exclude tests requiring hs_apps plugin"
|
|
|
|
)
|
2018-12-03 17:47:26 -08:00
|
|
|
class LDPThruHostStackNsock(VCLTestCase):
|
2022-04-26 19:02:15 +02:00
|
|
|
"""LDP Thru Host Stack Nsock"""
|
2018-03-02 13:19:30 -05:00
|
|
|
|
2019-01-25 14:05:48 -08:00
|
|
|
@classmethod
|
|
|
|
def setUpClass(cls):
|
|
|
|
super(LDPThruHostStackNsock, cls).setUpClass()
|
|
|
|
|
|
|
|
@classmethod
|
|
|
|
def tearDownClass(cls):
|
|
|
|
super(LDPThruHostStackNsock, cls).tearDownClass()
|
|
|
|
|
2018-03-02 13:19:30 -05:00
|
|
|
def setUp(self):
|
2018-12-03 17:47:26 -08:00
|
|
|
super(LDPThruHostStackNsock, self).setUp()
|
2018-03-02 13:19:30 -05:00
|
|
|
|
|
|
|
self.thru_host_stack_setup()
|
|
|
|
if self.vppDebug:
|
2018-11-29 00:39:53 -08:00
|
|
|
self.client_uni_dir_nsock_timeout = 20
|
2018-03-02 13:19:30 -05:00
|
|
|
self.numSockets = "2"
|
|
|
|
else:
|
2018-11-29 00:39:53 -08:00
|
|
|
self.client_uni_dir_nsock_timeout = 20
|
2018-03-02 13:19:30 -05:00
|
|
|
self.numSockets = "5"
|
|
|
|
|
2022-04-26 19:02:15 +02:00
|
|
|
self.client_uni_dir_nsock_test_args = [
|
|
|
|
"-N",
|
|
|
|
"1000",
|
|
|
|
"-U",
|
|
|
|
"-X",
|
|
|
|
"-I",
|
|
|
|
self.numSockets,
|
|
|
|
self.loop0.local_ip4,
|
|
|
|
self.server_port,
|
|
|
|
]
|
2018-03-02 13:19:30 -05:00
|
|
|
|
|
|
|
def tearDown(self):
|
|
|
|
self.thru_host_stack_tear_down()
|
2018-12-03 17:47:26 -08:00
|
|
|
super(LDPThruHostStackNsock, self).tearDown()
|
2018-03-02 13:19:30 -05:00
|
|
|
|
|
|
|
def test_ldp_thru_host_stack_uni_dir_nsock(self):
|
2022-04-26 19:02:15 +02:00
|
|
|
"""run LDP thru host stack uni-directional (multiple sockets) test"""
|
2018-03-02 13:19:30 -05:00
|
|
|
|
|
|
|
self.timeout = self.client_uni_dir_nsock_timeout
|
2022-04-26 19:02:15 +02:00
|
|
|
self.thru_host_stack_test(
|
|
|
|
"sock_test_server",
|
|
|
|
self.server_args,
|
|
|
|
"sock_test_client",
|
|
|
|
self.client_uni_dir_nsock_test_args,
|
|
|
|
)
|
2018-03-02 13:19:30 -05:00
|
|
|
|
|
|
|
|
2024-03-11 10:38:46 +00:00
|
|
|
@unittest.skipIf(
|
|
|
|
"hs_apps" in config.excluded_plugins, "Exclude tests requiring hs_apps plugin"
|
|
|
|
)
|
2018-12-03 17:47:26 -08:00
|
|
|
class VCLThruHostStackNsock(VCLTestCase):
|
2022-04-26 19:02:15 +02:00
|
|
|
"""VCL Thru Host Stack Nsock"""
|
2018-03-02 13:19:30 -05:00
|
|
|
|
2019-01-25 14:05:48 -08:00
|
|
|
@classmethod
|
|
|
|
def setUpClass(cls):
|
|
|
|
super(VCLThruHostStackNsock, cls).setUpClass()
|
|
|
|
|
|
|
|
@classmethod
|
|
|
|
def tearDownClass(cls):
|
|
|
|
super(VCLThruHostStackNsock, cls).tearDownClass()
|
|
|
|
|
2018-03-02 13:19:30 -05:00
|
|
|
def setUp(self):
|
2018-12-03 17:47:26 -08:00
|
|
|
super(VCLThruHostStackNsock, self).setUp()
|
2018-03-02 13:19:30 -05:00
|
|
|
|
|
|
|
self.thru_host_stack_setup()
|
|
|
|
if self.vppDebug:
|
2018-11-29 00:39:53 -08:00
|
|
|
self.client_uni_dir_nsock_timeout = 20
|
2018-03-02 13:19:30 -05:00
|
|
|
self.numSockets = "2"
|
|
|
|
else:
|
2018-11-29 00:39:53 -08:00
|
|
|
self.client_uni_dir_nsock_timeout = 20
|
2018-03-02 13:19:30 -05:00
|
|
|
self.numSockets = "5"
|
|
|
|
|
2022-04-26 19:02:15 +02:00
|
|
|
self.client_uni_dir_nsock_test_args = [
|
|
|
|
"-N",
|
|
|
|
"1000",
|
|
|
|
"-U",
|
|
|
|
"-X",
|
|
|
|
"-I",
|
|
|
|
self.numSockets,
|
|
|
|
self.loop0.local_ip4,
|
|
|
|
self.server_port,
|
|
|
|
]
|
2018-03-02 13:19:30 -05:00
|
|
|
|
|
|
|
def tearDown(self):
|
|
|
|
self.thru_host_stack_tear_down()
|
2018-12-03 17:47:26 -08:00
|
|
|
super(VCLThruHostStackNsock, self).tearDown()
|
2018-03-02 13:19:30 -05:00
|
|
|
|
|
|
|
def test_vcl_thru_host_stack_uni_dir_nsock(self):
|
2022-04-26 19:02:15 +02:00
|
|
|
"""run VCL thru host stack uni-directional (multiple sockets) test"""
|
2018-03-02 13:19:30 -05:00
|
|
|
|
|
|
|
self.timeout = self.client_uni_dir_nsock_timeout
|
2022-04-26 19:02:15 +02:00
|
|
|
self.thru_host_stack_test(
|
|
|
|
"vcl_test_server",
|
|
|
|
self.server_args,
|
|
|
|
"vcl_test_client",
|
|
|
|
self.client_uni_dir_nsock_test_args,
|
|
|
|
)
|
2018-03-02 13:19:30 -05:00
|
|
|
|
|
|
|
|
2024-08-19 18:47:55 -04:00
|
|
|
@tag_fixme_ubuntu2404
|
2018-12-03 17:47:26 -08:00
|
|
|
class LDPThruHostStackIperf(VCLTestCase):
|
2022-04-26 19:02:15 +02:00
|
|
|
"""LDP Thru Host Stack Iperf"""
|
2018-03-14 20:01:28 -04:00
|
|
|
|
2019-01-25 14:05:48 -08:00
|
|
|
@classmethod
|
|
|
|
def setUpClass(cls):
|
|
|
|
super(LDPThruHostStackIperf, cls).setUpClass()
|
|
|
|
|
|
|
|
@classmethod
|
|
|
|
def tearDownClass(cls):
|
|
|
|
super(LDPThruHostStackIperf, cls).tearDownClass()
|
|
|
|
|
2018-03-14 20:01:28 -04:00
|
|
|
def setUp(self):
|
2018-12-03 17:47:26 -08:00
|
|
|
super(LDPThruHostStackIperf, self).setUp()
|
2018-03-14 20:01:28 -04:00
|
|
|
|
|
|
|
self.thru_host_stack_setup()
|
|
|
|
self.client_iperf3_timeout = 20
|
2021-05-06 00:08:18 -07:00
|
|
|
self.client_iperf3_args = ["-4", "-t 2", "-c", self.loop0.local_ip4]
|
|
|
|
self.server_iperf3_args = ["-4", "-s"]
|
2018-03-14 20:01:28 -04:00
|
|
|
|
|
|
|
def tearDown(self):
|
|
|
|
self.thru_host_stack_tear_down()
|
2018-12-03 17:47:26 -08:00
|
|
|
super(LDPThruHostStackIperf, self).tearDown()
|
2018-03-14 20:01:28 -04:00
|
|
|
|
2019-03-13 09:23:05 -07:00
|
|
|
def show_commands_at_teardown(self):
|
|
|
|
self.logger.debug(self.vapi.cli("show session verbose 2"))
|
2021-01-15 13:49:33 -08:00
|
|
|
self.logger.debug(self.vapi.cli("show app mq"))
|
2019-03-13 09:23:05 -07:00
|
|
|
|
tests: Have worker return immediately on bad executable
No reason to waste CI cycles if we know the test will not run.
See:
17:55:11 ==============================================================================
17:55:11 VPP Object Model Test
17:55:11 ==============================================================================
17:55:11 Exception in thread Thread-4:
17:55:11 Traceback (most recent call last):
17:55:11 File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
17:55:11 self.run()
17:55:11 File "/w/workspace/vpp-beta-verify-master-ubuntu1804/test/framework.py", line 1475, in run
17:55:11 stdout=subprocess.PIPE, stderr=subprocess.PIPE)
17:55:11 File "/w/workspace/vpp-beta-verify-master-ubuntu1804/test/run/venv/local/lib/python2.7/site-packages/subprocess32.py", line 617, in __init__
17:55:11 restore_signals, start_new_session)
17:55:11 File "/w/workspace/vpp-beta-verify-master-ubuntu1804/test/run/venv/local/lib/python2.7/site-packages/subprocess32.py", line 1415, in _execute_child
17:55:11 raise child_exception_type(errno_num, err_msg)
17:55:11 OSError: [Errno 2] No such file or directory: '/w/workspace/vpp-beta-verify-master-ubuntu1804/test/build/vom_test/vom_test'
17:55:11
17:55:11 17:55:11,328 Timeout! Worker did not finish in 120s
17:55:11 run C++ VOM tests ERROR [ temp dir used by test case: /tmp/vpp-unittest-VOMTestCase-vpMcWF ]
17:55:11
Type: fix
Change-Id: I3d8252807e98a09a8abd70de8a22517151f9d786
Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
2019-06-30 15:38:55 -04:00
|
|
|
@unittest.skipUnless(_have_iperf3, "'%s' not found, Skipping.")
|
2018-03-14 20:01:28 -04:00
|
|
|
def test_ldp_thru_host_stack_iperf3(self):
|
2022-04-26 19:02:15 +02:00
|
|
|
"""run LDP thru host stack iperf3 test"""
|
2018-03-14 20:01:28 -04:00
|
|
|
|
|
|
|
self.timeout = self.client_iperf3_timeout
|
2022-04-26 19:02:15 +02:00
|
|
|
self.thru_host_stack_test(
|
|
|
|
iperf3, self.server_iperf3_args, iperf3, self.client_iperf3_args
|
|
|
|
)
|
2018-03-14 20:01:28 -04:00
|
|
|
|
2022-05-13 04:24:19 +00:00
|
|
|
@unittest.skipUnless(_have_iperf3, "'%s' not found, Skipping.")
|
|
|
|
def test_ldp_thru_host_stack_iperf3_mss(self):
|
|
|
|
"""run LDP thru host stack iperf3 test with mss option"""
|
|
|
|
|
|
|
|
self.timeout = self.client_iperf3_timeout
|
|
|
|
self.client_iperf3_args.append("-M 1000")
|
|
|
|
self.thru_host_stack_test(
|
|
|
|
iperf3, self.server_iperf3_args, iperf3, self.client_iperf3_args
|
|
|
|
)
|
|
|
|
|
2018-03-14 20:01:28 -04:00
|
|
|
|
2024-08-19 18:47:55 -04:00
|
|
|
@tag_fixme_ubuntu2404
|
2020-04-01 23:16:11 +00:00
|
|
|
class LDPThruHostStackIperfUdp(VCLTestCase):
|
2022-04-26 19:02:15 +02:00
|
|
|
"""LDP Thru Host Stack Iperf UDP"""
|
2020-04-01 23:16:11 +00:00
|
|
|
|
|
|
|
@classmethod
|
|
|
|
def setUpClass(cls):
|
|
|
|
super(LDPThruHostStackIperfUdp, cls).setUpClass()
|
|
|
|
|
|
|
|
@classmethod
|
|
|
|
def tearDownClass(cls):
|
|
|
|
super(LDPThruHostStackIperfUdp, cls).tearDownClass()
|
|
|
|
|
|
|
|
def setUp(self):
|
|
|
|
super(LDPThruHostStackIperfUdp, self).setUp()
|
|
|
|
|
|
|
|
self.thru_host_stack_setup()
|
|
|
|
self.client_iperf3_timeout = 20
|
2022-04-26 19:02:15 +02:00
|
|
|
self.client_iperf3_args = [
|
|
|
|
"-4",
|
|
|
|
"-t 2",
|
|
|
|
"-u",
|
|
|
|
"-l 1400",
|
2023-05-25 12:04:53 -07:00
|
|
|
"-P 2",
|
2022-04-26 19:02:15 +02:00
|
|
|
"-c",
|
|
|
|
self.loop0.local_ip4,
|
|
|
|
]
|
2021-05-06 00:08:18 -07:00
|
|
|
self.server_iperf3_args = ["-4", "-s"]
|
2020-04-01 23:16:11 +00:00
|
|
|
|
|
|
|
def tearDown(self):
|
|
|
|
self.thru_host_stack_tear_down()
|
|
|
|
super(LDPThruHostStackIperfUdp, self).tearDown()
|
|
|
|
|
|
|
|
def show_commands_at_teardown(self):
|
|
|
|
self.logger.debug(self.vapi.cli("show session verbose 2"))
|
2021-01-15 13:49:33 -08:00
|
|
|
self.logger.debug(self.vapi.cli("show app mq"))
|
2020-04-01 23:16:11 +00:00
|
|
|
|
|
|
|
@unittest.skipUnless(_have_iperf3, "'%s' not found, Skipping.")
|
|
|
|
def test_ldp_thru_host_stack_iperf3_udp(self):
|
2022-04-26 19:02:15 +02:00
|
|
|
"""run LDP thru host stack iperf3 UDP test"""
|
2020-04-01 23:16:11 +00:00
|
|
|
|
|
|
|
self.timeout = self.client_iperf3_timeout
|
2022-04-26 19:02:15 +02:00
|
|
|
self.thru_host_stack_test(
|
|
|
|
iperf3, self.server_iperf3_args, iperf3, self.client_iperf3_args
|
|
|
|
)
|
2020-04-01 23:16:11 +00:00
|
|
|
|
|
|
|
|
2024-08-19 18:47:55 -04:00
|
|
|
@tag_fixme_ubuntu2404
|
2018-11-29 18:22:10 -08:00
|
|
|
class LDPIpv6CutThruTestCase(VCLTestCase):
|
2022-04-26 19:02:15 +02:00
|
|
|
"""LDP IPv6 Cut Thru Tests"""
|
2018-03-20 09:22:13 -04:00
|
|
|
|
2019-01-25 14:05:48 -08:00
|
|
|
@classmethod
|
|
|
|
def setUpClass(cls):
|
|
|
|
super(LDPIpv6CutThruTestCase, cls).setUpClass()
|
|
|
|
|
|
|
|
@classmethod
|
|
|
|
def tearDownClass(cls):
|
|
|
|
super(LDPIpv6CutThruTestCase, cls).tearDownClass()
|
|
|
|
|
2021-01-15 13:49:33 -08:00
|
|
|
def show_commands_at_teardown(self):
|
|
|
|
self.logger.debug(self.vapi.cli("show session verbose 2"))
|
|
|
|
self.logger.debug(self.vapi.cli("show app mq"))
|
|
|
|
|
2018-03-20 09:22:13 -04:00
|
|
|
def setUp(self):
|
2018-11-29 18:22:10 -08:00
|
|
|
super(LDPIpv6CutThruTestCase, self).setUp()
|
2018-03-20 09:22:13 -04:00
|
|
|
|
|
|
|
self.cut_thru_setup()
|
|
|
|
self.client_iperf3_timeout = 20
|
2018-11-29 00:39:53 -08:00
|
|
|
self.client_uni_dir_nsock_timeout = 20
|
|
|
|
self.client_bi_dir_nsock_timeout = 20
|
2022-04-26 19:02:15 +02:00
|
|
|
self.client_ipv6_echo_test_args = [
|
|
|
|
"-6",
|
|
|
|
"-E",
|
|
|
|
self.echo_phrase,
|
|
|
|
"-X",
|
|
|
|
self.server_ipv6_addr,
|
|
|
|
self.server_port,
|
|
|
|
]
|
|
|
|
self.client_ipv6_iperf3_args = ["-6", "-t 2", "-c", self.server_ipv6_addr]
|
2021-05-06 00:08:18 -07:00
|
|
|
self.server_ipv6_iperf3_args = ["-6", "-s"]
|
2022-04-26 19:02:15 +02:00
|
|
|
self.client_ipv6_uni_dir_nsock_test_args = [
|
|
|
|
"-N",
|
|
|
|
"1000",
|
|
|
|
"-U",
|
|
|
|
"-X",
|
|
|
|
"-6",
|
|
|
|
"-I",
|
|
|
|
"2",
|
|
|
|
self.server_ipv6_addr,
|
|
|
|
self.server_port,
|
|
|
|
]
|
|
|
|
self.client_ipv6_bi_dir_nsock_test_args = [
|
|
|
|
"-N",
|
|
|
|
"1000",
|
|
|
|
"-B",
|
|
|
|
"-X",
|
|
|
|
"-6",
|
|
|
|
"-I",
|
|
|
|
"2",
|
|
|
|
self.server_ipv6_addr,
|
|
|
|
self.server_port,
|
|
|
|
]
|
2018-03-20 09:22:13 -04:00
|
|
|
|
|
|
|
def tearDown(self):
|
2018-11-29 18:22:10 -08:00
|
|
|
super(LDPIpv6CutThruTestCase, self).tearDown()
|
2019-05-10 20:41:08 -04:00
|
|
|
self.cut_thru_tear_down()
|
2018-03-20 09:22:13 -04:00
|
|
|
|
2021-05-31 16:08:53 +02:00
|
|
|
@unittest.skipUnless(config.extended, "part of extended tests")
|
2018-03-20 09:22:13 -04:00
|
|
|
def test_ldp_ipv6_cut_thru_echo(self):
|
2022-04-26 19:02:15 +02:00
|
|
|
"""run LDP IPv6 cut thru echo test"""
|
2018-03-20 09:22:13 -04:00
|
|
|
|
2022-04-26 19:02:15 +02:00
|
|
|
self.cut_thru_test(
|
|
|
|
"sock_test_server",
|
|
|
|
self.server_ipv6_args,
|
|
|
|
"sock_test_client",
|
|
|
|
self.client_ipv6_echo_test_args,
|
|
|
|
)
|
2018-03-20 09:22:13 -04:00
|
|
|
|
tests: Have worker return immediately on bad executable
No reason to waste CI cycles if we know the test will not run.
See:
17:55:11 ==============================================================================
17:55:11 VPP Object Model Test
17:55:11 ==============================================================================
17:55:11 Exception in thread Thread-4:
17:55:11 Traceback (most recent call last):
17:55:11 File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
17:55:11 self.run()
17:55:11 File "/w/workspace/vpp-beta-verify-master-ubuntu1804/test/framework.py", line 1475, in run
17:55:11 stdout=subprocess.PIPE, stderr=subprocess.PIPE)
17:55:11 File "/w/workspace/vpp-beta-verify-master-ubuntu1804/test/run/venv/local/lib/python2.7/site-packages/subprocess32.py", line 617, in __init__
17:55:11 restore_signals, start_new_session)
17:55:11 File "/w/workspace/vpp-beta-verify-master-ubuntu1804/test/run/venv/local/lib/python2.7/site-packages/subprocess32.py", line 1415, in _execute_child
17:55:11 raise child_exception_type(errno_num, err_msg)
17:55:11 OSError: [Errno 2] No such file or directory: '/w/workspace/vpp-beta-verify-master-ubuntu1804/test/build/vom_test/vom_test'
17:55:11
17:55:11 17:55:11,328 Timeout! Worker did not finish in 120s
17:55:11 run C++ VOM tests ERROR [ temp dir used by test case: /tmp/vpp-unittest-VOMTestCase-vpMcWF ]
17:55:11
Type: fix
Change-Id: I3d8252807e98a09a8abd70de8a22517151f9d786
Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
2019-06-30 15:38:55 -04:00
|
|
|
@unittest.skipUnless(_have_iperf3, "'%s' not found, Skipping.")
|
2018-03-20 09:22:13 -04:00
|
|
|
def test_ldp_ipv6_cut_thru_iperf3(self):
|
2022-04-26 19:02:15 +02:00
|
|
|
"""run LDP IPv6 cut thru iperf3 test"""
|
2018-03-20 09:22:13 -04:00
|
|
|
|
|
|
|
self.timeout = self.client_iperf3_timeout
|
2022-04-26 19:02:15 +02:00
|
|
|
self.cut_thru_test(
|
|
|
|
iperf3, self.server_ipv6_iperf3_args, iperf3, self.client_ipv6_iperf3_args
|
|
|
|
)
|
2018-03-20 09:22:13 -04:00
|
|
|
|
2021-05-31 16:08:53 +02:00
|
|
|
@unittest.skipUnless(config.extended, "part of extended tests")
|
2018-03-20 09:22:13 -04:00
|
|
|
def test_ldp_ipv6_cut_thru_uni_dir_nsock(self):
|
2022-04-26 19:02:15 +02:00
|
|
|
"""run LDP IPv6 cut thru uni-directional (multiple sockets) test"""
|
2018-03-20 09:22:13 -04:00
|
|
|
|
|
|
|
self.timeout = self.client_uni_dir_nsock_timeout
|
2022-04-26 19:02:15 +02:00
|
|
|
self.cut_thru_test(
|
|
|
|
"sock_test_server",
|
|
|
|
self.server_ipv6_args,
|
|
|
|
"sock_test_client",
|
|
|
|
self.client_ipv6_uni_dir_nsock_test_args,
|
|
|
|
)
|
2018-03-20 09:22:13 -04:00
|
|
|
|
2021-05-31 16:08:53 +02:00
|
|
|
@unittest.skipUnless(config.extended, "part of extended tests")
|
2019-07-02 19:33:15 -07:00
|
|
|
@unittest.skip("sock test apps need to be improved")
|
2018-03-20 09:22:13 -04:00
|
|
|
def test_ldp_ipv6_cut_thru_bi_dir_nsock(self):
|
2022-04-26 19:02:15 +02:00
|
|
|
"""run LDP IPv6 cut thru bi-directional (multiple sockets) test"""
|
2018-03-20 09:22:13 -04:00
|
|
|
|
|
|
|
self.timeout = self.client_bi_dir_nsock_timeout
|
2022-04-26 19:02:15 +02:00
|
|
|
self.cut_thru_test(
|
|
|
|
"sock_test_server",
|
|
|
|
self.server_ipv6_args,
|
|
|
|
"sock_test_client",
|
|
|
|
self.client_ipv6_bi_dir_nsock_test_args,
|
|
|
|
)
|
2018-03-20 09:22:13 -04:00
|
|
|
|
2018-11-29 18:22:10 -08:00
|
|
|
|
2024-03-11 10:38:46 +00:00
|
|
|
@unittest.skipIf(
|
|
|
|
"hs_apps" in config.excluded_plugins, "Exclude tests requiring hs_apps plugin"
|
|
|
|
)
|
2018-11-29 18:22:10 -08:00
|
|
|
class VCLIpv6CutThruTestCase(VCLTestCase):
|
2022-04-26 19:02:15 +02:00
|
|
|
"""VCL IPv6 Cut Thru Tests"""
|
2018-11-29 18:22:10 -08:00
|
|
|
|
2019-01-25 14:05:48 -08:00
|
|
|
@classmethod
|
|
|
|
def setUpClass(cls):
|
|
|
|
super(VCLIpv6CutThruTestCase, cls).setUpClass()
|
|
|
|
|
|
|
|
@classmethod
|
|
|
|
def tearDownClass(cls):
|
|
|
|
super(VCLIpv6CutThruTestCase, cls).tearDownClass()
|
|
|
|
|
2021-01-15 13:49:33 -08:00
|
|
|
def show_commands_at_teardown(self):
|
|
|
|
self.logger.debug(self.vapi.cli("show session verbose 2"))
|
|
|
|
self.logger.debug(self.vapi.cli("show app mq"))
|
|
|
|
|
2018-11-29 18:22:10 -08:00
|
|
|
def setUp(self):
|
|
|
|
super(VCLIpv6CutThruTestCase, self).setUp()
|
|
|
|
|
|
|
|
self.cut_thru_setup()
|
|
|
|
self.client_uni_dir_nsock_timeout = 20
|
|
|
|
self.client_bi_dir_nsock_timeout = 20
|
2022-04-26 19:02:15 +02:00
|
|
|
self.client_ipv6_echo_test_args = [
|
|
|
|
"-6",
|
|
|
|
"-E",
|
|
|
|
self.echo_phrase,
|
|
|
|
"-X",
|
|
|
|
self.server_ipv6_addr,
|
|
|
|
self.server_port,
|
|
|
|
]
|
|
|
|
self.client_ipv6_uni_dir_nsock_test_args = [
|
|
|
|
"-N",
|
|
|
|
"1000",
|
|
|
|
"-U",
|
|
|
|
"-X",
|
|
|
|
"-6",
|
|
|
|
"-I",
|
|
|
|
"2",
|
|
|
|
self.server_ipv6_addr,
|
|
|
|
self.server_port,
|
|
|
|
]
|
|
|
|
self.client_ipv6_bi_dir_nsock_test_args = [
|
|
|
|
"-N",
|
|
|
|
"1000",
|
|
|
|
"-B",
|
|
|
|
"-X",
|
|
|
|
"-6",
|
|
|
|
"-I",
|
|
|
|
"2",
|
|
|
|
self.server_ipv6_addr,
|
|
|
|
self.server_port,
|
|
|
|
]
|
2018-11-29 18:22:10 -08:00
|
|
|
|
|
|
|
def tearDown(self):
|
|
|
|
super(VCLIpv6CutThruTestCase, self).tearDown()
|
2019-05-10 20:41:08 -04:00
|
|
|
self.cut_thru_tear_down()
|
2018-11-29 18:22:10 -08:00
|
|
|
|
2021-01-15 13:49:33 -08:00
|
|
|
def show_commands_at_teardown(self):
|
|
|
|
self.logger.debug(self.vapi.cli("show session verbose 2"))
|
|
|
|
self.logger.debug(self.vapi.cli("show app mq"))
|
|
|
|
|
2018-03-20 09:22:13 -04:00
|
|
|
def test_vcl_ipv6_cut_thru_echo(self):
|
2022-04-26 19:02:15 +02:00
|
|
|
"""run VCL IPv6 cut thru echo test"""
|
2018-03-20 09:22:13 -04:00
|
|
|
|
2022-04-26 19:02:15 +02:00
|
|
|
self.cut_thru_test(
|
|
|
|
"vcl_test_server",
|
|
|
|
self.server_ipv6_args,
|
|
|
|
"vcl_test_client",
|
|
|
|
self.client_ipv6_echo_test_args,
|
|
|
|
)
|
2018-03-20 09:22:13 -04:00
|
|
|
|
2021-05-31 16:08:53 +02:00
|
|
|
@unittest.skipUnless(config.extended, "part of extended tests")
|
2018-03-20 09:22:13 -04:00
|
|
|
def test_vcl_ipv6_cut_thru_uni_dir_nsock(self):
|
2022-04-26 19:02:15 +02:00
|
|
|
"""run VCL IPv6 cut thru uni-directional (multiple sockets) test"""
|
2018-03-20 09:22:13 -04:00
|
|
|
|
|
|
|
self.timeout = self.client_uni_dir_nsock_timeout
|
2022-04-26 19:02:15 +02:00
|
|
|
self.cut_thru_test(
|
|
|
|
"vcl_test_server",
|
|
|
|
self.server_ipv6_args,
|
|
|
|
"vcl_test_client",
|
|
|
|
self.client_ipv6_uni_dir_nsock_test_args,
|
|
|
|
)
|
2018-03-20 09:22:13 -04:00
|
|
|
|
2021-05-31 16:08:53 +02:00
|
|
|
@unittest.skipUnless(config.extended, "part of extended tests")
|
2018-03-20 09:22:13 -04:00
|
|
|
def test_vcl_ipv6_cut_thru_bi_dir_nsock(self):
|
2022-04-26 19:02:15 +02:00
|
|
|
"""run VCL IPv6 cut thru bi-directional (multiple sockets) test"""
|
2018-03-20 09:22:13 -04:00
|
|
|
|
|
|
|
self.timeout = self.client_bi_dir_nsock_timeout
|
2022-04-26 19:02:15 +02:00
|
|
|
self.cut_thru_test(
|
|
|
|
"vcl_test_server",
|
|
|
|
self.server_ipv6_args,
|
|
|
|
"vcl_test_client",
|
|
|
|
self.client_ipv6_bi_dir_nsock_test_args,
|
|
|
|
)
|
2018-03-20 09:22:13 -04:00
|
|
|
|
|
|
|
|
2024-03-11 10:38:46 +00:00
|
|
|
@unittest.skipIf(
|
|
|
|
"hs_apps" in config.excluded_plugins, "Exclude tests requiring hs_apps plugin"
|
|
|
|
)
|
2018-12-03 17:47:26 -08:00
|
|
|
class VCLIpv6ThruHostStackEcho(VCLTestCase):
|
2022-04-26 19:02:15 +02:00
|
|
|
"""VCL IPv6 Thru Host Stack Echo"""
|
2018-03-20 09:22:13 -04:00
|
|
|
|
2019-01-25 14:05:48 -08:00
|
|
|
@classmethod
|
|
|
|
def setUpClass(cls):
|
|
|
|
super(VCLIpv6ThruHostStackEcho, cls).setUpClass()
|
|
|
|
|
|
|
|
@classmethod
|
|
|
|
def tearDownClass(cls):
|
|
|
|
super(VCLIpv6ThruHostStackEcho, cls).tearDownClass()
|
|
|
|
|
2018-03-20 09:22:13 -04:00
|
|
|
def setUp(self):
|
2018-12-03 17:47:26 -08:00
|
|
|
super(VCLIpv6ThruHostStackEcho, self).setUp()
|
2018-03-20 09:22:13 -04:00
|
|
|
|
|
|
|
self.thru_host_stack_ipv6_setup()
|
2022-04-26 19:02:15 +02:00
|
|
|
self.client_ipv6_echo_test_args = [
|
|
|
|
"-6",
|
|
|
|
"-E",
|
|
|
|
self.echo_phrase,
|
|
|
|
"-X",
|
|
|
|
self.loop0.local_ip6,
|
|
|
|
self.server_port,
|
|
|
|
]
|
2018-03-20 09:22:13 -04:00
|
|
|
|
|
|
|
def tearDown(self):
|
|
|
|
self.thru_host_stack_ipv6_tear_down()
|
2018-12-03 17:47:26 -08:00
|
|
|
super(VCLIpv6ThruHostStackEcho, self).tearDown()
|
2018-03-20 09:22:13 -04:00
|
|
|
|
|
|
|
def test_vcl_ipv6_thru_host_stack_echo(self):
|
2022-04-26 19:02:15 +02:00
|
|
|
"""run VCL IPv6 thru host stack echo test"""
|
2018-03-20 09:22:13 -04:00
|
|
|
|
2022-04-26 19:02:15 +02:00
|
|
|
self.thru_host_stack_test(
|
|
|
|
"vcl_test_server",
|
|
|
|
self.server_ipv6_args,
|
|
|
|
"vcl_test_client",
|
|
|
|
self.client_ipv6_echo_test_args,
|
|
|
|
)
|
2018-03-20 09:22:13 -04:00
|
|
|
|
|
|
|
|
2022-04-26 19:02:15 +02:00
|
|
|
if __name__ == "__main__":
|
2018-02-16 18:31:56 -05:00
|
|
|
unittest.main(testRunner=VppTestRunner)
|