Merge branch 'bugfix/core_c5_tests' into 'master'

test(core): fixed mixed failing C5 core-system tests

Closes IDF-10312, IDF-10344, IDF-10337, and IDF-10302

See merge request espressif/esp-idf!31896
This commit is contained in:
Marius Vikhammer 2024-07-11 09:53:02 +08:00
commit b3e418d12e
11 changed files with 41 additions and 26 deletions

View File

@ -1,7 +1,3 @@
# Documentation: .gitlab/ci/README.md#manifest-file-to-control-the-buildtest-apps
components/newlib/test_apps/newlib:
disable:
- if: IDF_TARGET == "esp32c5"
temporary: true
reason: not supported yet # TODO: [ESP32C5] IDF-8675, IDF-10312

View File

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

View File

@ -9,5 +9,5 @@ idf_component_register(SRCS
"test_setjmp.c"
"test_stdatomic.c"
"test_time.c"
PRIV_REQUIRES unity vfs cmock driver esp_timer spi_flash test_utils pthread esp_psram
PRIV_REQUIRES unity vfs cmock esp_timer spi_flash test_utils pthread esp_psram
WHOLE_ARCHIVE)

View File

@ -43,6 +43,8 @@
#include "esp32h2/rtc.h"
#elif CONFIG_IDF_TARGET_ESP32P4
#include "esp32p4/rtc.h"
#elif CONFIG_IDF_TARGET_ESP32C5
#include "esp32c5/rtc.h"
#endif
#if SOC_CACHE_INTERNAL_MEM_VIA_L1CACHE

View File

@ -31,7 +31,6 @@ def validate_sbom(dut: Dut) -> None:
@pytest.mark.generic
@pytest.mark.temp_skip_ci(targets=['esp32c5'], reason='not support yet') # TODO: [ESP32C5] IDF-8675, IDF-10312
@pytest.mark.parametrize(
'config',
[

View File

@ -176,9 +176,3 @@ examples/storage/wear_levelling:
disable_test:
- if: IDF_TARGET not in ["esp32", "esp32c3"]
reason: only one target per arch needed
examples/system/base_mac_address:
disable_test:
- if: IDF_TARGET == "esp32c5"
temporary: true
reason: target test failed, runner not burnt efuse # TODO: [ESP32C5] IDF-10337

View File

@ -7,10 +7,6 @@ examples/system/app_trace_basic:
reason: target esp32c6, esp32h2, esp32p4, esp32c5 is not supported yet
examples/system/base_mac_address:
disable_test:
- if: IDF_TARGET == "esp32c5"
temporary: true
reason: target test failed # TODO [ESP32C5] IDF-10347
depends_components:
- esp_hw_support

View File

@ -5,8 +5,6 @@ from pytest_embedded import Dut
@pytest.mark.supported_targets
# TODO: [ESP32C5] IDF-10337
@pytest.mark.temp_skip_ci(targets=['esp32c5'], reason='c5 runners not burnt mac efuse')
@pytest.mark.generic
def test_base_mac_address(dut: Dut) -> None:
def get_hex_r(num_bytes: int) -> str:

View File

@ -30,10 +30,6 @@ tools/test_apps/system/eh_frame:
reason: the other targets are not tested yet
tools/test_apps/system/esp_intr_dump:
disable_test:
- if: IDF_TARGET == "esp32c5"
temporary: true
reason: target test failed # TODO [ESP32C5] IDF-10344
tools/test_apps/system/g0_components:
enable:

View File

@ -0,0 +1,36 @@
CPU 0 interrupt status:
Int Level Type Status
0 1 Level Used: FROM_CPU_INTR0
1 * * Reserved
2 1 Level Used: SYSTIMER_TARGET0
3 1 Level Used: TG0_WDT_LEVEL
4 1 Level Used: UART0
5 * * Free
6 * * Reserved
7 * * Free
8 * * Free
9 * * Free
10 * * Free
11 * * Free
12 * * Free
13 * * Free
14 * * Free
15 * * Free
16 * * Free
17 * * Free
18 * * Free
19 * * Free
20 * * Free
21 * * Free
22 * * Free
23 * * Free
24 * * Reserved
25 * * Reserved
26 * * Free
27 * * Free
28 * * Free
29 * * Free
30 * * Free
31 * * Free
Interrupts available for general use: 24
Shared interrupts: 0

View File

@ -48,8 +48,6 @@ def test_esp_intr_dump_shared(dut: Dut) -> None:
# TODO: IDF-9512, Update the expected output of dual core RISC-V chips when the issue is resolved
@pytest.mark.supported_targets
# TODO: [ESP32C5] IDF-10344
@pytest.mark.temp_skip_ci(targets=['esp32c5'], reason='c5 test failed')
@pytest.mark.generic
def test_esp_intr_dump_expected_output(dut: Dut) -> None:
dut.expect_exact(PROMPT, timeout=30)