blob: 56391bfb13ce3f8b0c898484141201d414e5bb0d [file] [log] [blame]
Dave Barach37b44542020-04-27 18:38:36 -04001#!/usr/bin/env python3
2
3import unittest
4
Dave Wallace8800f732023-08-31 00:47:44 -04005from asfframework import VppAsfTestCase, VppTestRunner
Dave Barach37b44542020-04-27 18:38:36 -04006
7
Dave Wallace8800f732023-08-31 00:47:44 -04008class TestVppinfra(VppAsfTestCase):
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02009 """Vppinfra Unit Test Cases"""
10
Dave Barach37b44542020-04-27 18:38:36 -040011 @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 Grishenkoa20afdc2023-02-14 12:34:29 +050026 """Bitmap unit tests"""
27
Dave Barach37b44542020-04-27 18:38:36 -040028 cmds = ["test bitmap"]
29
30 for cmd in cmds:
Vladislav Grishenkoa20afdc2023-02-14 12:34:29 +050031 error = self.vapi.cli(cmd)
32 if error:
33 self.logger.critical(error)
34 self.assertNotIn("failed", error)
Dave Barach37b44542020-04-27 18:38:36 -040035
Klement Sekerad9b0c6f2022-04-26 19:02:15 +020036
37if __name__ == "__main__":
Dave Barach37b44542020-04-27 18:38:36 -040038 unittest.main(testRunner=VppTestRunner)