Naveen Joy | 0215ef1 | 2024-01-31 08:46:18 -0800 | [diff] [blame] | 1 | #!/usr/bin/env python3 |
| 2 | |
| 3 | import unittest |
| 4 | from framework import VppTestCase |
| 5 | from vm_vpp_interfaces import ( |
| 6 | TestSelector, |
| 7 | TestVPPInterfacesQemu, |
| 8 | generate_vpp_interface_tests, |
| 9 | ) |
| 10 | from asfframework import VppTestRunner |
| 11 | from vm_test_config import test_config |
| 12 | |
| 13 | |
| 14 | class TestVPPInterfacesQemuTapChecksumOffloadL3(TestVPPInterfacesQemu, VppTestCase): |
| 15 | """Test tap interfaces in L3 mode with checksum offload for IPv4/v6.""" |
| 16 | |
| 17 | # Set test_id(s) to run from vm_test_config |
| 18 | # The expansion of these numbers are included in the test docstring |
| 19 | tests_to_run = "25,26" |
| 20 | |
| 21 | @classmethod |
| 22 | def setUpClass(cls): |
| 23 | super(TestVPPInterfacesQemuTapChecksumOffloadL3, cls).setUpClass() |
| 24 | |
| 25 | @classmethod |
| 26 | def tearDownClass(cls): |
| 27 | super(TestVPPInterfacesQemuTapChecksumOffloadL3, cls).tearDownClass() |
| 28 | |
| 29 | def tearDown(self): |
| 30 | super(TestVPPInterfacesQemuTapChecksumOffloadL3, self).tearDown() |
| 31 | |
| 32 | |
| 33 | SELECTED_TESTS = TestVPPInterfacesQemuTapChecksumOffloadL3.tests_to_run |
| 34 | tests = filter(TestSelector(SELECTED_TESTS).filter_tests, test_config["tests"]) |
| 35 | generate_vpp_interface_tests(tests, TestVPPInterfacesQemuTapChecksumOffloadL3) |
| 36 | |
| 37 | if __name__ == "__main__": |
| 38 | unittest.main(testRunner=VppTestRunner) |