CI: enable more wifi cases

pull/10546/head
Chen Yudong 2022-12-07 18:07:07 +08:00 zatwierdzone przez Chen Yu Dong
rodzic 3cd5ba44d1
commit 8aca3932b0
40 zmienionych plików z 290 dodań i 139 usunięć

Wyświetl plik

@ -1720,6 +1720,19 @@
- <<: *if-dev-push
changes: *patterns-target_test-adc
.rules:test:component_ut-esp32c2-wifi:
rules:
- <<: *if-revert-branch
when: never
- <<: *if-protected
- <<: *if-label-build-only
when: never
- <<: *if-label-component_ut
- <<: *if-label-component_ut_esp32c2
- <<: *if-label-target_test
- <<: *if-dev-push
changes: *patterns-target_test-wifi
.rules:test:component_ut-esp32c3:
rules:
- <<: *if-revert-branch
@ -1871,6 +1884,19 @@
- <<: *if-dev-push
changes: *patterns-component_ut-usb
.rules:test:component_ut-esp32s3-wifi:
rules:
- <<: *if-revert-branch
when: never
- <<: *if-protected
- <<: *if-label-build-only
when: never
- <<: *if-label-component_ut
- <<: *if-label-component_ut_esp32s3
- <<: *if-label-target_test
- <<: *if-dev-push
changes: *patterns-target_test-wifi
.rules:test:custom_test-esp32:
rules:
- <<: *if-revert-branch
@ -2055,6 +2081,21 @@
- <<: *if-dev-push
changes: *patterns-target_test-adc
.rules:test:example_test-esp32c2-wifi:
rules:
- <<: *if-revert-branch
when: never
- <<: *if-protected
- <<: *if-label-build-only
when: never
- <<: *if-label-example_test
- <<: *if-label-example_test_esp32c2
- <<: *if-label-target_test
- <<: *if-dev-push
changes: *patterns-example_test-wifi
- <<: *if-dev-push
changes: *patterns-target_test-wifi
.rules:test:example_test-esp32c3:
rules:
- <<: *if-revert-branch
@ -2092,6 +2133,21 @@
when: never
- <<: *if-example_test-ota-include_nightly_run-rule
.rules:test:example_test-esp32c3-wifi:
rules:
- <<: *if-revert-branch
when: never
- <<: *if-protected
- <<: *if-label-build-only
when: never
- <<: *if-label-example_test
- <<: *if-label-example_test_esp32c3
- <<: *if-label-target_test
- <<: *if-dev-push
changes: *patterns-example_test-wifi
- <<: *if-dev-push
changes: *patterns-target_test-wifi
.rules:test:example_test-esp32c6:
rules:
- <<: *if-revert-branch
@ -2189,6 +2245,21 @@
- <<: *if-dev-push
changes: *patterns-target_test-adc
.rules:test:example_test-esp32s3-wifi:
rules:
- <<: *if-revert-branch
when: never
- <<: *if-protected
- <<: *if-label-build-only
when: never
- <<: *if-label-example_test
- <<: *if-label-example_test_esp32s3
- <<: *if-label-target_test
- <<: *if-dev-push
changes: *patterns-example_test-wifi
- <<: *if-dev-push
changes: *patterns-target_test-wifi
.rules:test:example_test-i154:
rules:
- <<: *if-revert-branch

Wyświetl plik

