From 4e231f9dacf8c7c6a7481c721441994fcb7033e5 Mon Sep 17 00:00:00 2001 From: "Michael (XIAO Xufeng)" Date: Sun, 22 May 2022 03:28:15 +0800 Subject: [PATCH] ci: partially enable pytest for esp32c2 --- .../esp_system/test_apps/rtc_8md256/pytest_rtc_8md256.py | 3 +++ examples/system/base_mac_address/pytest_base_mac_address.py | 6 +++++- .../esp_event/user_event_loops/pytest_esp_event_user.py | 6 +++++- examples/system/esp_timer/pytest_esp_timer.py | 6 +++++- examples/system/eventfd/pytest_eventfd.py | 6 +++++- .../real_time_stats/pytest_freertos_real_time_stats.py | 6 +++++- examples/system/light_sleep/pytest_light_sleep.py | 6 +++++- examples/system/pthread/pytest_pthread.py | 6 +++++- examples/system/task_watchdog/pytest_task_watchdog.py | 6 +++++- tools/test_apps/phy/phy_multi_init_data_test/README.md | 4 ++-- .../phy_multi_init_data_test/pytest_phy_multi_init_data.py | 6 +++++- 11 files changed, 50 insertions(+), 11 deletions(-) diff --git a/components/esp_system/test_apps/rtc_8md256/pytest_rtc_8md256.py b/components/esp_system/test_apps/rtc_8md256/pytest_rtc_8md256.py index 7c20e210f1..8410d9a5a5 100644 --- a/components/esp_system/test_apps/rtc_8md256/pytest_rtc_8md256.py +++ b/components/esp_system/test_apps/rtc_8md256/pytest_rtc_8md256.py @@ -12,6 +12,9 @@ def deepsleep_test(dut: Dut, case_name: str) -> None: if dut.target == 'esp32c3': # Known issue: IDF-5003 dut.expect(r'rst:.*\(%s\)' % reset_reason, timeout=40) + elif dut.target == 'esp32c2': + # Known issue: IDF-5003 + dut.expect(r'rst:.*\(%s\)' % reset_reason, timeout=60) else: dut.expect(r'rst:.*\(%s\)' % reset_reason, timeout=10) diff --git a/examples/system/base_mac_address/pytest_base_mac_address.py b/examples/system/base_mac_address/pytest_base_mac_address.py index ee3dcb7381..41c2910b06 100644 --- a/examples/system/base_mac_address/pytest_base_mac_address.py +++ b/examples/system/base_mac_address/pytest_base_mac_address.py @@ -5,7 +5,11 @@ import pytest from pytest_embedded import Dut -@pytest.mark.supported_targets +# IDF-5046 +@pytest.mark.esp32 +@pytest.mark.esp32s2 +@pytest.mark.esp32s3 +@pytest.mark.esp32c3 @pytest.mark.generic def test_base_mac_address(dut: Dut) -> None: dut.expect_exact('BASE_MAC: Base MAC Address read from EFUSE BLK0') diff --git a/examples/system/esp_event/user_event_loops/pytest_esp_event_user.py b/examples/system/esp_event/user_event_loops/pytest_esp_event_user.py index 33275591f1..3c1edad083 100644 --- a/examples/system/esp_event/user_event_loops/pytest_esp_event_user.py +++ b/examples/system/esp_event/user_event_loops/pytest_esp_event_user.py @@ -12,7 +12,11 @@ TASK_ITERATION_POSTING = 'posting TASK_EVENTS:TASK_ITERATION_EVENT to {}, iterat TASK_ITERATION_HANDLING = 'handling TASK_EVENTS:TASK_ITERATION_EVENT from {}, iteration {}' -@pytest.mark.supported_targets +# IDF-5051 +@pytest.mark.esp32 +@pytest.mark.esp32s2 +@pytest.mark.esp32s3 +@pytest.mark.esp32c3 @pytest.mark.generic def test_esp_event_user_event_loops(dut: Dut) -> None: diff --git a/examples/system/esp_timer/pytest_esp_timer.py b/examples/system/esp_timer/pytest_esp_timer.py index 86f7847ea3..ae3489f9ca 100644 --- a/examples/system/esp_timer/pytest_esp_timer.py +++ b/examples/system/esp_timer/pytest_esp_timer.py @@ -28,7 +28,11 @@ LIGHT_SLEEP_TIME = 500000 ONE_SHOT_TIMER_PERIOD = 5000000 -@pytest.mark.supported_targets +# IDF-5052 +@pytest.mark.esp32 +@pytest.mark.esp32s2 +@pytest.mark.esp32s3 +@pytest.mark.esp32c3 @pytest.mark.generic @pytest.mark.parametrize( 'config', diff --git a/examples/system/eventfd/pytest_eventfd.py b/examples/system/eventfd/pytest_eventfd.py index 1fb730ec73..4548c36b7a 100644 --- a/examples/system/eventfd/pytest_eventfd.py +++ b/examples/system/eventfd/pytest_eventfd.py @@ -8,7 +8,11 @@ import pytest from pytest_embedded import Dut -@pytest.mark.supported_targets +# IDF-5051 +@pytest.mark.esp32 +@pytest.mark.esp32s2 +@pytest.mark.esp32s3 +@pytest.mark.esp32c3 @pytest.mark.generic def test_eventfd(dut: Dut) -> None: diff --git a/examples/system/freertos/real_time_stats/pytest_freertos_real_time_stats.py b/examples/system/freertos/real_time_stats/pytest_freertos_real_time_stats.py index d0dbad2d1e..87a762fd43 100644 --- a/examples/system/freertos/real_time_stats/pytest_freertos_real_time_stats.py +++ b/examples/system/freertos/real_time_stats/pytest_freertos_real_time_stats.py @@ -5,7 +5,11 @@ import pytest from pytest_embedded import Dut -@pytest.mark.supported_targets +# IDF-5051 +@pytest.mark.esp32 +@pytest.mark.esp32s2 +@pytest.mark.esp32s3 +@pytest.mark.esp32c3 @pytest.mark.generic def test_freertos_real_time_stats(dut: Dut) -> None: diff --git a/examples/system/light_sleep/pytest_light_sleep.py b/examples/system/light_sleep/pytest_light_sleep.py index 96472be46d..ea99aefe50 100644 --- a/examples/system/light_sleep/pytest_light_sleep.py +++ b/examples/system/light_sleep/pytest_light_sleep.py @@ -8,7 +8,11 @@ import pytest from pytest_embedded import Dut -@pytest.mark.supported_targets +# IDF-5053 +@pytest.mark.esp32 +@pytest.mark.esp32s2 +@pytest.mark.esp32s3 +@pytest.mark.esp32c3 @pytest.mark.generic def test_light_sleep(dut: Dut) -> None: diff --git a/examples/system/pthread/pytest_pthread.py b/examples/system/pthread/pytest_pthread.py index 2852bb1039..020e6ff49b 100644 --- a/examples/system/pthread/pytest_pthread.py +++ b/examples/system/pthread/pytest_pthread.py @@ -5,7 +5,11 @@ import pytest from pytest_embedded import Dut -@pytest.mark.supported_targets +# IDF-5054 +@pytest.mark.esp32 +@pytest.mark.esp32s2 +@pytest.mark.esp32s3 +@pytest.mark.esp32c3 @pytest.mark.generic def test_pthread(dut: Dut) -> None: diff --git a/examples/system/task_watchdog/pytest_task_watchdog.py b/examples/system/task_watchdog/pytest_task_watchdog.py index 7a4a8e223f..77d2aca393 100644 --- a/examples/system/task_watchdog/pytest_task_watchdog.py +++ b/examples/system/task_watchdog/pytest_task_watchdog.py @@ -5,7 +5,11 @@ import pytest from pytest_embedded import Dut -@pytest.mark.supported_targets +# IDF-5055 +@pytest.mark.esp32 +@pytest.mark.esp32s2 +@pytest.mark.esp32s3 +@pytest.mark.esp32c3 @pytest.mark.generic def test_task_watchdog(dut: Dut) -> None: diff --git a/tools/test_apps/phy/phy_multi_init_data_test/README.md b/tools/test_apps/phy/phy_multi_init_data_test/README.md index 57433de18a..3f7a0a04f0 100644 --- a/tools/test_apps/phy/phy_multi_init_data_test/README.md +++ b/tools/test_apps/phy/phy_multi_init_data_test/README.md @@ -1,2 +1,2 @@ -| Supported Targets | ESP32 | ESP32-S2 | ESP32-S3 | ESP32-C3 | ESP32-C2 | -| ----------------- | ----- | -------- | -------- | -------- | -------- | +| Supported Targets | ESP32 | ESP32-S2 | ESP32-S3 | ESP32-C3 | +| ----------------- | ----- | -------- | -------- | -------- | diff --git a/tools/test_apps/phy/phy_multi_init_data_test/pytest_phy_multi_init_data.py b/tools/test_apps/phy/phy_multi_init_data_test/pytest_phy_multi_init_data.py index 9f9c914542..d657695f4a 100644 --- a/tools/test_apps/phy/phy_multi_init_data_test/pytest_phy_multi_init_data.py +++ b/tools/test_apps/phy/phy_multi_init_data_test/pytest_phy_multi_init_data.py @@ -5,7 +5,11 @@ import pytest from pytest_embedded_idf.dut import IdfDut -@pytest.mark.supported_targets +# IDF-5046 +@pytest.mark.esp32 +@pytest.mark.esp32s2 +@pytest.mark.esp32s3 +@pytest.mark.esp32c3 @pytest.mark.generic @pytest.mark.parametrize('config', [ 'phy_multiple_init_data',