Skip to content

Commit fa47919

Browse files
authored
Refactor: Rename perf tests (#1046)
- Add number of ports to a test name - Change the vague test name `4tx_4rx_8nics`, which suggested that the test was run on 8 nics, when actually the test was run on 4 nics and 8 ports
1 parent f53dd3a commit fa47919

File tree

6 files changed

+12
-6
lines changed

6 files changed

+12
-6
lines changed

tests/validation/tests/single/performance/test_1tx_1nic.py renamed to tests/validation/tests/single/performance/test_1tx_1nic_1port.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"i4320p59",
2424
],
2525
)
26-
def test_perf_1tx_1nic(build, media, nic_port_list, test_time, video_format):
26+
def test_perf_1tx_1nic_1port(build, media, nic_port_list, test_time, video_format):
2727
video_file = yuv_files[video_format]
2828

2929
config = rxtxapp.create_empty_performance_config()

tests/validation/tests/single/performance/test_1tx_1rx_2nics.py renamed to tests/validation/tests/single/performance/test_1tx_1rx_2nics_2ports.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@
2323
"i4320p59",
2424
],
2525
)
26-
def test_perf_1tx_1rx_2nics(build, media, nic_port_list, test_time, video_format):
26+
def test_perf_1tx_1rx_2nics_2ports(
27+
build, media, nic_port_list, test_time, video_format
28+
):
2729
# Increase time for 4k and 8k streams
2830
if "2160" in video_format:
2931
test_time = 60

tests/validation/tests/single/performance/test_2tx_2nics.py renamed to tests/validation/tests/single/performance/test_2tx_2nics_2ports.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"i4320p59",
2424
],
2525
)
26-
def test_perf_2tx_2nics(build, media, nic_port_list, test_time, video_format):
26+
def test_perf_2tx_2nics_2ports(build, media, nic_port_list, test_time, video_format):
2727
# Increase time for 4k and 8k streams
2828
if "2160" in video_format:
2929
test_time = 60

tests/validation/tests/single/performance/test_2tx_2rx_4nics.py renamed to tests/validation/tests/single/performance/test_2tx_2rx_4nics_4ports.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@
2323
"i4320p59",
2424
],
2525
)
26-
def test_perf_2tx_2rx_4nics(build, media, nic_port_list, test_time, video_format):
26+
def test_perf_2tx_2rx_4nics_4ports(
27+
build, media, nic_port_list, test_time, video_format
28+
):
2729
# Increase time for 4k and 8k streams
2830
if "2160" in video_format:
2931
test_time = 60

tests/validation/tests/single/performance/test_4tx_4nics.py renamed to tests/validation/tests/single/performance/test_4tx_4nics_4ports.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"i4320p59",
2424
],
2525
)
26-
def test_perf_4tx_4nics(build, media, nic_port_list, test_time, video_format):
26+
def test_perf_4tx_4nics_4ports(build, media, nic_port_list, test_time, video_format):
2727
# For 4 NICs init time of the app is increased
2828
test_time = 60
2929

tests/validation/tests/single/performance/test_4tx_4rx_8nics.py renamed to tests/validation/tests/single/performance/test_4tx_4rx_4nics_8ports.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@
2323
"i4320p59",
2424
],
2525
)
26-
def test_perf_2tx_2rx_4nics(build, media, nic_port_list, test_time, video_format):
26+
def test_perf_4tx_4rx_4nics_8ports(
27+
build, media, nic_port_list, test_time, video_format
28+
):
2729
# For 4 NICs init time of the app is increased
2830
test_time = 60
2931

0 commit comments

Comments
 (0)