aboutsummaryrefslogtreecommitdiffstats
path: root/test/asf/test_buffers.py
blob: b3a2b6d3d69fb9e4beecdd50452121cec35ab33c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/env python3

from asfframework import VppTestCase


class TestBuffers(VppTestCase):
    """Buffer C Unit Tests"""

    @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):
        """Chained Buffer Linearization"""
        error = self.vapi.cli("test chained-buffer-linearization")

        if error:
            self.logger.critical(error)
            self.assertNotIn("failed", error)
an class="p">(self.is_server, self.sock_filename, self.renumber, self.disable_mrg_rxbuf, self.disable_indirect_desc, self.custom_dev_instance, self.use_custom_mac, self.mac_address, self.tag) self.set_sw_if_index(r.sw_if_index) def remove_vpp_config(self): self.test.vapi.delete_vhost_user_if(self.sw_if_index) def is_interface_config_in_dump(self, dump): for i in dump: if i.sw_if_index == self.sw_if_index: return True else: return False