diff options
author | Naveen Joy <najoy@cisco.com> | 2023-07-28 16:33:30 -0700 |
---|---|---|
committer | Dave Wallace <dwallacelf@gmail.com> | 2023-12-21 00:53:44 +0000 |
commit | 70335e8e50e004f0ab111a5607becf0438d806bc (patch) | |
tree | f1c87cf4b77530d1dd792d332d54fead3dd85b84 /test/vpp_running.py | |
parent | 00c59e4965c72d1d1ab77590fe57ee7f890546a8 (diff) |
tests: memif interface tests using libmemif
Type: test
Change-Id: I711dfe65ad542a45acd484f0b4e3e6ade9576f66
Signed-off-by: Naveen Joy <najoy@cisco.com>
Diffstat (limited to 'test/vpp_running.py')
-rw-r--r-- | test/vpp_running.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/vpp_running.py b/test/vpp_running.py index f31a1327b4a..43377b65c6a 100644 --- a/test/vpp_running.py +++ b/test/vpp_running.py @@ -26,6 +26,7 @@ def use_running(cls): RunningVPP.get_set_vpp_sock_files() cls.get_stats_sock_path = RunningVPP.get_stats_sock_path cls.get_api_sock_path = RunningVPP.get_api_sock_path + cls.get_memif_sock_path = RunningVPP.get_memif_sock_path cls.run_vpp = RunningVPP.run_vpp cls.quit_vpp = RunningVPP.quit_vpp cls.vpp = RunningVPP @@ -36,6 +37,7 @@ def use_running(cls): class RunningVPP: api_sock = "" # api_sock file path stats_sock = "" # stats sock_file path + memif_sock = "" # memif sock path socket_dir = "" # running VPP's socket directory pid = None # running VPP's pid returncode = None # indicates to the framework that VPP is running @@ -49,6 +51,10 @@ class RunningVPP: return cls.api_sock @classmethod + def get_memif_sock_path(cls): + return cls.memif_sock + + @classmethod def run_vpp(cls): """VPP is already running -- skip this action.""" pass @@ -112,6 +118,8 @@ class RunningVPP: cls.api_sock = os.path.abspath(sock_file) elif "stats.sock" in sock_file: cls.stats_sock = os.path.abspath(sock_file) + elif "memif.sock" in sock_file: + cls.memif_sock = os.path.abspath(sock_file) if not cls.api_sock: print( f"Error: Could not find a valid api.sock file " |