blob: 4b49628cf58006b210ee3e4ae98ef259fab87ad3 [file] [log] [blame]
Dave Barach37b44542020-04-27 18:38:36 -04001#!/usr/bin/env python3
2
3import unittest
4
Pratikshya Prasai657bdf72022-08-18 11:09:38 -04005from asfframework import VppTestCase, VppTestRunner
Dave Barach37b44542020-04-27 18:38:36 -04006
7
8class TestVppinfra(VppTestCase):
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)