7f9b7f9f49
Continuation/Part 2 of https://gerrit.fd.io/r/#/c/17092/ Change-Id: Id0122d84eaf2c05d29e5be63a594d5e528ee7c9a Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
45 lines
1.0 KiB
Python
45 lines
1.0 KiB
Python
#!/usr/bin/env python
|
|
|
|
import unittest
|
|
|
|
from framework import VppTestCase, VppTestRunner
|
|
from vpp_ip_route import VppIpTable, VppIpRoute, VppRoutePath
|
|
|
|
|
|
class TestBihash(VppTestCase):
|
|
""" Bihash Test Cases """
|
|
|
|
@classmethod
|
|
def setUpClass(cls):
|
|
super(TestBihash, cls).setUpClass()
|
|
|
|
@classmethod
|
|
def tearDownClass(cls):
|
|
super(TestBihash, cls).tearDownClass()
|
|
|
|
def setUp(self):
|
|
super(TestBihash, self).setUp()
|
|
|
|
def tearDown(self):
|
|
super(TestBihash, self).tearDown()
|
|
|
|
def test_bihash_unittest(self):
|
|
""" Bihash Add/Del Test """
|
|
error = self.vapi.cli("test bihash ")
|
|
|
|
if error:
|
|
self.logger.critical(error)
|
|
self.assertNotIn('failed', error)
|
|
|
|
def test_bihash_thread(self):
|
|
""" Bihash Thread Test """
|
|
|
|
error = self.vapi.cli("test bihash threads 2 nbuckets 64000")
|
|
|
|
if error:
|
|
self.logger.critical(error)
|
|
self.assertNotIn('failed', error)
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main(testRunner=VppTestRunner)
|