mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
ci(esp_eth): run iperf over longer period for SPI ETH bridge
This commit is contained in:
parent
a328e1a08f
commit
2ceb122ee2
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user