@ -200,6 +200,22 @@ example_test_pytest_esp32_wifi_ap:
- build_pytest_examples_esp32
tags: [ esp32, wifi_ap ]
example_test_pytest_esp32c3_wifi_ap:
extends:
- .pytest_examples_dir_template
- .rules:test:example_test-esp32c3-wifi
needs:
- build_pytest_examples_esp32c3
tags: [ esp32c3, wifi_ap ]
example_test_pytest_esp32s3_wifi_ap:
extends:
- .pytest_examples_dir_template
- .rules:test:example_test-esp32s3-wifi
needs:
- build_pytest_examples_esp32s3
tags: [ esp32s3, wifi_ap ]
example_test_pytest_esp32_wifi_router:
extends:
- .pytest_examples_dir_template
@ -208,6 +224,22 @@ example_test_pytest_esp32_wifi_router:
- build_pytest_examples_esp32
tags: [ esp32, wifi_router ]
example_test_pytest_esp32c3_wifi_router:
extends:
- .pytest_examples_dir_template
- .rules:test:example_test-esp32c3-wifi
needs:
- build_pytest_examples_esp32c3
tags: [ esp32c3, wifi_router ]
example_test_pytest_esp32s3_wifi_router:
extends:
- .pytest_examples_dir_template
- .rules:test:example_test-esp32s3-wifi
needs:
- build_pytest_examples_esp32s3
tags: [ esp32s3, wifi_router ]
example_test_pytest_esp32_wifi_wlan:
extends:
- .pytest_examples_dir_template
@ -240,6 +272,30 @@ example_test_pytest_esp32_wifi_two_dut:
- build_pytest_examples_esp32
tags: [ esp32, wifi_two_dut ]
example_test_pytest_esp32c3_wifi_two_dut:
extends:
- .pytest_examples_dir_template
- .rules:test:example_test-esp32c3-wifi
needs:
- build_pytest_examples_esp32c3
tags: [ esp32c3, wifi_two_dut ]
example_test_pytest_esp32s3_wifi_two_dut:
extends:
- .pytest_examples_dir_template
- .rules:test:example_test-esp32s3-wifi
needs:
- build_pytest_examples_esp32s3
tags: [ esp32s3, wifi_two_dut ]
example_test_pytest_esp32c2_wifi_two_dut:
extends:
- .pytest_examples_dir_template
- .rules:test:example_test-esp32c2-wifi
needs:
- build_pytest_examples_esp32c2
tags: [ esp32c2, wifi_two_dut, xtal_26mhz ]
example_test_pytest_esp32c3_flash_encryption:
extends:
- .pytest_examples_dir_template
@ -609,6 +665,22 @@ component_ut_pytest_esp32c3_wifi_two_dut:
- build_pytest_components_esp32c3
tags: [ esp32c3, wifi_two_dut ]
component_ut_pytest_esp32s3_wifi_two_dut:
extends:
- .pytest_components_dir_template
- .rules:test:component_ut-esp32s3-wifi
needs:
- build_pytest_components_esp32s3
tags: [ esp32s3, wifi_two_dut ]
component_ut_pytest_esp32c2_wifi_two_dut:
extends:
- .pytest_components_dir_template
- .rules:test:component_ut-esp32c2-wifi
needs:
- build_pytest_components_esp32c2
tags: [ esp32c2, wifi_two_dut, xtal_26mhz ]
component_ut_pytest_esp32c3_adc:
extends:
- .pytest_components_dir_template

Wyświetl plik

@ -13,12 +13,10 @@
#include "soc/soc_caps.h"
#include "esp_private/wifi.h"
#if !TEMPORARY_DISABLED_FOR_TARGETS(ESP32C2, ESP32C6)
#if !TEMPORARY_DISABLED_FOR_TARGETS(ESP32C6)
//IDF-5046
#include "esp_phy_init.h"
#if !TEMPORARY_DISABLED_FOR_TARGETS(ESP32S2, ESP32C3)
#include "esp_phy_init.h"
//Function just extern, need not test
#if SOC_BT_SUPPORTED
@ -118,6 +116,4 @@ TEST_CASE("Test PHY/RTC functions called when cache is disabled", "[phy_rtc][cac
vSemaphoreDelete(semphr_done);
}
#endif //!TEMPORARY_DISABLED_FOR_TARGETS(ESP32S2, ESP32C3)
#endif //!TEMPORARY_DISABLED_FOR_TARGETS(...)
#endif //!TEMPORARY_DISABLED_FOR_TARGETS(ESP32C6)

Wyświetl plik

