aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDave Wallace <dwallacelf@gmail.com>2020-11-16 14:41:55 -0500
committerPaul Vinciguerra <pvinci@vinciconsulting.com>2020-11-16 20:59:20 +0000
commit2f10886a7173f10a09c631b017afd178a4c32c5c (patch)
tree9a99654e69041b050cc5281ae393b226dcbffb72 /src
parent8de5fc2bd4aedf23ca505b7b97581deb12ade0ed (diff)
tests: move buffer tests to src/vlib/test
- Refactor make test code to be co-located with the vpp feature source code. Type: test Signed-off-by: Dave Wallace <dwallacelf@gmail.com> Change-Id: Id3f856d9c8de1695edd5b968b8acfa2b382a0139
Diffstat (limited to 'src')
-rw-r--r--src/vlib/test/test_buffers.py29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/vlib/test/test_buffers.py b/src/vlib/test/test_buffers.py
new file mode 100644
index 00000000000..f50f05c609a
--- /dev/null
+++ b/src/vlib/test/test_buffers.py
@@ -0,0 +1,29 @@
+#!/usr/bin/env python3
+
+from framework import VppTestCase
+
+
+class TestBuffers(VppTestCase):
+ """ Buffer C Unit Tests """
+
+ @classmethod
+ def setUpClass(cls):
+ super(TestBuffers, cls).setUpClass()
+
+ @classmethod
+ def tearDownClass(cls):
+ super(TestBuffers, cls).tearDownClass()
+
+ def setUp(self):
+ super(TestBuffers, self).setUp()
+
+ def tearDown(self):
+ super(TestBuffers, self).tearDown()
+
+ def test_linearize(self):
+ """ Chained Buffer Linearization """
+ error = self.vapi.cli("test chained-buffer-linearization")
+
+ if error:
+ self.logger.critical(error)
+ self.assertNotIn('failed', error)