2019-10-31 13:31:07 -05:00
|
|
|
#!/usr/bin/env python3
|
2019-03-28 20:36:56 +01:00
|
|
|
|
|
|
|
import unittest
|
|
|
|
|
|
|
|
from framework import VppTestCase, VppTestRunner
|
|
|
|
from vpp_ip_route import VppIpTable, VppIpRoute, VppRoutePath
|
|
|
|
|
|
|
|
|
|
|
|
class TestSparseVec(VppTestCase):
|
|
|
|
""" SparseVec Test Cases """
|
|
|
|
|
|
|
|
@classmethod
|
|
|
|
def setUpClass(cls):
|
|
|
|
super(TestSparseVec, cls).setUpClass()
|
|
|
|
|
|
|
|
@classmethod
|
|
|
|
def tearDownClass(cls):
|
|
|
|
super(TestSparseVec, cls).tearDownClass()
|
|
|
|
|
|
|
|
def setUp(self):
|
|
|
|
super(TestSparseVec, self).setUp()
|
|
|
|
|
|
|
|
def tearDown(self):
|
|
|
|
super(TestSparseVec, self).tearDown()
|
|
|
|
|
|
|
|
def test_string_unittest(self):
|
|
|
|
""" SparseVec unit tests """
|
|
|
|
error = self.vapi.cli("test sparse_vec")
|
|
|
|
if error.find("failed") != -1:
|
|
|
|
self.logger.critical("FAILURE in the sparse_vec test")
|
|
|
|
self.assertNotIn("failed", error)
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
unittest.main(testRunner=VppTestRunner)
|