@ -1,15 +1,10 @@
# Documentation: .gitlab/ci/README.md#manifest-file-to-control-the-buildtest-apps
components/esp_wifi/test_apps/wifi_connect:
disable:
- if: IDF_TARGET == "esp32c6"
temporary: true
reason: target esp32c6 is not supported yet
disable_test:
- if: IDF_TARGET not in ["esp32", "esp32c3"]
- if: IDF_TARGET not in ["esp32", "esp32c3", "esp32s3", "esp32c2"]
reason: leak of runner
components/esp_wifi/test_apps/wifi_function:
disable:
- if: IDF_TARGET == "esp32c6"
temporary: true
reason: target esp32c6 is not supported yet
- if: SOC_WIFI_SUPPORTED != 1

Wyświetl plik

@ -1,2 +1,2 @@
| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-S2 | ESP32-S3 |
| ----------------- | ----- | -------- | -------- | -------- | -------- |
| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-S2 | ESP32-S3 |
| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- |

Wyświetl plik

@ -1,12 +1,28 @@
# SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
# SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: Unlicense OR CC0-1.0
import pytest
from idf_unity_tester import CaseTester
@pytest.mark.esp32
@pytest.mark.esp32c3
@pytest.mark.esp32s3
@pytest.mark.wifi_two_dut
@pytest.mark.parametrize('count', [2], indirect=True)
def test_wifi_connect_cases(case_tester) -> None: # type: ignore
def test_wifi_connect_cases(case_tester: CaseTester) -> None: # type: ignore
case_tester.run_all_cases()
@pytest.mark.esp32c2
@pytest.mark.wifi_two_dut
@pytest.mark.xtal_26mhz
@pytest.mark.parametrize(
'count, config, baud',
[
(2, 'esp32c2_xtal26m', '74880'),
],
indirect=True,
)
def test_wifi_connect_cases_esp32c2_xtal26m(case_tester: CaseTester) -> None:
case_tester.run_all_cases()

Wyświetl plik

@ -0,0 +1,2 @@
CONFIG_IDF_TARGET="esp32c2"
CONFIG_XTAL_FREQ_26=y

Wyświetl plik

@ -1,3 +1,3 @@
| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-S2 | ESP32-S3 |
| ----------------- | ----- | -------- | -------- | -------- | -------- |
| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-S2 | ESP32-S3 |
| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- |

Wyświetl plik

@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
# SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: Unlicense OR CC0-1.0
import pytest
@ -6,9 +6,24 @@ from pytest_embedded import Dut
@pytest.mark.supported_targets
@pytest.mark.temp_skip_ci(targets=['esp32c6'], reason='c6 support TBD')
@pytest.mark.temp_skip_ci(targets=['esp32c2'], reason='esp32c2 are using xtal_26mhz')
@pytest.mark.generic
def test_wifi_unit_test(dut: Dut) -> None:
dut.expect_exact('Press ENTER to see the list of tests')
dut.write('*')
dut.expect_unity_test_output()
@pytest.mark.esp32c2
@pytest.mark.xtal_26mhz
@pytest.mark.parametrize(
'config, baud',
[
('esp32c2_xtal26m', '74880'),
],
indirect=True,
)
def test_wifi_connect_cases_esp32c2_xtal26m(dut: Dut) -> None:
dut.expect_exact('Press ENTER to see the list of tests')
dut.write('*')
dut.expect_unity_test_output()

Wyświetl plik

@ -0,0 +1,2 @@
CONFIG_IDF_TARGET="esp32c2"
CONFIG_XTAL_FREQ_26=y

Wyświetl plik

