ci(psram): enable psram test on p4

This commit is contained in:
Armando 2024-01-11 18:30:24 +08:00
parent 13167d8479
commit 2a8459b059
4 changed files with 32 additions and 11 deletions

View File

@ -1,6 +1,5 @@
# Documentation: .gitlab/ci/README.md#manifest-file-to-control-the-buildtest-apps # Documentation: .gitlab/ci/README.md#manifest-file-to-control-the-buildtest-apps
components/esp_psram/test_apps: components/esp_psram/test_apps:
enable: disable:
- if: IDF_TARGET in ["esp32", "esp32s2", "esp32s3"] - if: SOC_SPIRAM_SUPPORTED != 1
reason: only test on esp32, esp32s2, and esp32s3

View File

@ -1,4 +1,4 @@
| Supported Targets | ESP32 | ESP32-S2 | ESP32-S3 | | Supported Targets | ESP32 | ESP32-P4 | ESP32-S2 | ESP32-S3 |
| ----------------- | ----- | -------- | -------- | | ----------------- | ----- | -------- | -------- | -------- |
This test app is used to test PSRAM This test app is used to test PSRAM

View File

@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD # SPDX-FileCopyrightText: 2021-2024 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: CC0-1.0 # SPDX-License-Identifier: CC0-1.0
import pytest import pytest
@ -19,6 +19,20 @@ def test_psram_esp32(dut: Dut) -> None:
dut.run_all_single_board_cases() dut.run_all_single_board_cases()
@pytest.mark.esp32
@pytest.mark.psramv0
@pytest.mark.parametrize(
'config',
[
'esp32_hspi',
'esp32_vspi',
],
indirect=True,
)
def test_psram_esp32_psramv0(dut: Dut) -> None:
dut.run_all_single_board_cases()
@pytest.mark.esp32s2 @pytest.mark.esp32s2
@pytest.mark.generic @pytest.mark.generic
@pytest.mark.parametrize( @pytest.mark.parametrize(
@ -61,15 +75,14 @@ def test_psram_esp32s3_octal(dut: Dut) -> None:
dut.run_all_single_board_cases() dut.run_all_single_board_cases()
@pytest.mark.esp32 @pytest.mark.esp32p4
@pytest.mark.psramv0 @pytest.mark.generic
@pytest.mark.parametrize( @pytest.mark.parametrize(
'config', 'config',
[ [
'esp32_hspi', 'esp32p4_200m_release',
'esp32_vspi',
], ],
indirect=True, indirect=True,
) )
def test_psram_esp32_psramv0(dut: Dut) -> None: def test_psram_esp32p4(dut: Dut) -> None:
dut.run_all_single_board_cases() dut.run_all_single_board_cases()

View File

@ -0,0 +1,9 @@
CONFIG_IDF_TARGET="esp32p4"
CONFIG_COMPILER_OPTIMIZATION_SIZE=y
CONFIG_BOOTLOADER_COMPILER_OPTIMIZATION_SIZE=y
CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_SILENT=y
CONFIG_SPIRAM=y
CONFIG_IDF_EXPERIMENTAL_FEATURES=y
CONFIG_SPIRAM_SPEED_200M=y