blob: 0cc1a76ed56316fe4e550698ebecc7db0bb66106 [file] [log] [blame]
Andrew Yourtchenkod1a12ef2019-03-28 20:36:56 +01001#!/usr/bin/env python
2
3import unittest
4
5from framework import VppTestCase, VppTestRunner
6from vpp_ip_route import VppIpTable, VppIpRoute, VppRoutePath
7
8
9class TestSparseVec(VppTestCase):
10 """ SparseVec Test Cases """
11
12 @classmethod
13 def setUpClass(cls):
14 super(TestSparseVec, cls).setUpClass()
15
16 @classmethod
17 def tearDownClass(cls):
18 super(TestSparseVec, cls).tearDownClass()
19
20 def setUp(self):
21 super(TestSparseVec, self).setUp()
22
23 def tearDown(self):
24 super(TestSparseVec, self).tearDown()
25
26 def test_string_unittest(self):
27 """ SparseVec unit tests """
28 error = self.vapi.cli("test sparse_vec")
29 if error.find("failed") != -1:
30 self.logger.critical("FAILURE in the sparse_vec test")
31 self.assertNotIn("failed", error)
32
33if __name__ == '__main__':
34 unittest.main(testRunner=VppTestRunner)