From 2f10886a7173f10a09c631b017afd178a4c32c5c Mon Sep 17 00:00:00 2001 From: Dave Wallace Date: Mon, 16 Nov 2020 14:41:55 -0500 Subject: 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 Change-Id: Id3f856d9c8de1695edd5b968b8acfa2b382a0139 --- src/vlib/test/test_buffers.py | 29 +++++++++++++++++++++++++++++ test/test_buffers.py | 29 ----------------------------- 2 files changed, 29 insertions(+), 29 deletions(-) create mode 100644 src/vlib/test/test_buffers.py delete mode 100644 test/test_buffers.py 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) diff --git a/test/test_buffers.py b/test/test_buffers.py deleted file mode 100644 index f50f05c609a..00000000000 --- a/test/test_buffers.py +++ /dev/null @@ -1,29 +0,0 @@ -#!/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) -- cgit 1.2.3-korg