blob: 614bc2e94bc104f6fb6371ab7aeb97e46fb16034 [file] [log] [blame]
Renato Botelho do Coutoead1e532019-10-31 13:31:07 -05001#!/usr/bin/env python3
Andrew Yourtchenkod1a12ef2019-03-28 20:36:56 +01002
3import unittest
4
Pratikshya Prasai657bdf72022-08-18 11:09:38 -04005from asfframework import VppTestCase, VppTestRunner
Andrew Yourtchenkod1a12ef2019-03-28 20:36:56 +01006from vpp_ip_route import VppIpTable, VppIpRoute, VppRoutePath
7
8
9class TestSparseVec(VppTestCase):
Klement Sekerad9b0c6f2022-04-26 19:02:15 +020010 """SparseVec Test Cases"""
Andrew Yourtchenkod1a12ef2019-03-28 20:36:56 +010011
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):
Klement Sekerad9b0c6f2022-04-26 19:02:15 +020027 """SparseVec unit tests"""
Andrew Yourtchenkod1a12ef2019-03-28 20:36:56 +010028 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
Klement Sekerad9b0c6f2022-04-26 19:02:15 +020033
34if __name__ == "__main__":
Andrew Yourtchenkod1a12ef2019-03-28 20:36:56 +010035 unittest.main(testRunner=VppTestRunner)