vcl: add support for reconnect
[vpp.git] / test / test_vcl.py
old mode 100755 (executable)
new mode 100644 (file)
index 50d36d5..e40e416
@@ -52,10 +52,10 @@ class VCLAppWorker(Worker):
             app = appname
             env.update({'LD_PRELOAD': vcl_ldpreload_so})
         elif "sock" in appname:
-            app = "%s/vpp/bin/%s" % (build_dir, appname)
+            app = "%s/bin/%s" % (build_dir, appname)
             env.update({'LD_PRELOAD': vcl_ldpreload_so})
         else:
-            app = "%s/vpp/bin/%s" % (build_dir, appname)
+            app = "%s/bin/%s" % (build_dir, appname)
         self.args = [app] + executable_args
         super(VCLAppWorker, self).__init__(self.args, logger, env,
                                            *args, **kwargs)
@@ -450,6 +450,14 @@ class VCLThruHostStackEcho(VCLTestCase):
         self.thru_host_stack_tear_down()
         super(VCLThruHostStackEcho, self).tearDown()
 
+    def test_vcl_thru_host_stack_echo(self):
+        """ run VCL IPv4 thru host stack echo test """
+
+        self.thru_host_stack_test("vcl_test_server",
+                                  self.server_args,
+                                  "vcl_test_client",
+                                  self.client_echo_test_args)
+
     def show_commands_at_teardown(self):
         self.logger.debug(self.vapi.cli("show app server"))
         self.logger.debug(self.vapi.cli("show session verbose"))