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