mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-08 12:10:59 +00:00
feat(examples/storage): update perf benchmark example
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD
|
||||
# SPDX-FileCopyrightText: 2023-2024 Espressif Systems (Shanghai) CO LTD
|
||||
# SPDX-License-Identifier: Unlicense OR CC0-1.0
|
||||
import pytest
|
||||
from pytest_embedded import Dut
|
||||
@@ -19,14 +19,15 @@ def test_examples_perf_benchmark_spiflash(dut: Dut) -> None:
|
||||
dut.expect('example: WL layer mounted', timeout=90)
|
||||
dut.expect('example: WL layer unmounted', timeout=240) # SPI flash has slow write speed
|
||||
|
||||
dut.expect('example: Mounting FATFS partition...', timeout=10)
|
||||
dut.expect('example: FATFS mounted to', timeout=90) # Increased timeout due to formatting
|
||||
dut.expect('example: FATFS partition unmounted', timeout=240) # SPI flash has slow write speed
|
||||
|
||||
dut.expect('example: Mounting SPIFFS partition...', timeout=10)
|
||||
dut.expect('example: SPIFFS mounted to', timeout=90) # Increased timeout due to formatting
|
||||
dut.expect('example: SPIFFS partition unmounted', timeout=240) # SPI flash has slow write speed
|
||||
|
||||
dut.expect('example: LittleFS mounted to', timeout=90) # Increased timeout due to formatting
|
||||
dut.expect('example: LittleFS partition unmounted', timeout=240) # SPI flash has slow write speed
|
||||
|
||||
|
||||
@pytest.mark.esp32
|
||||
@pytest.mark.sdcard_sdmode
|
||||
@@ -41,13 +42,15 @@ def test_examples_perf_benchmark_spiflash(dut: Dut) -> None:
|
||||
def test_examples_perf_benchmark_sdcard_sdmmc(dut: Dut) -> None:
|
||||
# SD card
|
||||
dut.expect('example: Mounting SD card - raw access', timeout=10)
|
||||
dut.expect('example: SD card mounted - raw access', timeout=10)
|
||||
dut.expect('sd_utils: SD card mounted - raw access', timeout=10)
|
||||
dut.expect('example: SD card unmounted - raw access', timeout=60)
|
||||
|
||||
dut.expect('example: Mounting SD card - FATFS', timeout=30)
|
||||
dut.expect('example: SD card mounted - FATFS', timeout=120) # Increased timeout due to formatting
|
||||
dut.expect('example: SD card unmounted - FATFS', timeout=180)
|
||||
|
||||
dut.expect('example: SD card mounted - LittleFS', timeout=120) # Increased timeout due to formatting
|
||||
dut.expect('example: SD card unmounted - LittleFS', timeout=180)
|
||||
|
||||
|
||||
@pytest.mark.esp32
|
||||
@pytest.mark.temp_skip_ci(targets=['esp32'], reason='IDFCI-2059, temporary lack runner')
|
||||
@@ -64,9 +67,11 @@ def test_examples_perf_benchmark_sdcard_sdmmc(dut: Dut) -> None:
|
||||
def test_examples_perf_benchmark_sdcard_spi(dut: Dut) -> None:
|
||||
# SD card
|
||||
dut.expect('example: Mounting SD card - raw access', timeout=10)
|
||||
dut.expect('example: SD card mounted - raw access', timeout=10)
|
||||
dut.expect('sd_utils: SD card mounted - raw access', timeout=10)
|
||||
dut.expect('example: SD card unmounted - raw access', timeout=180)
|
||||
|
||||
dut.expect('example: Mounting SD card - FATFS', timeout=30)
|
||||
dut.expect('example: SD card mounted - FATFS', timeout=120) # Increased timeout due to formatting
|
||||
dut.expect('example: SD card unmounted - FATFS', timeout=180)
|
||||
|
||||
dut.expect('example: SD card mounted - LittleFS', timeout=120) # Increased timeout due to formatting
|
||||
dut.expect('example: SD card unmounted - LittleFS', timeout=180)
|
||||
|
Reference in New Issue
Block a user