aboutsummaryrefslogtreecommitdiffstats
path: root/host/tests/pytests/conftest.py
diff options
context:
space:
mode:
authorMatthew Crymble <matthew.crymble@ni.com>2021-11-15 14:57:07 -0600
committerAaron Rossetto <aaron.rossetto@ni.com>2021-11-30 07:33:28 -0800
commitf24d6561a842baffbce9ddcdc9802b98f5fa2af0 (patch)
tree977e76a8cb93844a0366612da8fae12cb693f0a9 /host/tests/pytests/conftest.py
parentdf7f65d858f723fa528f6375737e73d127fa9c1b (diff)
downloaduhd-f24d6561a842baffbce9ddcdc9802b98f5fa2af0.tar.gz
uhd-f24d6561a842baffbce9ddcdc9802b98f5fa2af0.tar.bz2
uhd-f24d6561a842baffbce9ddcdc9802b98f5fa2af0.zip
tests: add automated streaming tests
Diffstat (limited to 'host/tests/pytests/conftest.py')
-rw-r--r--host/tests/pytests/conftest.py59
1 files changed, 59 insertions, 0 deletions
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")