svm: move fifo tests to a separate file
[vpp.git] / test / test_session.py
index f1a3dcd..aceff65 100644 (file)
@@ -116,5 +116,31 @@ class TestSessionUnitTests(VppTestCase):
         super(TestSessionUnitTests, self).tearDown()
         self.vapi.session_enable_disable(is_enabled=0)
 
+
+class TestSvmFifoUnitTests(VppTestCase):
+    """ SVM Fifo Unit Tests Case """
+
+    @classmethod
+    def setUpClass(cls):
+        super(TestSvmFifoUnitTests, cls).setUpClass()
+
+    @classmethod
+    def tearDownClass(cls):
+        super(TestSvmFifoUnitTests, cls).tearDownClass()
+
+    def setUp(self):
+        super(TestSvmFifoUnitTests, self).setUp()
+
+    def test_svm_fifo(self):
+        """ SVM Fifo Unit Tests """
+        error = self.vapi.cli("test svm fifo all")
+
+        if error:
+            self.logger.critical(error)
+        self.assertNotIn("failed", error)
+
+    def tearDown(self):
+        super(TestSvmFifoUnitTests, self).tearDown()
+
 if __name__ == '__main__':
     unittest.main(testRunner=VppTestRunner)