From f68798626c7d4704acfa68751e52f087ca67a13a Mon Sep 17 00:00:00 2001 From: Filip Tehlar Date: Tue, 30 Nov 2021 13:55:58 +0000 Subject: tests: add segment manager tests Type: test Change-Id: Ic9fddc9fedd5140984c5901c4cac53dec022dcec Signed-off-by: Filip Tehlar --- test/test_session.py | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'test') diff --git a/test/test_session.py b/test/test_session.py index 8e03968d19a..6c48e5467db 100644 --- a/test/test_session.py +++ b/test/test_session.py @@ -121,6 +121,33 @@ class TestSessionUnitTests(VppTestCase): self.vapi.session_enable_disable(is_enable=0) +@tag_run_solo +class TestSegmentManagerTests(VppTestCase): + """ SVM Fifo Unit Tests Case """ + + @classmethod + def setUpClass(cls): + super(TestSegmentManagerTests, cls).setUpClass() + + @classmethod + def tearDownClass(cls): + super(TestSegmentManagerTests, cls).tearDownClass() + + def setUp(self): + super(TestSegmentManagerTests, self).setUp() + + def test_segment_manager(self): + """ Segment manager Tests """ + error = self.vapi.cli("test segment-manager all") + + if error: + self.logger.critical(error) + self.assertNotIn("failed", error) + + def tearDown(self): + super(TestSegmentManagerTests, self).tearDown() + + @tag_run_solo class TestSvmFifoUnitTests(VppTestCase): """ SVM Fifo Unit Tests Case """ -- cgit 1.2.3-korg