@ -19,8 +19,6 @@
typedef struct crypto_bignum crypto_bignum;
#if !TEMPORARY_DISABLED_FOR_TARGETS(ESP32C2)
//IDF-5046
TEST_CASE("Test crypto lib bignum apis", "[wpa_crypto]")
{
{
@ -318,6 +316,8 @@ TEST_CASE("Test crypto lib bignum apis", "[wpa_crypto]")
#endif /* bits in mbedtls_mpi_uint */
#if !TEMPORARY_DISABLED_FOR_TARGETS(ESP32C6)
#if !TEMPORARY_DISABLED_FOR_TARGETS(ESP32C2)
//IDF-5046
/*
* Create an MPI from embedded constants
* (assumes len is an exact multiple of sizeof mbedtls_mpi_uint)
@ -541,5 +541,5 @@ TEST_CASE("Test crypto lib ECC apis", "[wpa_crypto]")
}
}
#endif //!TEMPORARY_DISABLED_FOR_TARGETS(ESP32C6)
#endif //!TEMPORARY_DISABLED_FOR_TARGETS(ESP32C2)
#endif //!TEMPORARY_DISABLED_FOR_TARGETS(ESP32C6)

Wyświetl plik

@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Unlicense OR CC0-1.0
*/
@ -18,7 +18,6 @@
#include "memory_checks.h"
#include <time.h>
#if !TEMPORARY_DISABLED_FOR_TARGETS(ESP32C6)
uint32_t timeouts_usec[6] = { 10000, 1000, 10000, 5000, 15000, 1000 };
uint32_t timeouts_sec[6] = { 10, 1, 10, 5, 15, 1 };
int executed_order[6];
@ -83,4 +82,3 @@ TEST_CASE("Test eloop timers run", "[eloop]")
TEST_ESP_OK(esp_wifi_deinit());
os_sleep(3, 0);
}
#endif //!TEMPORARY_DISABLED_FOR_TARGETS(ESP32C6)

Wyświetl plik

@ -20,8 +20,6 @@
#include "utils/wpabuf.h"
#include "test_utils.h"
#if !TEMPORARY_DISABLED_FOR_TARGETS(ESP32C2)
//IDF-5046
typedef struct crypto_bignum crypto_bignum;
@ -261,6 +259,4 @@ TEST_CASE("Test SAE functionality with ECC group", "[wpa3_sae]")
ESP_LOGI("SAE Test", "=========== Complete ============");
}
#endif //!TEMPORARY_DISABLED_FOR_TARGETS(ESP32C2)
#endif /* CONFIG_WPA3_SAE */

Wyświetl plik

@ -12,6 +12,6 @@ examples/network/simple_sniffer:
temporary: true
reason: target esp32c6 is not supported yet
disable_test:
- if: IDF_TARGET in ["esp32c3", "esp32c2", "esp32s2", "esp32s3"]
- if: IDF_TARGET not in ["esp32", "esp32c3", "esp32s3"]
temporary: true
reason: not tested
reason: lack of runners

Wyświetl plik

