Dave Barach | 37b4454 | 2020-04-27 18:38:36 -0400 | [diff] [blame] | 1 | #!/usr/bin/env python3 |
| 2 | |
| 3 | import unittest |
| 4 | |
Dave Wallace | 8800f73 | 2023-08-31 00:47:44 -0400 | [diff] [blame] | 5 | from asfframework import VppAsfTestCase, VppTestRunner |
Dave Barach | 37b4454 | 2020-04-27 18:38:36 -0400 | [diff] [blame] | 6 | |
| 7 | |
Dave Wallace | 8800f73 | 2023-08-31 00:47:44 -0400 | [diff] [blame] | 8 | class TestVppinfra(VppAsfTestCase): |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 9 | """Vppinfra Unit Test Cases""" |
| 10 | |
Dave Barach | 37b4454 | 2020-04-27 18:38:36 -0400 | [diff] [blame] | 11 | @classmethod |
| 12 | def setUpClass(cls): |
| 13 | super(TestVppinfra, cls).setUpClass() |
| 14 | |
| 15 | @classmethod |
| 16 | def tearDownClass(cls): |
| 17 | super(TestVppinfra, cls).tearDownClass() |
| 18 | |
| 19 | def setUp(self): |
| 20 | super(TestVppinfra, self).setUp() |
| 21 | |
| 22 | def tearDown(self): |
| 23 | super(TestVppinfra, self).tearDown() |
| 24 | |
| 25 | def test_bitmap_unittest(self): |
Vladislav Grishenko | a20afdc | 2023-02-14 12:34:29 +0500 | [diff] [blame] | 26 | """Bitmap unit tests""" |
| 27 | |
Dave Barach | 37b4454 | 2020-04-27 18:38:36 -0400 | [diff] [blame] | 28 | cmds = ["test bitmap"] |
| 29 | |
| 30 | for cmd in cmds: |
Vladislav Grishenko | a20afdc | 2023-02-14 12:34:29 +0500 | [diff] [blame] | 31 | error = self.vapi.cli(cmd) |
| 32 | if error: |
| 33 | self.logger.critical(error) |
| 34 | self.assertNotIn("failed", error) |
Dave Barach | 37b4454 | 2020-04-27 18:38:36 -0400 | [diff] [blame] | 35 | |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 36 | |
| 37 | if __name__ == "__main__": |
Dave Barach | 37b4454 | 2020-04-27 18:38:36 -0400 | [diff] [blame] | 38 | unittest.main(testRunner=VppTestRunner) |