CI/mdns: Extend example test for sockets, netifs

* Original commit: espressif/esp-idf@d1b809e6a1
This commit is contained in:
David Cermak
2021-12-14 18:34:04 +01:00
committed by suren-gabrielyan-espressif
parent 30f37c0565
commit 05675c7d63
3 changed files with 35 additions and 7 deletions

View File

@ -105,7 +105,7 @@ def mdns_server(esp_host):
@ttfw_idf.idf_example_test(env_tag='Example_EthKitV1') @ttfw_idf.idf_example_test(env_tag='Example_EthKitV1')
def test_examples_protocol_mdns(env, extra_data): def test_examples_protocol_mdns(env, config):
global stop_mdns_server global stop_mdns_server
""" """
steps: | steps: |
@ -152,5 +152,20 @@ def test_examples_protocol_mdns(env, extra_data):
mdns_responder.join() mdns_responder.join()
@ttfw_idf.idf_example_test(env_tag='Example_WIFI_Protocols')
def test_examples_protocol_mdns_default(env, _):
test_examples_protocol_mdns(env, None)
@ttfw_idf.idf_example_test(env_tag='Example_WIFI_Protocols')
def test_examples_protocol_mdns_socket(env, _):
test_examples_protocol_mdns(env, 'socket')
@ttfw_idf.idf_example_test(env_tag='Example_WIFI_Protocols')
def test_examples_protocol_mdns_custom_netif(env, _):
test_examples_protocol_mdns(env, 'custom_netif')
if __name__ == '__main__': if __name__ == '__main__':
test_examples_protocol_mdns() test_examples_protocol_mdns_default()

View File

@ -0,0 +1,8 @@
CONFIG_MDNS_RESOLVE_TEST_SERVICES=y
CONFIG_MDNS_ADD_MAC_TO_HOSTNAME=y
CONFIG_MDNS_PUBLISH_DELEGATE_HOST=y
CONFIG_LWIP_DNS_SUPPORT_MDNS_QUERIES=y
CONFIG_MDNS_PREDEF_NETIF_STA=n
CONFIG_MDNS_PREDEF_NETIF_AP=n
CONFIG_MDNS_PREDEF_NETIF_ETH=n
CONFIG_MDNS_ADD_CUSTOM_NETIF=y

View File

@ -0,0 +1,5 @@
CONFIG_MDNS_RESOLVE_TEST_SERVICES=y
CONFIG_MDNS_ADD_MAC_TO_HOSTNAME=y
CONFIG_MDNS_PUBLISH_DELEGATE_HOST=y
CONFIG_LWIP_DNS_SUPPORT_MDNS_QUERIES=y
CONFIG_MDNS_NETWORKING_SOCKET=y