Renato Botelho do Couto | ead1e53 | 2019-10-31 13:31:07 -0500 | [diff] [blame] | 1 | #!/usr/bin/env python3 |
Klement Sekera | c09b7fd | 2019-06-04 21:14:26 +0200 | [diff] [blame] | 2 | |
| 3 | from framework import VppTestCase |
| 4 | |
| 5 | |
| 6 | class TestBuffers(VppTestCase): |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 7 | """Buffer C Unit Tests""" |
Klement Sekera | c09b7fd | 2019-06-04 21:14:26 +0200 | [diff] [blame] | 8 | |
| 9 | @classmethod |
| 10 | def setUpClass(cls): |
| 11 | super(TestBuffers, cls).setUpClass() |
| 12 | |
| 13 | @classmethod |
| 14 | def tearDownClass(cls): |
| 15 | super(TestBuffers, cls).tearDownClass() |
| 16 | |
| 17 | def setUp(self): |
| 18 | super(TestBuffers, self).setUp() |
| 19 | |
| 20 | def tearDown(self): |
| 21 | super(TestBuffers, self).tearDown() |
| 22 | |
| 23 | def test_linearize(self): |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 24 | """Chained Buffer Linearization""" |
Klement Sekera | c09b7fd | 2019-06-04 21:14:26 +0200 | [diff] [blame] | 25 | error = self.vapi.cli("test chained-buffer-linearization") |
| 26 | |
| 27 | if error: |
| 28 | self.logger.critical(error) |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 29 | self.assertNotIn("failed", error) |