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 TestVPPInterfacesQemuTapL2(TestVPPInterfacesQemu, VppTestCase):
15 """Test VPP tap interfaces in L2 mode 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
23 super(TestVPPInterfacesQemuTapL2, cls).setUpClass()
26 def tearDownClass(cls):
27 super(TestVPPInterfacesQemuTapL2, cls).tearDownClass()
30 super(TestVPPInterfacesQemuTapL2, self).tearDown()
33 SELECTED_TESTS = TestVPPInterfacesQemuTapL2.tests_to_run
34 tests = filter(TestSelector(SELECTED_TESTS).filter_tests, test_config["tests"])
35 generate_vpp_interface_tests(tests, TestVPPInterfacesQemuTapL2)
37 if __name__ == "__main__":
38 unittest.main(testRunner=VppTestRunner)