mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-04 05:04:33 +02:00
Merge branch 'ci/bridge_pytest_v5.2' into 'release/v5.2'
ci(esp_eth): run iperf over longer period for SPI ETH bridge (v5.2) See merge request espressif/esp-idf!29267
This commit is contained in:
@@ -367,14 +367,23 @@ def test_esp_eth_bridge(
|
|||||||
# --------------------------------------------------------------------------
|
# --------------------------------------------------------------------------
|
||||||
# unicast UDP
|
# unicast UDP
|
||||||
bandwidth_udp = run_iperf('udp', endnode, host_ip, IPERF_BW_LIM, 5)
|
bandwidth_udp = run_iperf('udp', endnode, host_ip, IPERF_BW_LIM, 5)
|
||||||
|
if bandwidth_udp < MIN_UDP_THROUGHPUT:
|
||||||
|
logging.warning('Unicast UDP bandwidth was less than expected. Trying again over longer period to compensate transient drops.')
|
||||||
|
bandwidth_udp = run_iperf('udp', endnode, host_ip, IPERF_BW_LIM, 60)
|
||||||
logging.info('Unicast UDP average bandwidth: %s Mbits/s', bandwidth_udp)
|
logging.info('Unicast UDP average bandwidth: %s Mbits/s', bandwidth_udp)
|
||||||
|
|
||||||
# unicast TCP
|
# unicast TCP
|
||||||
bandwidth_tcp = run_iperf('tcp', endnode, host_ip, IPERF_BW_LIM, 5)
|
bandwidth_tcp = run_iperf('tcp', endnode, host_ip, IPERF_BW_LIM, 5)
|
||||||
|
if bandwidth_tcp < MIN_TCP_THROUGHPUT:
|
||||||
|
logging.warning('Unicast TCP bandwidth was less than expected. Trying again over longer period to compensate transient drops.')
|
||||||
|
bandwidth_tcp = run_iperf('tcp', endnode, host_ip, IPERF_BW_LIM, 60)
|
||||||
logging.info('Unicast TCP average bandwidth: %s Mbits/s', bandwidth_tcp)
|
logging.info('Unicast TCP average bandwidth: %s Mbits/s', bandwidth_tcp)
|
||||||
|
|
||||||
# multicast UDP
|
# multicast UDP
|
||||||
bandwidth_mcast_udp = run_iperf('udp', endnode, '224.0.1.4', IPERF_BW_LIM, 5, host_if, endnode_if)
|
bandwidth_mcast_udp = run_iperf('udp', endnode, '224.0.1.4', IPERF_BW_LIM, 5, host_if, endnode_if)
|
||||||
|
if bandwidth_mcast_udp < MIN_UDP_THROUGHPUT:
|
||||||
|
logging.warning('Multicast UDP bandwidth was less than expected. Trying again over longer period to compensate transient drops.')
|
||||||
|
bandwidth_mcast_udp = run_iperf('udp', endnode, '224.0.1.4', IPERF_BW_LIM, 60, host_if, endnode_if)
|
||||||
logging.info('Multicast UDP average bandwidth: %s Mbits/s', bandwidth_mcast_udp)
|
logging.info('Multicast UDP average bandwidth: %s Mbits/s', bandwidth_mcast_udp)
|
||||||
|
|
||||||
if bandwidth_udp < MIN_UDP_THROUGHPUT:
|
if bandwidth_udp < MIN_UDP_THROUGHPUT:
|
||||||
|
Reference in New Issue
Block a user