forked from espressif/esp-idf
ci(esp_eth): enabled Ethernet ip101 jobs
This commit is contained in:
@ -175,6 +175,14 @@ example_test_pytest_esp32_wifi_wlan:
|
|||||||
- build_pytest_examples_esp32
|
- build_pytest_examples_esp32
|
||||||
tags: [ esp32, wifi_wlan ]
|
tags: [ esp32, wifi_wlan ]
|
||||||
|
|
||||||
|
example_test_pytest_esp32_ethernet_ip101:
|
||||||
|
extends:
|
||||||
|
- .pytest_examples_dir_template
|
||||||
|
- .rules:test:example_test-esp32
|
||||||
|
needs:
|
||||||
|
- build_pytest_examples_esp32
|
||||||
|
tags: [ esp32, eth_ip101 ]
|
||||||
|
|
||||||
example_test_pytest_esp32_flash_encryption:
|
example_test_pytest_esp32_flash_encryption:
|
||||||
extends:
|
extends:
|
||||||
- .pytest_examples_dir_template
|
- .pytest_examples_dir_template
|
||||||
@ -300,6 +308,14 @@ component_ut_pytest_esp32_adc:
|
|||||||
- build_pytest_components_esp32
|
- build_pytest_components_esp32
|
||||||
tags: [ esp32, adc ]
|
tags: [ esp32, adc ]
|
||||||
|
|
||||||
|
component_ut_pytest_esp32_ip101:
|
||||||
|
extends:
|
||||||
|
- .pytest_components_dir_template
|
||||||
|
- .rules:test:component_ut-esp32
|
||||||
|
needs:
|
||||||
|
- build_pytest_components_esp32
|
||||||
|
tags: [ esp32, eth_ip101 ]
|
||||||
|
|
||||||
component_ut_pytest_esp32_lan8720:
|
component_ut_pytest_esp32_lan8720:
|
||||||
extends:
|
extends:
|
||||||
- .pytest_components_dir_template
|
- .pytest_components_dir_template
|
||||||
|
@ -24,6 +24,7 @@ class EthTestIntf(object):
|
|||||||
def find_target_if(self, my_if: str = '') -> None:
|
def find_target_if(self, my_if: str = '') -> None:
|
||||||
# try to determine which interface to use
|
# try to determine which interface to use
|
||||||
netifs = os.listdir('/sys/class/net/')
|
netifs = os.listdir('/sys/class/net/')
|
||||||
|
# order matters - ETH NIC with the highest number is connected to DUT on CI runner
|
||||||
netifs.sort(reverse=True)
|
netifs.sort(reverse=True)
|
||||||
logging.info('detected interfaces: %s', str(netifs))
|
logging.info('detected interfaces: %s', str(netifs))
|
||||||
|
|
||||||
@ -173,7 +174,7 @@ def actual_test(dut: Dut) -> None:
|
|||||||
|
|
||||||
|
|
||||||
@pytest.mark.esp32
|
@pytest.mark.esp32
|
||||||
@pytest.mark.ip101
|
@pytest.mark.eth_ip101
|
||||||
@pytest.mark.parametrize('config', [
|
@pytest.mark.parametrize('config', [
|
||||||
'ip101',
|
'ip101',
|
||||||
], indirect=True)
|
], indirect=True)
|
||||||
|
@ -22,6 +22,8 @@ def configure_eth_if(eth_type: int, target_if: str='') -> Iterator[socket.socket
|
|||||||
if target_if == '':
|
if target_if == '':
|
||||||
# try to determine which interface to use
|
# try to determine which interface to use
|
||||||
netifs = os.listdir('/sys/class/net/')
|
netifs = os.listdir('/sys/class/net/')
|
||||||
|
# order matters - ETH NIC with the highest number is connected to DUT on CI runner
|
||||||
|
netifs.sort(reverse=True)
|
||||||
logging.info('detected interfaces: %s', str(netifs))
|
logging.info('detected interfaces: %s', str(netifs))
|
||||||
for netif in netifs:
|
for netif in netifs:
|
||||||
if netif.find('eth') == 0 or netif.find('enx') == 0 or netif.find('enp') == 0 or netif.find('eno') == 0:
|
if netif.find('eth') == 0 or netif.find('enx') == 0 or netif.find('enp') == 0 or netif.find('eno') == 0:
|
||||||
@ -100,7 +102,7 @@ def actual_test(dut: Dut) -> None:
|
|||||||
|
|
||||||
|
|
||||||
@pytest.mark.esp32 # internally tested using ESP32 with IP101 but may support all targets with SPI Ethernet
|
@pytest.mark.esp32 # internally tested using ESP32 with IP101 but may support all targets with SPI Ethernet
|
||||||
@pytest.mark.ip101
|
@pytest.mark.eth_ip101
|
||||||
@pytest.mark.flaky(reruns=3, reruns_delay=5)
|
@pytest.mark.flaky(reruns=3, reruns_delay=5)
|
||||||
def test_esp_netif_l2tap_example(dut: Dut) -> None:
|
def test_esp_netif_l2tap_example(dut: Dut) -> None:
|
||||||
actual_test(dut)
|
actual_test(dut)
|
||||||
|
@ -32,7 +32,7 @@ markers =
|
|||||||
generic: tests should be run on generic runners
|
generic: tests should be run on generic runners
|
||||||
nightly_run: tests should be executed as part of the nightly trigger pipeline
|
nightly_run: tests should be executed as part of the nightly trigger pipeline
|
||||||
flash_suspend: support flash suspend feature
|
flash_suspend: support flash suspend feature
|
||||||
ip101: connected via wired 10/100M ethernet
|
eth_ip101: connected via wired 10/100M ethernet
|
||||||
eth_lan8720: connected via LAN8720 ethernet transceiver
|
eth_lan8720: connected via LAN8720 ethernet transceiver
|
||||||
quad_psram: runners with quad psram
|
quad_psram: runners with quad psram
|
||||||
octal_psram: runners with octal psram
|
octal_psram: runners with octal psram
|
||||||
|
Reference in New Issue
Block a user