summaryrefslogtreecommitdiff
path: root/lib/fatfs/test_apps/flash_ro
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2025-07-25 13:33:07 +1000
committerjacqueline <me@jacqueline.id.au>2025-07-25 13:33:07 +1000
commitc8e79a926620e48830778714cfe4b2ea2453fcaf (patch)
tree8c756e08e01b8e147cf72bec128026f46bd854c5 /lib/fatfs/test_apps/flash_ro
parent237136f3e93cb6b5be24670d7520adb17cc0fa36 (diff)
downloadtangara-fw-c8e79a926620e48830778714cfe4b2ea2453fcaf.tar.gz
Update forked idf components
Diffstat (limited to 'lib/fatfs/test_apps/flash_ro')
-rw-r--r--lib/fatfs/test_apps/flash_ro/README.md4
-rw-r--r--lib/fatfs/test_apps/flash_ro/main/test_fatfs_flash_ro.c3
-rw-r--r--lib/fatfs/test_apps/flash_ro/pytest_fatfs_flash_ro.py12
3 files changed, 8 insertions, 11 deletions
diff --git a/lib/fatfs/test_apps/flash_ro/README.md b/lib/fatfs/test_apps/flash_ro/README.md
index 4d341fbc..90297186 100644
--- a/lib/fatfs/test_apps/flash_ro/README.md
+++ b/lib/fatfs/test_apps/flash_ro/README.md
@@ -1,5 +1,5 @@
-| 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-C61 | ESP32-H2 | ESP32-H21 | ESP32-H4 | ESP32-P4 | ESP32-S2 | ESP32-S3 |
+| ----------------- | ----- | -------- | -------- | -------- | -------- | --------- | -------- | --------- | -------- | -------- | -------- | -------- |
This test app runs a few FATFS test cases in a read-only FAT partition.
diff --git a/lib/fatfs/test_apps/flash_ro/main/test_fatfs_flash_ro.c b/lib/fatfs/test_apps/flash_ro/main/test_fatfs_flash_ro.c
index 61786bfe..cca3dc0d 100644
--- a/lib/fatfs/test_apps/flash_ro/main/test_fatfs_flash_ro.c
+++ b/lib/fatfs/test_apps/flash_ro/main/test_fatfs_flash_ro.c
@@ -4,6 +4,7 @@
* SPDX-License-Identifier: Apache-2.0
*/
+#include "sdkconfig.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -263,7 +264,7 @@ TEST_CASE("(raw) multiple tasks can use same volume", "[fatfs]")
read_test_arg_t args4 = READ_TEST_ARG_INIT(names[3], 0x34343434);
const int cpuid_0 = 0;
- const int cpuid_1 = portNUM_PROCESSORS - 1;
+ const int cpuid_1 = CONFIG_FREERTOS_NUMBER_OF_CORES - 1;
const int stack_size = 4096;
printf("reading files 1.txt 2.txt 3.txt 4.txt \n");
diff --git a/lib/fatfs/test_apps/flash_ro/pytest_fatfs_flash_ro.py b/lib/fatfs/test_apps/flash_ro/pytest_fatfs_flash_ro.py
index eda296ef..0339f8b6 100644
--- a/lib/fatfs/test_apps/flash_ro/pytest_fatfs_flash_ro.py
+++ b/lib/fatfs/test_apps/flash_ro/pytest_fatfs_flash_ro.py
@@ -1,15 +1,11 @@
-# SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
+# SPDX-FileCopyrightText: 2022-2025 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: CC0-1.0
-
import pytest
from pytest_embedded import Dut
+from pytest_embedded_idf.utils import idf_parametrize
-@pytest.mark.supported_targets
@pytest.mark.generic
+@idf_parametrize('target', ['esp32', 'esp32c3'], indirect=['target'])
def test_fatfs_flash_ro(dut: Dut) -> None:
- dut.expect_exact('Press ENTER to see the list of tests')
- dut.write('')
- dut.expect_exact('Enter test for running.')
- dut.write('*')
- dut.expect_unity_test_output()
+ dut.run_all_single_board_cases()