4 from framework import VppTestCase
5 from vm_vpp_interfaces import (
8 generate_vpp_interface_tests,
10 from asfframework import VppTestRunner
11 from vm_test_config import test_config
14 class TestVPPInterfacesQemuTapChecksumOffloadL3(TestVPPInterfacesQemu, VppTestCase):
15 """Test tap interfaces in L3 mode with checksum offload for IPv4/v6."""
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"
23 super(TestVPPInterfacesQemuTapChecksumOffloadL3, cls).setUpClass()
26 def tearDownClass(cls):
27 super(TestVPPInterfacesQemuTapChecksumOffloadL3, cls).tearDownClass()
30 super(TestVPPInterfacesQemuTapChecksumOffloadL3, self).tearDown()
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)
37 if __name__ == "__main__":
38 unittest.main(testRunner=VppTestRunner)