ci: partially enable pytest for esp32c2

pull/9141/head
Michael (XIAO Xufeng) 2022-05-22 03:28:15 +08:00 zatwierdzone przez morris
rodzic 6a8aed12ee
commit 4e231f9dac
11 zmienionych plików z 50 dodań i 11 usunięć

Wyświetl plik

@ -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)

Wyświetl plik

@ -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')

Wyświetl plik

@ -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:

Wyświetl plik

@ -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',

Wyświetl plik

@ -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:

Wyświetl plik

@ -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:

Wyświetl plik

@ -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:

Wyświetl plik

@ -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:

Wyświetl plik

@ -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:

Wyświetl plik

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

Wyświetl plik

@ -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',