aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorPierre Pfister <ppfister@cisco.com>2016-10-07 16:30:03 +0100
committerDamjan Marion <dmarion.lists@gmail.com>2016-10-07 21:34:59 +0000
commitcd8e318a7656c84ab1ff02090bf1616ca7513fdc (patch)
tree7dbb2877ceccc77b72687548df21710c249464f8 /test
parent3ee44040c66cbe47ff292ac7fb0badccbe2afe6d (diff)
Test Infra: Add plugin support
This patch adds plugin path to vpp commandline arguments when 'make test' is run. Hence, test cases can test plugins. Change-Id: Ib90efa1f62e03b45b84533c49c7a5d040aa8cddf Signed-off-by: Pierre Pfister <ppfister@cisco.com>
Diffstat (limited to 'test')
-rw-r--r--test/framework.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/framework.py b/test/framework.py
index 0ee266ec843..8bfb55132b2 100644
--- a/test/framework.py
+++ b/test/framework.py
@@ -58,10 +58,14 @@ class VppTestCase(unittest.TestCase):
@classmethod
def setUpConstants(cls):
cls.vpp_bin = os.getenv('VPP_TEST_BIN', "vpp")
+ cls.plugin_path = os.getenv('VPP_TEST_PLUGIN_PATH')
cls.vpp_api_test_bin = os.getenv("VPP_TEST_API_TEST_BIN",
"vpp-api-test")
cls.vpp_cmdline = [cls.vpp_bin, "unix", "nodaemon", "api-segment", "{",
"prefix", "unittest", "}"]
+ if cls.plugin_path is not None:
+ cls.vpp_cmdline.extend(["plugin_path", cls.plugin_path])
+
cls.vpp_api_test_cmdline = [cls.vpp_api_test_bin, "chroot", "prefix",
"unittest"]
try: