5 from framework import VppTestCase, VppTestRunner
6 from vpp_ip_route import VppIpTable, VppIpRoute, VppRoutePath
9 class TestBihash(VppTestCase):
10 """ Bihash Test Cases """
14 super(TestBihash, cls).setUpClass()
17 super(TestBihash, self).setUp()
20 super(TestBihash, self).tearDown()
22 def test_bihash_unittest(self):
23 """ Bihash Add/Del Test """
24 error = self.vapi.cli("test bihash ")
27 self.logger.critical(error)
28 self.assertEqual(error.find("failed"), -1)
30 def test_bihash_thread(self):
31 """ Bihash Thread Test """
33 error = self.vapi.cli("test bihash threads 2 nbuckets 64000")
36 self.logger.critical(error)
37 self.assertEqual(error.find("failed"), -1)
39 if __name__ == '__main__':
40 unittest.main(testRunner=VppTestRunner)