Dave Barach | 37b4454 | 2020-04-27 18:38:36 -0400 | [diff] [blame] | 1 | #!/usr/bin/env python3 |
| 2 | |
| 3 | import unittest |
| 4 | |
| 5 | from framework import VppTestCase, VppTestRunner, running_extended_tests |
| 6 | from framework import running_gcov_tests |
| 7 | |
| 8 | |
| 9 | class TestVppinfra(VppTestCase): |
| 10 | """ Vppinfra Unit Test Cases """ |
Klement Sekera | 8d81502 | 2021-03-15 16:58:10 +0100 | [diff] [blame] | 11 | vpp_worker_count = 1 |
Dave Barach | 37b4454 | 2020-04-27 18:38:36 -0400 | [diff] [blame] | 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 | |
| 39 | if __name__ == '__main__': |
| 40 | unittest.main(testRunner=VppTestRunner) |