diff --git a/sriov/tests/SR_IOV_Sanity_Performance/test_SR_IOV_Sanity_Performance.py b/sriov/tests/SR_IOV_Sanity_Performance/test_SR_IOV_Sanity_Performance.py index 06c884f..81a0fdd 100644 --- a/sriov/tests/SR_IOV_Sanity_Performance/test_SR_IOV_Sanity_Performance.py +++ b/sriov/tests/SR_IOV_Sanity_Performance/test_SR_IOV_Sanity_Performance.py @@ -127,7 +127,10 @@ def test_SRIOV_Sanity_Performance(dut, trafficgen, settings, testdata): testdata.testpmd_id = outs[0][0] # Check testpmd is running - cmd = f"curl localhost:{settings.config['testpmd_port']}/testpmd/status" + cmd = ( + f"curl {settings.config['dut']['host']}:" + f"{settings.config['testpmd_port']}/testpmd/status" + ) assert execute_until_timeout(dut, cmd) # Start trafficgen @@ -139,6 +142,7 @@ def test_SRIOV_Sanity_Performance(dut, trafficgen, settings, testdata): f"{settings.config['container_manager']} run -d --rm --privileged " f"-p {settings.config['trafficgen_port']}:{settings.config['trafficgen_port']} " "-v /dev:/dev -v /sys:/sys -v /lib/modules:/lib/modules " + "-v /lib/firmware:/lib/firmware " f"--cpuset-cpus {trafficgen_cpus_string} " f"-e pci_list={trafficgen_pfs_pci[0]},{trafficgen_pfs_pci[1]} " f"{settings.config['trafficgen_img']}" @@ -148,7 +152,8 @@ def test_SRIOV_Sanity_Performance(dut, trafficgen, settings, testdata): client_cmd = ( f"{settings.config['container_manager']} run --rm --privileged --net=host " - f"{settings.config['trafficgen_img']} client status --server-addr localhost " + f"{settings.config['trafficgen_img']} client status " + f"--server-addr {settings.config['trafficgen']['host']} " f"--server-port {settings.config['trafficgen_port']}" ) assert execute_until_timeout(trafficgen, client_cmd) @@ -156,7 +161,8 @@ def test_SRIOV_Sanity_Performance(dut, trafficgen, settings, testdata): # Warmup client_cmd = [ f"{settings.config['container_manager']} run --rm --privileged --net=host " - f"{settings.config['trafficgen_img']} client start --server-addr localhost " + f"{settings.config['trafficgen_img']} client start " + f"--server-addr {settings.config['trafficgen']['host']} " f"--server-port {settings.config['trafficgen_port']} --timeout 60" ] execute_and_assert( @@ -167,7 +173,8 @@ def test_SRIOV_Sanity_Performance(dut, trafficgen, settings, testdata): ) client_cmd = [ f"{settings.config['container_manager']} run --rm --privileged --net=host " - f"{settings.config['trafficgen_img']} client stop --server-addr localhost " + f"{settings.config['trafficgen_img']} client stop " + f"--server-addr {settings.config['trafficgen']['host']} " f"--server-port {settings.config['trafficgen_port']}" ] outs, errs = execute_and_assert( @@ -179,7 +186,8 @@ def test_SRIOV_Sanity_Performance(dut, trafficgen, settings, testdata): # Actual test client_cmd = [ f"{settings.config['container_manager']} run --rm --privileged --net=host " - f"{settings.config['trafficgen_img']} client auto --server-addr localhost " + f"{settings.config['trafficgen_img']} client auto " + f"--server-addr {settings.config['trafficgen']['host']} " f"--server-port {settings.config['trafficgen_port']}" ] outs, errs = execute_and_assert( diff --git a/sriov/tests/test_pip b/sriov/tests/test_pip new file mode 100644 index 0000000..f7cd4cb --- /dev/null +++ b/sriov/tests/test_pip @@ -0,0 +1,25 @@ +Requirement already satisfied: paramiko==2.11.0 in ./venv/lib/python3.6/site-packages (from -r ../requirements.txt (line 1)) (2.11.0) +Requirement already satisfied: pytest==6.2.5 in ./venv/lib/python3.6/site-packages (from -r ../requirements.txt (line 2)) (6.2.5) +Requirement already satisfied: PyYAML==6.0 in ./venv/lib/python3.6/site-packages (from -r ../requirements.txt (line 3)) (6.0) +Requirement already satisfied: pytest-html in ./venv/lib/python3.6/site-packages (from -r ../requirements.txt (line 4)) (3.2.0) +Requirement already satisfied: docutils in ./venv/lib/python3.6/site-packages (from -r ../requirements.txt (line 5)) (0.18.1) +Requirement already satisfied: gitpython in ./venv/lib/python3.6/site-packages (from -r ../requirements.txt (line 6)) (3.1.18) +Requirement already satisfied: bcrypt>=3.1.3 in ./venv/lib/python3.6/site-packages (from paramiko==2.11.0->-r ../requirements.txt (line 1)) (4.0.1) +Requirement already satisfied: pynacl>=1.0.1 in ./venv/lib/python3.6/site-packages (from paramiko==2.11.0->-r ../requirements.txt (line 1)) (1.5.0) +Requirement already satisfied: six in ./venv/lib/python3.6/site-packages (from paramiko==2.11.0->-r ../requirements.txt (line 1)) (1.16.0) +Requirement already satisfied: cryptography>=2.5 in ./venv/lib/python3.6/site-packages (from paramiko==2.11.0->-r ../requirements.txt (line 1)) (39.0.0) +Requirement already satisfied: py>=1.8.2 in ./venv/lib/python3.6/site-packages (from pytest==6.2.5->-r ../requirements.txt (line 2)) (1.11.0) +Requirement already satisfied: iniconfig in ./venv/lib/python3.6/site-packages (from pytest==6.2.5->-r ../requirements.txt (line 2)) (1.1.1) +Requirement already satisfied: attrs>=19.2.0 in ./venv/lib/python3.6/site-packages (from pytest==6.2.5->-r ../requirements.txt (line 2)) (22.2.0) +Requirement already satisfied: toml in ./venv/lib/python3.6/site-packages (from pytest==6.2.5->-r ../requirements.txt (line 2)) (0.10.2) +Requirement already satisfied: packaging in ./venv/lib/python3.6/site-packages (from pytest==6.2.5->-r ../requirements.txt (line 2)) (21.3) +Requirement already satisfied: importlib-metadata>=0.12 in ./venv/lib/python3.6/site-packages (from pytest==6.2.5->-r ../requirements.txt (line 2)) (4.8.3) +Requirement already satisfied: pluggy<2.0,>=0.12 in ./venv/lib/python3.6/site-packages (from pytest==6.2.5->-r ../requirements.txt (line 2)) (1.0.0) +Requirement already satisfied: pytest-metadata in ./venv/lib/python3.6/site-packages (from pytest-html->-r ../requirements.txt (line 4)) (1.11.0) +Requirement already satisfied: gitdb<5,>=4.0.1 in ./venv/lib/python3.6/site-packages (from gitpython->-r ../requirements.txt (line 6)) (4.0.9) +Requirement already satisfied: typing-extensions>=3.7.4.0 in ./venv/lib/python3.6/site-packages (from gitpython->-r ../requirements.txt (line 6)) (4.1.1) +Requirement already satisfied: cffi>=1.12 in ./venv/lib/python3.6/site-packages (from cryptography>=2.5->paramiko==2.11.0->-r ../requirements.txt (line 1)) (1.15.1) +Requirement already satisfied: smmap<6,>=3.0.1 in ./venv/lib/python3.6/site-packages (from gitdb<5,>=4.0.1->gitpython->-r ../requirements.txt (line 6)) (5.0.0) +Requirement already satisfied: zipp>=0.5 in ./venv/lib/python3.6/site-packages (from importlib-metadata>=0.12->pytest==6.2.5->-r ../requirements.txt (line 2)) (3.6.0) +Requirement already satisfied: pyparsing!=3.0.5,>=2.0.2 in ./venv/lib/python3.6/site-packages (from packaging->pytest==6.2.5->-r ../requirements.txt (line 2)) (3.0.9) +Requirement already satisfied: pycparser in ./venv/lib/python3.6/site-packages (from cffi>=1.12->cryptography>=2.5->paramiko==2.11.0->-r ../requirements.txt (line 1)) (2.21) diff --git a/sriov/tests/testbed.yaml.back b/sriov/tests/testbed.yaml.back new file mode 100644 index 0000000..1f187aa --- /dev/null +++ b/sriov/tests/testbed.yaml.back @@ -0,0 +1,24 @@ +dut: + host: 192.168.49.134 + username: root + password: redhat + pmd_cpus: "30,32,34" + interface: + pf1: + name: "ens7f3" + pci: "0000:ca:00.3" + pf2: + name: "ens2f3" + vf1: + name: "ens7f3v0" + pci: "0000:ca:19.0" +trafficgen: + host: 192.168.49.147 + username: root + password: redhat + interface: + pf1: + name: "ens8f0" + mac: "40:a6:b7:2b:19:a0" + pf2: + name: "ens7f0" diff --git a/sriov/tests/testbed_136.yaml b/sriov/tests/testbed_136.yaml new file mode 100644 index 0000000..d3b7daa --- /dev/null +++ b/sriov/tests/testbed_136.yaml @@ -0,0 +1,29 @@ +dut: + host: 192.168.49.136 + username: root + password: redhat + pmd_cpus: "30,32,34" + interface: + pf1: + name: "ens2f3" + pci: "0000:17:00.3" + vf1: + name: "ens2f3v0" + pci: "0000:17:19.0" + pf2: + name: "ens7f3" + pci: "0000:ca:00.3" + vf2: + name: "ens7f3v0" + pci: "0000:ca:19.0" +trafficgen: + host: 192.168.49.147 + username: root + password: redhat + interface: + pf1: + name: "ens7f1" + mac: "40:a6:b7:2a:c2:91" + pf2: + name: "ens8f1" + mac: "40:a6:b7:2b:19:a1" diff --git a/sriov/tests/testbed_52.yaml b/sriov/tests/testbed_52.yaml new file mode 100644 index 0000000..83085d2 --- /dev/null +++ b/sriov/tests/testbed_52.yaml @@ -0,0 +1,29 @@ +dut: + host: 192.168.39.52 + username: root + password: redhat + pmd_cpus: "30,32,34" + interface: + pf1: + name: "ens4f0" + pci: "0000:af:00.0" + vf1: + name: "ens4f0v0" + pci: "0000:af:01.0" + pf2: + name: "ens4f1" + pci: "0000:af:00.1" + vf2: + name: "ens4f1v0" + pci: "0000:af:09.0" +trafficgen: + host: 192.168.39.51 + username: root + password: redhat + interface: + pf1: + name: "ens1f0" + mac: "40:a6:b7:2b:20:30" + pf2: + name: "ens1f1" + mac: "40:a6:b7:2b:20:31" \ No newline at end of file diff --git a/sriov/tests/testbed_52_xxv710.yaml b/sriov/tests/testbed_52_xxv710.yaml new file mode 100644 index 0000000..c3a797a --- /dev/null +++ b/sriov/tests/testbed_52_xxv710.yaml @@ -0,0 +1,29 @@ +dut: + host: 192.168.39.52 + username: root + password: redhat + pmd_cpus: "30,32,34" + interface: + pf1: + name: "ens7f0" + pci: "0000:87:00.0" + vf1: + name: "ens7f0v0" + pci: "0000:87:02.0" + pf2: + name: "ens7f1" + pci: "0000:87:00.1" + vf2: + name: "ens7f1v0" + pci: "0000:87:0a.0" +trafficgen: + host: 192.168.39.51 + username: root + password: redhat + interface: + pf1: + name: "ens6f0" + mac: "40:a6:b7:2f:f0:20" + pf2: + name: "ens6f1" + mac: "40:a6:b7:2f:f0:21" \ No newline at end of file