From f24d6561a842baffbce9ddcdc9802b98f5fa2af0 Mon Sep 17 00:00:00 2001 From: Matthew Crymble Date: Mon, 15 Nov 2021 14:57:07 -0600 Subject: tests: add automated streaming tests --- host/tests/pytests/conftest.py | 59 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 host/tests/pytests/conftest.py (limited to 'host/tests/pytests/conftest.py') diff --git a/host/tests/pytests/conftest.py b/host/tests/pytests/conftest.py new file mode 100644 index 000000000..dfca5d69f --- /dev/null +++ b/host/tests/pytests/conftest.py @@ -0,0 +1,59 @@ +import test_length_utils + +dut_type_list = [ + "N310", + "N320", + "B210", + "E320", + "X310", + "X310_TwinRx", + "X410" +] + + +test_length_list = [ + test_length_utils.Test_Length_Smoke, + test_length_utils.Test_Length_Full, + test_length_utils.Test_Length_Stress +] + + +def pytest_addoption(parser): + parser.addoption( + "--addr", + type=str, + help="address of first 10 GbE interface",) + parser.addoption( + "--second_addr", + type=str, + help="address of second 10 GbE interface") + parser.addoption( + "--name", + type=str, + help="name of B2xx device") + parser.addoption( + "--mgmt_addr", + type=str, + help="address of management interface. only needed for DPDK test cases") + parser.addoption( + "--dut_type", + type=str, + required=True, + choices=dut_type_list, + help="") + parser.addoption( + "--test_length", + type=str, + default=test_length_utils.Test_Length_Full, + choices=test_length_list, + help="") + parser.addoption( + "--uhd_build_dir", + required=True, + type=str, + help="") + + +def pytest_configure(config): + # register additional markers + config.addinivalue_line("markers", "dpdk: run with DPDK enable") -- cgit v1.2.3