summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorNeale Ranns <nranns@cisco.com>2016-12-08 19:48:11 +0000
committerDamjan Marion <dmarion.lists@gmail.com>2016-12-09 20:11:30 +0000
commit0ebe8d7d76964e07aec89ded7abe9216b90e2f59 (patch)
tree9a6b02b9b37ce4b5d3cdcd58f43f28dbf1b299ae /test
parent637b9c453161bfd551e0c04db78109d3d452a69a (diff)
Add FIB unit test to 'make test'
Change-Id: I57126416f57649768f3601cd715c7f5f4b9b9fad Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'test')
-rw-r--r--test/test_fib.py28
1 files changed, 28 insertions, 0 deletions
diff --git a/test/test_fib.py b/test/test_fib.py
new file mode 100644
index 00000000000..716ba287e1e
--- /dev/null
+++ b/test/test_fib.py
@@ -0,0 +1,28 @@
+#!/usr/bin/env python
+
+import unittest
+
+from framework import VppTestCase, VppTestRunner
+
+class TestFIB(VppTestCase):
+ """ FIB Test Case """
+
+ @classmethod
+ def setUpClass(cls):
+ super(TestFIB, cls).setUpClass()
+
+ def setUp(self):
+ super(TestFIB, self).setUp()
+
+ def tearDown(self):
+ super(TestFIB, self).tearDown()
+
+ def test_fib(self):
+ """ FIB Unit Tests """
+ error = self.vapi.cli("test fib")
+
+ self.logger.critical(error)
+ self.assertEqual(error.find("Failed"), -1)
+
+if __name__ == '__main__':
+ unittest.main(testRunner=VppTestRunner)