2019-10-31 13:31:07 -05:00
|
|
|
#!/usr/bin/env python3
|
2019-06-04 21:14:26 +02:00
|
|
|
|
2023-08-31 00:47:44 -04:00
|
|
|
from asfframework import VppAsfTestCase
|
2019-06-04 21:14:26 +02:00
|
|
|
|
|
|
|
|
2023-08-31 00:47:44 -04:00
|
|
|
class TestBuffers(VppAsfTestCase):
|
2022-04-26 19:02:15 +02:00
|
|
|
"""Buffer C Unit Tests"""
|
2019-06-04 21:14:26 +02:00
|
|
|
|
|
|
|
@classmethod
|
|
|
|
def setUpClass(cls):
|
|
|
|
super(TestBuffers, cls).setUpClass()
|
|
|
|
|
|
|
|
@classmethod
|
|
|
|
def tearDownClass(cls):
|
|
|
|
super(TestBuffers, cls).tearDownClass()
|
|
|
|
|
|
|
|
def setUp(self):
|
|
|
|
super(TestBuffers, self).setUp()
|
|
|
|
|
|
|
|
def tearDown(self):
|
|
|
|
super(TestBuffers, self).tearDown()
|
|
|
|
|
|
|
|
def test_linearize(self):
|
2022-04-26 19:02:15 +02:00
|
|
|
"""Chained Buffer Linearization"""
|
2019-06-04 21:14:26 +02:00
|
|
|
error = self.vapi.cli("test chained-buffer-linearization")
|
|
|
|
|
|
|
|
if error:
|
|
|
|
self.logger.critical(error)
|
2022-04-26 19:02:15 +02:00
|
|
|
self.assertNotIn("failed", error)
|