| from framework import VppTestCase, VppTestRunner |
| from vpp_ip_route import VppIpTable, VppIpRoute, VppRoutePath |
| class TestBihash(VppTestCase): |
| """ Bihash Test Cases """ |
| super(TestBihash, cls).setUpClass() |
| super(TestBihash, self).setUp() |
| super(TestBihash, self).tearDown() |
| def test_bihash_unittest(self): |
| """ Bihash Add/Del Test """ |
| error = self.vapi.cli("test bihash ") |
| self.logger.critical(error) |
| self.assertEqual(error.find("failed"), -1) |
| def test_bihash_thread(self): |
| """ Bihash Thread Test """ |
| error = self.vapi.cli("test bihash threads 2 nbuckets 64000") |
| self.logger.critical(error) |
| self.assertEqual(error.find("failed"), -1) |
| if __name__ == '__main__': |
| unittest.main(testRunner=VppTestRunner) |