blob: 0187552681216e287f96cfa76203684ec17d4551 [file] [log] [blame]
Renato Botelho do Coutoead1e532019-10-31 13:31:07 -05001#!/usr/bin/env python3
Klement Sekerac09b7fd2019-06-04 21:14:26 +02002
3from framework import VppTestCase
4
5
6class TestBuffers(VppTestCase):
Klement Sekerad9b0c6f2022-04-26 19:02:15 +02007 """Buffer C Unit Tests"""
Klement Sekerac09b7fd2019-06-04 21:14:26 +02008
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 Sekerad9b0c6f2022-04-26 19:02:15 +020024 """Chained Buffer Linearization"""
Klement Sekerac09b7fd2019-06-04 21:14:26 +020025 error = self.vapi.cli("test chained-buffer-linearization")
26
27 if error:
28 self.logger.critical(error)
Klement Sekerad9b0c6f2022-04-26 19:02:15 +020029 self.assertNotIn("failed", error)