blob: 36cd55b35501916723f26139d76813cd3bff6288 [file] [log] [blame]
Dave Barach37b44542020-04-27 18:38:36 -04001#!/usr/bin/env python3
2
3import unittest
4
Klement Sekerab23ffd72021-05-31 16:08:53 +02005from framework import VppTestCase, VppTestRunner
Dave Barach37b44542020-04-27 18:38:36 -04006
7
8class TestVppinfra(VppTestCase):
9 """ Vppinfra Unit Test Cases """
Klement Sekera8d815022021-03-15 16:58:10 +010010 vpp_worker_count = 1
Dave Barach37b44542020-04-27 18:38:36 -040011
12 @classmethod
13 def setUpClass(cls):
14 super(TestVppinfra, cls).setUpClass()
15
16 @classmethod
17 def tearDownClass(cls):
18 super(TestVppinfra, cls).tearDownClass()
19
20 def setUp(self):
21 super(TestVppinfra, self).setUp()
22
23 def tearDown(self):
24 super(TestVppinfra, self).tearDown()
25
26 def test_bitmap_unittest(self):
27 """ Bitmap Code Coverage Test """
28 cmds = ["test bitmap"]
29
30 for cmd in cmds:
31 r = self.vapi.cli_return_response(cmd)
32 if r.retval != 0:
33 if hasattr(r, 'reply'):
34 self.logger.info(cmd + " FAIL reply " + r.reply)
35 else:
36 self.logger.info(cmd + " FAIL retval " + str(r.retval))
37
38if __name__ == '__main__':
39 unittest.main(testRunner=VppTestRunner)