@ -38,6 +38,8 @@ def _sniffer_packets_check(dut: Dut, channel: int, packet_num: int) -> None:
@pytest.mark.esp32
@pytest.mark.esp32c3
@pytest.mark.esp32s3
@pytest.mark.wifi_ap
@pytest.mark.parametrize('config', [
'mem',

Wyświetl plik

@ -1,57 +1,5 @@
# Documentation: .gitlab/ci/README.md#manifest-file-to-control-the-buildtest-apps
examples/protocols/asio/asio_chat:
disable:
- if: IDF_TARGET == "esp32c2"
temporary: true
reason: target esp32c2 is not supported yet
disable_test:
- if: IDF_TARGET in ["esp32c3", "esp32s2", "esp32s3"]
temporary: true
reason: lack of runners
examples/protocols/asio/async_request:
enable:
- if: IDF_TARGET == "esp32"
temporary: true
reason: the other targets are not tested yet
examples/protocols/asio/socks4:
enable:
- if: IDF_TARGET == "esp32" or IDF_TARGET == "esp32s2"
temporary: true
reason: the other targets are not tested yet
examples/protocols/asio/ssl_client_server:
disable:
- if: IDF_TARGET == "esp32c2"
temporary: true
reason: target esp32c2 is not supported yet
disable_test:
- if: IDF_TARGET in ["esp32s2", "esp32s3"]
temporary: true
reason: lack of runners
examples/protocols/asio/tcp_echo_server:
disable:
- if: IDF_TARGET == "esp32c2"
temporary: true
reason: target esp32c2 is not supported yet
disable_test:
- if: IDF_TARGET in ["esp32c3", "esp32s2", "esp32s3"]
temporary: true
reason: lack of runners
examples/protocols/asio/udp_echo_server:
disable:
- if: IDF_TARGET == "esp32c2"
temporary: true
reason: target esp32c2 is not supported yet
disable_test:
- if: IDF_TARGET in ["esp32c3", "esp32s2", "esp32s3"]
temporary: true
reason: lack of runners
examples/protocols/coap_client:
disable:
- if: IDF_TARGET == "esp32c6"
@ -78,6 +26,10 @@ examples/protocols/esp_local_ctrl:
- if: IDF_TARGET == "esp32c6"
temporary: true
reason: target esp32c6 is not supported yet
disable_test:
- if: IDF_TARGET not in ["esp32", "esp32c3", "esp32s3"]
temporary: true
reason: lack of runners
examples/protocols/http2_request:
disable:
@ -96,6 +48,22 @@ examples/protocols/http_server:
- if: IDF_TARGET == "esp32c2" or IDF_TARGET == "esp32c6"
temporary: true
reason: target(s) not supported yet
disable_test:
- if: IDF_TARGET not in ["esp32", "esp32c3", "esp32s3"]
temporary: true
reason: lack of runners
examples/protocols/http_server/captive_portal:
disable_test:
- if: IDF_TARGET != "esp32"
temporary: true
reason: only test on esp32
examples/protocols/http_server/ws_echo_server:
disable_test:
- if: IDF_TARGET != "esp32"
temporary: true
reason: only test on esp32
examples/protocols/https_mbedtls:
disable:
@ -119,7 +87,7 @@ examples/protocols/https_server/simple:
temporary: true
reason: target esp32c6 is not supported yet
disable_test:
- if: IDF_TARGET == "esp32c2"
- if: IDF_TARGET not in ["esp32", "esp32c3", "esp32s3"]
temporary: true
reason: lack of runners
@ -129,9 +97,9 @@ examples/protocols/https_server/wss_server:
temporary: true
reason: target esp32c6 is not supported yet
disable_test:
- if: IDF_TARGET == "esp32c2"
- if: IDF_TARGET != "esp32"
temporary: true
reason: lack of runners
reason: only test on esp32
examples/protocols/https_x509_bundle:
disable:
@ -139,7 +107,7 @@ examples/protocols/https_x509_bundle:
temporary: true
reason: target esp32c6 is not supported yet
disable_test:
- if: IDF_TARGET == "esp32c2"
- if: IDF_TARGET != "esp32"
temporary: true
reason: lack of runners
@ -149,7 +117,7 @@ examples/protocols/icmp_echo:
temporary: true
reason: target esp32c6 is not supported yet
disable_test:
- if: IDF_TARGET == "esp32c2"
- if: IDF_TARGET not in ["esp32", "esp32c3", "esp32s3"]
temporary: true
reason: lack of runners
@ -281,7 +249,7 @@ examples/protocols/sockets/tcp_client:
temporary: true
reason: target esp32c6 is not supported yet
disable_test:
- if: IDF_TARGET != "esp32"
- if: IDF_TARGET not in ["esp32", "esp32c3", "esp32s3"]
temporary: true
reason: lack of runners
enable:
@ -299,7 +267,7 @@ examples/protocols/sockets/tcp_server:
temporary: true
reason: target esp32c6 is not supported yet
disable_test:
- if: IDF_TARGET != "esp32"
- if: IDF_TARGET not in ["esp32", "esp32c3", "esp32s3"]
temporary: true
reason: lack of runners
@ -315,7 +283,7 @@ examples/protocols/sockets/udp_client:
temporary: true
reason: target(s) not supported yet
disable_test:
- if: IDF_TARGET in ["esp32c3", "esp32s2", "esp32s3"]
- if: IDF_TARGET not in ["esp32", "esp32c3", "esp32s3"]
temporary: true
reason: lack of runners
@ -331,7 +299,7 @@ examples/protocols/sockets/udp_server:
temporary: true
reason: target esp32c6 is not supported yet
disable_test:
- if: IDF_TARGET != "esp32"
- if: IDF_TARGET not in ["esp32", "esp32c3", "esp32s3"]
temporary: true
reason: lack of runners

Wyświetl plik

@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
# SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: Unlicense OR CC0-1.0
from __future__ import unicode_literals
@ -39,8 +39,9 @@ class CustomProcess(object):
self.f.close()
@pytest.mark.supported_targets
@pytest.mark.temp_skip_ci(targets=['esp32c6'], reason='c6 support TBD')
@pytest.mark.esp32
@pytest.mark.esp32c3
@pytest.mark.esp32s3
@pytest.mark.wifi_router
@pytest.mark.parametrize(
'config',

Wyświetl plik

@ -34,7 +34,6 @@ from pytest_embedded import Dut
@pytest.mark.esp32
@pytest.mark.esp32c3
@pytest.mark.esp32s2
@pytest.mark.esp32s3
@pytest.mark.wifi_router
def test_examples_protocol_http_server_advanced(dut: Dut) -> None:

Wyświetl plik

@ -1,5 +1,5 @@
| Supported Targets | ESP32 | ESP32-C3 | ESP32-S2 | ESP32-S3 |
| ----------------- | ----- | -------- | -------- | -------- |
| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-S2 | ESP32-S3 |
| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- |
# Captive Portal Example

Wyświetl plik

@ -69,9 +69,6 @@ def test_captive_page(ip: str, port: str, uri: str) -> bool:
@pytest.mark.esp32
@pytest.mark.esp32c3
@pytest.mark.esp32s2
@pytest.mark.esp32s3
@pytest.mark.wifi_wlan
@pytest.mark.xfail(reason='Runner unable to connect to target over WiFi', run=False)
def test_example_captive_portal(dut: Dut) -> None:

Wyświetl plik

@ -22,7 +22,6 @@ from pytest_embedded import Dut
@pytest.mark.esp32
@pytest.mark.esp32c3
@pytest.mark.esp32s2
@pytest.mark.esp32s3
@pytest.mark.parametrize('config', ['spiffs',], indirect=True)
def test_examples_protocol_http_server_file_serving(dut: Dut) -> None:

Wyświetl plik

@ -25,7 +25,6 @@ from pytest_embedded import Dut
@pytest.mark.esp32
@pytest.mark.esp32c3
@pytest.mark.esp32s2
@pytest.mark.esp32s3
@pytest.mark.wifi_router
def test_examples_protocol_http_server_persistence(dut: Dut) -> None:

Wyświetl plik

@ -57,7 +57,6 @@ class http_client_thread(threading.Thread):
@pytest.mark.esp32
@pytest.mark.esp32c3
@pytest.mark.esp32s2
@pytest.mark.esp32s3
@pytest.mark.wifi_router
def test_examples_protocol_http_server_simple(dut: Dut) -> None:
@ -131,7 +130,6 @@ def test_examples_protocol_http_server_simple(dut: Dut) -> None:
@pytest.mark.esp32
@pytest.mark.esp32c3
@pytest.mark.esp32s2
@pytest.mark.esp32s3
@pytest.mark.wifi_router
def test_examples_protocol_http_server_lru_purge_enable(dut: Dut) -> None:

Wyświetl plik

@ -1,5 +1,5 @@
| Supported Targets | ESP32 | ESP32-C3 | ESP32-S2 | ESP32-S3 |
| ----------------- | ----- | -------- | -------- | -------- |
| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-S2 | ESP32-S3 |
| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- |
# Websocket echo server

Wyświetl plik

@ -49,9 +49,6 @@ class WsClient:
@pytest.mark.esp32
@pytest.mark.esp32c3
@pytest.mark.esp32s2
@pytest.mark.esp32s3
@pytest.mark.wifi_router
def test_examples_protocol_http_ws_echo_server(dut: Dut) -> None:
# Get binary file

Wyświetl plik

@ -92,7 +92,6 @@ success_response = '<h1>Hello Secure World!</h1>'
@pytest.mark.esp32
@pytest.mark.esp32c3
@pytest.mark.esp32s2
@pytest.mark.esp32s3
@pytest.mark.wifi_router
def test_examples_protocol_https_server_simple(dut: Dut) -> None:
@ -172,7 +171,6 @@ def test_examples_protocol_https_server_simple(dut: Dut) -> None:
@pytest.mark.esp32
@pytest.mark.esp32c3
@pytest.mark.esp32s2
@pytest.mark.esp32s3
@pytest.mark.wifi_router
@pytest.mark.parametrize('config', ['dynamic_buffer',], indirect=True)

Wyświetl plik

@ -107,9 +107,6 @@ def test_multiple_client_keep_alive_and_async_response(ip, port, ca_file): # ty
@pytest.mark.esp32
@pytest.mark.esp32c3
@pytest.mark.esp32s2
@pytest.mark.esp32s3
@pytest.mark.wifi_router
def test_examples_protocol_https_wss_server(dut: Dut) -> None:

Wyświetl plik

@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
# SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: Unlicense OR CC0-1.0
import logging
import os
@ -9,9 +9,6 @@ from pytest_embedded import Dut
@pytest.mark.esp32
@pytest.mark.esp32c3
@pytest.mark.esp32s2
@pytest.mark.esp32s3
@pytest.mark.ethernet
def test_examples_protocol_https_x509_bundle(dut: Dut) -> None:
"""
@ -39,9 +36,6 @@ def test_examples_protocol_https_x509_bundle(dut: Dut) -> None:
@pytest.mark.esp32
@pytest.mark.esp32c3
@pytest.mark.esp32s2
@pytest.mark.esp32s3
@pytest.mark.ethernet
@pytest.mark.parametrize('config', ['ssldyn',], indirect=True)
def test_examples_protocol_https_x509_bundle_dynamic_buffer(dut: Dut) -> None:

Wyświetl plik

@ -10,7 +10,6 @@ from pytest_embedded import Dut
@pytest.mark.esp32
@pytest.mark.esp32c3
@pytest.mark.esp32s2
@pytest.mark.esp32s3
@pytest.mark.wifi_ap
def test_protocols_icmp_echo(dut: Dut) -> None:

Wyświetl plik

@ -22,6 +22,8 @@ PORT = 3333
@pytest.mark.esp32
@pytest.mark.esp32c3
@pytest.mark.esp32s3
@pytest.mark.wifi_router
def test_examples_tcp_client_ipv4(dut: Dut) -> None:
# Parse IP address of STA
@ -44,6 +46,8 @@ def test_examples_tcp_client_ipv4(dut: Dut) -> None:
@pytest.mark.esp32
@pytest.mark.esp32c3
@pytest.mark.esp32s3
@pytest.mark.wifi_router
def test_examples_tcp_client_ipv6(dut: Dut) -> None:
# Parse IP address of STA

Wyświetl plik

@ -22,6 +22,8 @@ MESSAGE = 'Data to ESP'
@pytest.mark.esp32
@pytest.mark.esp32c3
@pytest.mark.esp32s3
@pytest.mark.wifi_router
def test_examples_tcp_server_ipv4(dut: Dut) -> None:
# Parse IP address of STA
@ -44,6 +46,8 @@ def test_examples_tcp_server_ipv4(dut: Dut) -> None:
@pytest.mark.esp32
@pytest.mark.esp32c3
@pytest.mark.esp32s3
@pytest.mark.wifi_router
def test_examples_tcp_server_ipv6(dut: Dut) -> None:
# Parse IP address of STA

Wyświetl plik

@ -24,6 +24,8 @@ MAX_RETRIES = 3
@pytest.mark.esp32
@pytest.mark.esp32c3
@pytest.mark.esp32s3
@pytest.mark.wifi_router
def test_examples_udp_client_ipv4(dut: Dut) -> None:
# Parse IP address of STA
@ -53,6 +55,8 @@ def test_examples_udp_client_ipv4(dut: Dut) -> None:
@pytest.mark.esp32
@pytest.mark.esp32c3
@pytest.mark.esp32s3
@pytest.mark.wifi_router
def test_examples_udp_client_ipv6(dut: Dut) -> None:
# Parse IP address of STA

Wyświetl plik

@ -22,6 +22,8 @@ MAX_RETRIES = 3
@pytest.mark.esp32
@pytest.mark.esp32c3
@pytest.mark.esp32s3
@pytest.mark.wifi_router
def test_examples_udp_server_ipv4(dut: Dut) -> None:
# Parse IP address of STA
@ -48,6 +50,8 @@ def test_examples_udp_server_ipv4(dut: Dut) -> None:
@pytest.mark.esp32
@pytest.mark.esp32c3
@pytest.mark.esp32s3
@pytest.mark.wifi_router
def test_examples_udp_server_ipv6(dut: Dut) -> None:
# Parse IP address of STA

Wyświetl plik

@ -18,7 +18,7 @@ examples/wifi/getting_started:
temporary: true
reason: target esp32c6 is not supported yet
disable_test:
- if: IDF_TARGET != "esp32"
- if: IDF_TARGET not in ["esp32", "esp32c3", "esp32c2", "esp32s3"]
temporary: true
reason: lack of runners

Wyświetl plik

@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
# SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: CC0-1.0
import os.path
@ -22,6 +22,8 @@ from pytest_embedded_idf.dut import IdfDut
@pytest.mark.esp32
@pytest.mark.esp32c3
@pytest.mark.esp32s3
@pytest.mark.wifi_two_dut
@pytest.mark.parametrize(
'count, app_path', [
@ -42,3 +44,27 @@ def test_wifi_getting_started(dut: Tuple[IdfDut, IdfDut]) -> None:
station.expect(f'{tag}: got ip:', timeout=60)
station.expect(f'{tag}: connected to ap SSID:{ssid} password:{password}', timeout=60)
softap.expect('station .+ join, AID=', timeout=60)
@pytest.mark.esp32c2
@pytest.mark.wifi_two_dut
@pytest.mark.xtal_26mhz
@pytest.mark.parametrize(
'count, config, baud, app_path', [
(2, 'esp32c2_xtal26m', '74880',
f'{os.path.join(os.path.dirname(__file__), "softAP")}|{os.path.join(os.path.dirname(__file__), "station")}'),
], indirect=True
)
def test_wifi_getting_started_esp32c2_xtal_26mhz(dut: Tuple[IdfDut, IdfDut]) -> None:
softap = dut[0]
station = dut[1]
ssid = softap.app.sdkconfig.get('ESP_WIFI_SSID')
password = softap.app.sdkconfig.get('ESP_WIFI_PASSWORD')
assert station.app.sdkconfig.get('ESP_WIFI_SSID') == ssid
assert station.app.sdkconfig.get('ESP_WIFI_PASSWORD') == password
tag = 'wifi station'
station.expect(f'{tag}: got ip:', timeout=60)
station.expect(f'{tag}: connected to ap SSID:{ssid} password:{password}', timeout=60)
softap.expect('station .+ join, AID=', timeout=60)

Wyświetl plik

@ -0,0 +1,2 @@
CONFIG_IDF_TARGET="esp32c2"
CONFIG_XTAL_FREQ_26=y

Wyświetl plik

@ -0,0 +1,2 @@
CONFIG_IDF_TARGET="esp32c2"
CONFIG_XTAL_FREQ_26=y

Wyświetl plik

@ -33,9 +33,7 @@ tools/test_apps/peripherals/usb:
tools/test_apps/phy/phy_multi_init_data_test:
disable:
- if: IDF_TARGET == "esp32c2" or IDF_TARGET == "esp32c6"
temporary: true
reason: target(s) not supported yet
- if: SOC_WIFI_SUPPORTED != 1
tools/test_apps/protocols/esp_netif/build_config:
enable:

Wyświetl plik

@ -1,2 +1,2 @@
| Supported Targets | ESP32 | ESP32-C3 | ESP32-S2 | ESP32-S3 |
| ----------------- | ----- | -------- | -------- | -------- |
| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-S2 | ESP32-S3 |
| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- |

Wyświetl plik

@ -5,11 +5,7 @@ import pytest
from pytest_embedded_idf.dut import IdfDut
# IDF-5046
@pytest.mark.esp32
@pytest.mark.esp32s2
@pytest.mark.esp32s3
@pytest.mark.esp32c3
@pytest.mark.supported_targets
@pytest.mark.generic
@pytest.mark.parametrize('config', [
'phy_multiple_init_data',