tests: Add platform handling for FreeBSD
[vpp.git] / test / asf / test_vppinfra.py
1 #!/usr/bin/env python3
2
3 import unittest
4
5 from asfframework import VppAsfTestCase, VppTestRunner
6
7
8 class TestVppinfra(VppAsfTestCase):
9     """Vppinfra Unit Test Cases"""
10
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):
26         """Bitmap unit tests"""
27
28         cmds = ["test bitmap"]
29
30         for cmd in cmds:
31             error = self.vapi.cli(cmd)
32             if error:
33                 self.logger.critical(error)
34                 self.assertNotIn("failed", error)
35
36
37 if __name__ == "__main__":
38     unittest.main(testRunner=VppTestRunner)