mirror of
https://github.com/espressif/esp-idf.git
synced 2024-09-20 00:36:01 -04:00
ci/mdns: Run mdns test on ethernet runners
This commit is contained in:
parent
bc3a202fe3
commit
96616b6056
@ -103,12 +103,12 @@ def mdns_server(esp_host):
|
|||||||
continue
|
continue
|
||||||
|
|
||||||
|
|
||||||
@ttfw_idf.idf_example_test(env_tag='Example_WIFI_Protocols')
|
@ttfw_idf.idf_example_test(env_tag='Example_EthKitV1')
|
||||||
def test_examples_protocol_mdns(env, extra_data):
|
def test_examples_protocol_mdns(env, extra_data):
|
||||||
global stop_mdns_server
|
global stop_mdns_server
|
||||||
"""
|
"""
|
||||||
steps: |
|
steps: |
|
||||||
1. join AP + init mdns example
|
1. obtain IP address + init mdns example
|
||||||
2. get the dut host name (and IP address)
|
2. get the dut host name (and IP address)
|
||||||
3. check the mdns name is accessible
|
3. check the mdns name is accessible
|
||||||
4. check DUT output if mdns advertized host is resolved
|
4. check DUT output if mdns advertized host is resolved
|
||||||
@ -124,7 +124,7 @@ def test_examples_protocol_mdns(env, extra_data):
|
|||||||
specific_host = dut1.expect(re.compile(r'mdns hostname set to: \[([^\]]+)\]'), timeout=30)[0]
|
specific_host = dut1.expect(re.compile(r'mdns hostname set to: \[([^\]]+)\]'), timeout=30)[0]
|
||||||
mdns_responder = Thread(target=mdns_server, args=(str(specific_host),))
|
mdns_responder = Thread(target=mdns_server, args=(str(specific_host),))
|
||||||
try:
|
try:
|
||||||
ip_address = dut1.expect(re.compile(r' sta ip: ([^,]+),'), timeout=30)[0]
|
ip_address = dut1.expect(re.compile(r' eth ip: ([^,]+),'), timeout=30)[0]
|
||||||
console_log('Connected to AP with IP: {}'.format(ip_address))
|
console_log('Connected to AP with IP: {}'.format(ip_address))
|
||||||
except DUT.ExpectTimeout:
|
except DUT.ExpectTimeout:
|
||||||
raise ValueError('ENV_TEST_FAILURE: Cannot connect to AP')
|
raise ValueError('ENV_TEST_FAILURE: Cannot connect to AP')
|
||||||
|
@ -2,3 +2,12 @@ CONFIG_MDNS_RESOLVE_TEST_SERVICES=y
|
|||||||
CONFIG_MDNS_ADD_MAC_TO_HOSTNAME=y
|
CONFIG_MDNS_ADD_MAC_TO_HOSTNAME=y
|
||||||
CONFIG_MDNS_PUBLISH_DELEGATE_HOST=y
|
CONFIG_MDNS_PUBLISH_DELEGATE_HOST=y
|
||||||
CONFIG_LWIP_DNS_SUPPORT_MDNS_QUERIES=y
|
CONFIG_LWIP_DNS_SUPPORT_MDNS_QUERIES=y
|
||||||
|
CONFIG_EXAMPLE_CONNECT_ETHERNET=y
|
||||||
|
CONFIG_EXAMPLE_CONNECT_WIFI=n
|
||||||
|
CONFIG_EXAMPLE_USE_INTERNAL_ETHERNET=y
|
||||||
|
CONFIG_EXAMPLE_ETH_PHY_IP101=y
|
||||||
|
CONFIG_EXAMPLE_ETH_MDC_GPIO=23
|
||||||
|
CONFIG_EXAMPLE_ETH_MDIO_GPIO=18
|
||||||
|
CONFIG_EXAMPLE_ETH_PHY_RST_GPIO=5
|
||||||
|
CONFIG_EXAMPLE_ETH_PHY_ADDR=1
|
||||||
|
CONFIG_EXAMPLE_CONNECT_IPV6=y
|
||||||
|
Loading…
Reference in New Issue
Block a user