Просмотр исходного кода

VFS: move tests from unit-test-app to a component test app

Sonika Rathi 2 лет назад
Родитель
Сommit
d83c681078
47 измененных файлов с 154 добавлено и 58 удалено
  1. 0 3
      components/vfs/test/CMakeLists.txt
  2. 12 0
      components/vfs/test_apps/CMakeLists.txt
  3. 3 0
      components/vfs/test_apps/README.md
  4. 12 0
      components/vfs/test_apps/main/CMakeLists.txt
  5. 34 0
      components/vfs/test_apps/main/test_app_main.c
  6. 1 1
      components/vfs/test_apps/main/test_vfs_access.c
  7. 0 1
      components/vfs/test_apps/main/test_vfs_append.c
  8. 0 0
      components/vfs/test_apps/main/test_vfs_eventfd.c
  9. 0 0
      components/vfs/test_apps/main/test_vfs_fd.c
  10. 5 13
      components/vfs/test_apps/main/test_vfs_lwip.c
  11. 1 1
      components/vfs/test_apps/main/test_vfs_open.c
  12. 5 13
      components/vfs/test_apps/main/test_vfs_paths.c
  13. 0 0
      components/vfs/test_apps/main/test_vfs_select.c
  14. 0 0
      components/vfs/test_apps/main/test_vfs_uart.c
  15. 5 0
      components/vfs/test_apps/partitions.csv
  16. 36 0
      components/vfs/test_apps/pytest_vfs.py
  17. 1 0
      components/vfs/test_apps/sdkconfig.ci.ccomp
  18. 0 0
      components/vfs/test_apps/sdkconfig.ci.default
  19. 3 0
      components/vfs/test_apps/sdkconfig.ci.psram
  20. 9 0
      components/vfs/test_apps/sdkconfig.defaults
  21. 1 0
      components/vfs/test_apps/sdkconfig.defaults.esp32
  22. 1 1
      tools/unit-test-app/configs/default_2
  23. 1 1
      tools/unit-test-app/configs/default_2_c3
  24. 1 1
      tools/unit-test-app/configs/default_2_s2
  25. 1 1
      tools/unit-test-app/configs/default_2_s3
  26. 1 1
      tools/unit-test-app/configs/default_32_2
  27. 1 1
      tools/unit-test-app/configs/default_3_c2
  28. 1 1
      tools/unit-test-app/configs/default_3_c3
  29. 1 1
      tools/unit-test-app/configs/default_3_c6
  30. 1 1
      tools/unit-test-app/configs/default_3_h2
  31. 1 1
      tools/unit-test-app/configs/default_c2
  32. 1 1
      tools/unit-test-app/configs/default_c6
  33. 1 1
      tools/unit-test-app/configs/default_h2
  34. 1 1
      tools/unit-test-app/configs/default_s2_2
  35. 1 1
      tools/unit-test-app/configs/default_s3
  36. 1 1
      tools/unit-test-app/configs/release
  37. 1 1
      tools/unit-test-app/configs/release_2
  38. 1 1
      tools/unit-test-app/configs/release_2_s2
  39. 1 1
      tools/unit-test-app/configs/release_c2
  40. 1 1
      tools/unit-test-app/configs/release_c3_2
  41. 1 1
      tools/unit-test-app/configs/release_c6
  42. 1 1
      tools/unit-test-app/configs/release_h2
  43. 1 1
      tools/unit-test-app/configs/release_s2
  44. 1 1
      tools/unit-test-app/configs/release_s3
  45. 1 1
      tools/unit-test-app/configs/single_core
  46. 1 1
      tools/unit-test-app/configs/single_core_2
  47. 1 1
      tools/unit-test-app/configs/single_core_2_s2

+ 0 - 3
components/vfs/test/CMakeLists.txt

@@ -1,3 +0,0 @@
-idf_component_register(SRC_DIRS "."
-                       PRIV_INCLUDE_DIRS .
-                       PRIV_REQUIRES cmock test_utils vfs fatfs spiffs)

+ 12 - 0
components/vfs/test_apps/CMakeLists.txt

@@ -0,0 +1,12 @@
+# This is the project CMakeLists.txt file for the test subproject
+cmake_minimum_required(VERSION 3.5)
+
+set(EXTRA_COMPONENT_DIRS "$ENV{IDF_PATH}/tools/unit-test-app/components")
+
+list(APPEND SDKCONFIG_DEFAULTS "$ENV{IDF_PATH}/tools/test_apps/configs/sdkconfig.debug_helpers")
+list(APPEND SDKCONFIG_DEFAULTS "sdkconfig.defaults")
+
+set(COMPONENTS main)
+
+include($ENV{IDF_PATH}/tools/cmake/project.cmake)
+project(vfs_test)

+ 3 - 0
components/vfs/test_apps/README.md

@@ -0,0 +1,3 @@
+| Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-H2 | ESP32-S2 | ESP32-S3 |
+| ----------------- | ----- | -------- | -------- | -------- | -------- | -------- | -------- |
+

+ 12 - 0
components/vfs/test_apps/main/CMakeLists.txt

@@ -0,0 +1,12 @@
+set(src "test_app_main.c" "test_vfs_access.c"
+        "test_vfs_append.c" "test_vfs_eventfd.c"
+        "test_vfs_fd.c" "test_vfs_lwip.c"
+        "test_vfs_open.c" "test_vfs_paths.c"
+        "test_vfs_select.c" "test_vfs_uart.c"
+        )
+
+idf_component_register(SRCS ${src}
+                       PRIV_INCLUDE_DIRS .
+                       PRIV_REQUIRES test_utils vfs fatfs spiffs unity lwip wear_levelling cmock
+                       WHOLE_ARCHIVE
+                       )

+ 34 - 0
components/vfs/test_apps/main/test_app_main.c

@@ -0,0 +1,34 @@
+/*
+ * SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
+ *
+ * SPDX-License-Identifier: Unlicense OR CC0-1.0
+ */
+
+#include "unity.h"
+#include "unity_test_utils.h"
+#include "esp_heap_caps.h"
+
+// Some resources are lazy allocated, the threadhold is left for that case
+#define TEST_MEMORY_LEAK_THRESHOLD (-100)
+
+static size_t before_free_8bit;
+static size_t before_free_32bit;
+
+void setUp(void)
+{
+    before_free_8bit = heap_caps_get_free_size(MALLOC_CAP_8BIT);
+    before_free_32bit = heap_caps_get_free_size(MALLOC_CAP_32BIT);
+}
+
+void tearDown(void)
+{
+    size_t after_free_8bit = heap_caps_get_free_size(MALLOC_CAP_8BIT);
+    size_t after_free_32bit = heap_caps_get_free_size(MALLOC_CAP_32BIT);
+    unity_utils_check_leak(before_free_8bit, after_free_8bit, "8BIT", TEST_MEMORY_LEAK_THRESHOLD);
+    unity_utils_check_leak(before_free_32bit, after_free_32bit, "32BIT", TEST_MEMORY_LEAK_THRESHOLD);
+}
+
+void app_main(void)
+{
+    unity_run_menu();
+}

+ 1 - 1
components/vfs/test/test_vfs_access.c → components/vfs/test_apps/main/test_vfs_access.c

@@ -14,7 +14,7 @@
 #include "esp_vfs_dev.h"
 #include "esp_vfs_fat.h"
 #include "wear_levelling.h"
-#include "test_utils.h"
+#include "sdkconfig.h"
 
 static wl_handle_t test_wl_handle;
 

+ 0 - 1
components/vfs/test/test_vfs_append.c → components/vfs/test_apps/main/test_vfs_append.c

@@ -13,7 +13,6 @@
 #include "esp_vfs_fat.h"
 #include "esp_spiffs.h"
 #include "wear_levelling.h"
-#include "test_utils.h"
 
 #define TEST_PARTITION_LABEL "flash_test"
 

+ 0 - 0
components/vfs/test/test_vfs_eventfd.c → components/vfs/test_apps/main/test_vfs_eventfd.c


+ 0 - 0
components/vfs/test/test_vfs_fd.c → components/vfs/test_apps/main/test_vfs_fd.c


+ 5 - 13
components/vfs/test/test_vfs_lwip.c → components/vfs/test_apps/main/test_vfs_lwip.c

@@ -1,16 +1,8 @@
-// Copyright 2021 Espressif Systems (Shanghai) CO LTD
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-//     http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
+/*
+ * SPDX-FileCopyrightText: 2021-2023 Espressif Systems (Shanghai) CO LTD
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ */
 
 #include <unistd.h>
 #include <sys/fcntl.h>

+ 1 - 1
components/vfs/test/test_vfs_open.c → components/vfs/test_apps/main/test_vfs_open.c

@@ -1,5 +1,5 @@
 /*
- * SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
+ * SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
  *
  * SPDX-License-Identifier: Apache-2.0
  */

+ 5 - 13
components/vfs/test/test_vfs_paths.c → components/vfs/test_apps/main/test_vfs_paths.c

@@ -1,16 +1,8 @@
-// Copyright 2015-2017 Espressif Systems (Shanghai) PTE LTD
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-//     http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
+/*
+ * SPDX-FileCopyrightText: 2015-2023 Espressif Systems (Shanghai) CO LTD
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ */
 
 #include <stdbool.h>
 #include <stdio.h>

+ 0 - 0
components/vfs/test/test_vfs_select.c → components/vfs/test_apps/main/test_vfs_select.c


+ 0 - 0
components/vfs/test/test_vfs_uart.c → components/vfs/test_apps/main/test_vfs_uart.c


+ 5 - 0
components/vfs/test_apps/partitions.csv

@@ -0,0 +1,5 @@
+# Name,     Type, SubType, Offset,   Size, Flags
+# Note: if you have increased the bootloader size, make sure to update the offsets to avoid overlap
+nvs,           data, nvs,      0x9000,  0x6000,
+factory,       0,    0,        0x10000, 1M
+flash_test,    data, fat,      ,        528K

+ 36 - 0
components/vfs/test_apps/pytest_vfs.py

@@ -0,0 +1,36 @@
+# SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD
+# SPDX-License-Identifier: CC0-1.0
+
+import pytest
+from pytest_embedded import Dut
+
+
+@pytest.mark.esp32c2
+@pytest.mark.esp32c3
+@pytest.mark.esp32c6
+@pytest.mark.esp32h2
+@pytest.mark.generic
+@pytest.mark.parametrize('config', [
+    'default',
+], indirect=True)
+def test_vfs_default(dut: Dut) -> None:
+    dut.run_all_single_board_cases()
+
+
+@pytest.mark.esp32
+@pytest.mark.esp32s2
+@pytest.mark.generic
+@pytest.mark.parametrize('config', [
+    'ccomp',
+], indirect=True)
+def test_vfs_ccomp(dut: Dut) -> None:
+    dut.run_all_single_board_cases()
+
+
+@pytest.mark.esp32s3
+@pytest.mark.quad_psram
+@pytest.mark.parametrize('config', [
+    'psram',
+], indirect=True)
+def test_vfs_psram(dut: Dut) -> None:
+    dut.run_all_single_board_cases()

+ 1 - 0
components/vfs/test_apps/sdkconfig.ci.ccomp

@@ -0,0 +1 @@
+CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_240=y

+ 0 - 0
components/vfs/test_apps/sdkconfig.ci.default


+ 3 - 0
components/vfs/test_apps/sdkconfig.ci.psram

@@ -0,0 +1,3 @@
+CONFIG_SPIRAM=y
+CONFIG_SPIRAM_MALLOC_ALWAYSINTERNAL=0
+CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_240=y

+ 9 - 0
components/vfs/test_apps/sdkconfig.defaults

@@ -0,0 +1,9 @@
+# Enable Unity fixture support
+CONFIG_UNITY_ENABLE_FIXTURE=n
+CONFIG_UNITY_ENABLE_IDF_TEST_RUNNER=y
+
+# Custom partition table for this test app
+CONFIG_PARTITION_TABLE_CUSTOM=y
+CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions.csv"
+
+CONFIG_ESP_TASK_WDT_INIT=n

+ 1 - 0
components/vfs/test_apps/sdkconfig.defaults.esp32

@@ -0,0 +1 @@
+CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_240=y

+ 1 - 1
tools/unit-test-app/configs/default_2

@@ -1,3 +1,3 @@
 # This config is split between targets since different component needs to be excluded (esp32, esp32s2)
 CONFIG_IDF_TARGET="esp32"
-TEST_EXCLUDE_COMPONENTS=bt driver soc spi_flash vfs test_utils
+TEST_EXCLUDE_COMPONENTS=bt driver soc spi_flash test_utils

+ 1 - 1
tools/unit-test-app/configs/default_2_c3

@@ -1,3 +1,3 @@
 # This config is split between targets since different component needs to be excluded
 CONFIG_IDF_TARGET="esp32c3"
-TEST_EXCLUDE_COMPONENTS=bt driver soc spi_flash vfs lwip spiffs perfmon test_utils
+TEST_EXCLUDE_COMPONENTS=bt driver soc spi_flash lwip spiffs perfmon test_utils

+ 1 - 1
tools/unit-test-app/configs/default_2_s2

@@ -1,3 +1,3 @@
 # This config is split between targets since different component needs to be excluded (esp32, esp32s2)
 CONFIG_IDF_TARGET="esp32s2"
-TEST_EXCLUDE_COMPONENTS=bt driver soc spi_flash vfs
+TEST_EXCLUDE_COMPONENTS=bt driver soc spi_flash

+ 1 - 1
tools/unit-test-app/configs/default_2_s3

@@ -1,3 +1,3 @@
 # This config is split between targets since different component needs to be excluded (esp32, esp32s2)
 CONFIG_IDF_TARGET="esp32s3"
-TEST_EXCLUDE_COMPONENTS=bt esp32s3 driver soc spi_flash vfs test_utils
+TEST_EXCLUDE_COMPONENTS=bt esp32s3 driver soc spi_flash test_utils

+ 1 - 1
tools/unit-test-app/configs/default_32_2

@@ -1,3 +1,3 @@
 # continue from default
 CONFIG_IDF_TARGET="esp32"
-TEST_COMPONENTS=spi_flash vfs
+TEST_COMPONENTS=spi_flash

+ 1 - 1
tools/unit-test-app/configs/default_3_c2

@@ -1,3 +1,3 @@
 # This config is split between targets since different component needs to be included
 CONFIG_IDF_TARGET="esp32c2"
-TEST_EXCLUDE_COMPONENTS=app_trace esp_eth esp_hid esp_netif esp_phy esp_ringbuf esp_wifi espcoredump hal lwip mdns newlib nvs_flash partition_table sdmmc driver soc spi_flash vfs
+TEST_EXCLUDE_COMPONENTS=app_trace esp_eth esp_hid esp_netif esp_phy esp_ringbuf esp_wifi espcoredump hal lwip mdns newlib nvs_flash partition_table sdmmc driver soc spi_flash

+ 1 - 1
tools/unit-test-app/configs/default_3_c3

@@ -1,3 +1,3 @@
 # This config is split between targets since different component needs to be included
 CONFIG_IDF_TARGET="esp32c3"
-TEST_COMPONENTS=spi_flash vfs lwip
+TEST_COMPONENTS=spi_flash lwip

+ 1 - 1
tools/unit-test-app/configs/default_3_c6

@@ -1,3 +1,3 @@
 # This config is split between targets since different component needs to be included
 CONFIG_IDF_TARGET="esp32c6"
-TEST_EXCLUDE_COMPONENTS=app_trace esp_eth esp_hid esp_netif esp_phy esp_ringbuf esp_wifi espcoredump hal lwip mdns newlib nvs_flash partition_table sdmmc driver soc spi_flash vfs
+TEST_EXCLUDE_COMPONENTS=app_trace esp_eth esp_hid esp_netif esp_phy esp_ringbuf esp_wifi espcoredump hal lwip mdns newlib nvs_flash partition_table sdmmc driver soc spi_flash

+ 1 - 1
tools/unit-test-app/configs/default_3_h2

@@ -1,3 +1,3 @@
 # This config is split between targets since different component needs to be included
 CONFIG_IDF_TARGET="esp32h2"
-TEST_EXCLUDE_COMPONENTS=app_trace esp_eth esp_hid esp_netif esp_phy esp_ringbuf esp_wifi espcoredump hal lwip mdns newlib nvs_flash partition_table sdmmc driver soc spi_flash vfs
+TEST_EXCLUDE_COMPONENTS=app_trace esp_eth esp_hid esp_netif esp_phy esp_ringbuf esp_wifi espcoredump hal lwip mdns newlib nvs_flash partition_table sdmmc driver soc spi_flash

+ 1 - 1
tools/unit-test-app/configs/default_c2

@@ -1,3 +1,3 @@
 # This config is split between targets since different component needs to be included
 CONFIG_IDF_TARGET="esp32c2"
-TEST_COMPONENTS= soc spi_flash vfs
+TEST_COMPONENTS= soc spi_flash

+ 1 - 1
tools/unit-test-app/configs/default_c6

@@ -1,3 +1,3 @@
 # This config is split between targets since different component needs to be included
 CONFIG_IDF_TARGET="esp32c6"
-TEST_COMPONENTS=spi_flash vfs
+TEST_COMPONENTS=spi_flash

+ 1 - 1
tools/unit-test-app/configs/default_h2

@@ -1,3 +1,3 @@
 # This config is split between targets since different component needs to be included
 CONFIG_IDF_TARGET="esp32h2"
-TEST_COMPONENTS=spi_flash vfs
+TEST_COMPONENTS=spi_flash

+ 1 - 1
tools/unit-test-app/configs/default_s2_2

@@ -1,3 +1,3 @@
 # This config is split between targets since different component needs to be included (esp32, esp32s2)
 CONFIG_IDF_TARGET="esp32s2"
-TEST_COMPONENTS=spi_flash vfs
+TEST_COMPONENTS=spi_flash

+ 1 - 1
tools/unit-test-app/configs/default_s3

@@ -1,3 +1,3 @@
 # This config is split between targets since different component needs to be included
 CONFIG_IDF_TARGET="esp32s3"
-TEST_COMPONENTS=spi_flash vfs
+TEST_COMPONENTS=spi_flash

+ 1 - 1
tools/unit-test-app/configs/release

@@ -1,5 +1,5 @@
 CONFIG_IDF_TARGET="esp32"
-TEST_COMPONENTS=driver soc spi_flash vfs
+TEST_COMPONENTS=driver soc spi_flash
 CONFIG_COMPILER_OPTIMIZATION_SIZE=y
 CONFIG_BOOTLOADER_COMPILER_OPTIMIZATION_SIZE=y
 CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_SILENT=y

+ 1 - 1
tools/unit-test-app/configs/release_2

@@ -1,6 +1,6 @@
 # This config is split between targets since different component needs to be included (esp32, esp32s2)
 CONFIG_IDF_TARGET="esp32"
-TEST_EXCLUDE_COMPONENTS=bt driver soc spi_flash vfs test_utils
+TEST_EXCLUDE_COMPONENTS=bt driver soc spi_flash test_utils
 CONFIG_COMPILER_OPTIMIZATION_SIZE=y
 CONFIG_BOOTLOADER_COMPILER_OPTIMIZATION_SIZE=y
 CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_SILENT=y

+ 1 - 1
tools/unit-test-app/configs/release_2_s2

@@ -1,6 +1,6 @@
 # This config is split between targets since different component needs to be excluded (esp32, esp32s2)
 CONFIG_IDF_TARGET="esp32s2"
-TEST_EXCLUDE_COMPONENTS=bt driver soc spi_flash vfs test_utils
+TEST_EXCLUDE_COMPONENTS=bt driver soc spi_flash test_utils
 CONFIG_COMPILER_OPTIMIZATION_SIZE=y
 CONFIG_BOOTLOADER_COMPILER_OPTIMIZATION_SIZE=y
 CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_SILENT=y

+ 1 - 1
tools/unit-test-app/configs/release_c2

@@ -1,5 +1,5 @@
 CONFIG_IDF_TARGET="esp32c2"
-TEST_COMPONENTS=spi_flash vfs sdmmc
+TEST_COMPONENTS=spi_flash sdmmc
 CONFIG_COMPILER_OPTIMIZATION_SIZE=y
 CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_SILENT=y
 CONFIG_BOOTLOADER_COMPILER_OPTIMIZATION_SIZE=y

+ 1 - 1
tools/unit-test-app/configs/release_c3_2

@@ -1,5 +1,5 @@
 CONFIG_IDF_TARGET="esp32c3"
-TEST_COMPONENTS=spi_flash vfs sdmmc
+TEST_COMPONENTS=spi_flash sdmmc
 CONFIG_COMPILER_OPTIMIZATION_SIZE=y
 CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_SILENT=y
 CONFIG_BOOTLOADER_COMPILER_OPTIMIZATION_SIZE=y

+ 1 - 1
tools/unit-test-app/configs/release_c6

@@ -1,5 +1,5 @@
 CONFIG_IDF_TARGET="esp32c6"
-TEST_COMPONENTS=esp_ipc spi_flash vfs sdmmc
+TEST_COMPONENTS=esp_ipc spi_flash sdmmc
 CONFIG_COMPILER_OPTIMIZATION_SIZE=y
 CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_SILENT=y
 CONFIG_BOOTLOADER_COMPILER_OPTIMIZATION_SIZE=y

+ 1 - 1
tools/unit-test-app/configs/release_h2

@@ -1,5 +1,5 @@
 CONFIG_IDF_TARGET="esp32h2"
-TEST_COMPONENTS=esp_ipc spi_flash vfs sdmmc
+TEST_COMPONENTS=esp_ipc spi_flash sdmmc
 CONFIG_COMPILER_OPTIMIZATION_SIZE=y
 CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_SILENT=y
 CONFIG_BOOTLOADER_COMPILER_OPTIMIZATION_SIZE=y

+ 1 - 1
tools/unit-test-app/configs/release_s2

@@ -1,6 +1,6 @@
 # This config is split between targets since different component needs to be included (esp32, esp32s2)
 CONFIG_IDF_TARGET="esp32s2"
-TEST_COMPONENTS=spi_flash vfs
+TEST_COMPONENTS=spi_flash
 CONFIG_COMPILER_OPTIMIZATION_SIZE=y
 CONFIG_BOOTLOADER_COMPILER_OPTIMIZATION_SIZE=y
 CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_SILENT=y

+ 1 - 1
tools/unit-test-app/configs/release_s3

@@ -1,5 +1,5 @@
 CONFIG_IDF_TARGET="esp32s3"
-TEST_COMPONENTS=spi_flash vfs
+TEST_COMPONENTS=spi_flash
 CONFIG_COMPILER_OPTIMIZATION_SIZE=y
 CONFIG_BOOTLOADER_COMPILER_OPTIMIZATION_SIZE=y
 CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_SILENT=y

+ 1 - 1
tools/unit-test-app/configs/single_core

@@ -1,6 +1,6 @@
 # This config is split between targets since different component needs to be included (esp32, esp32s2)
 CONFIG_IDF_TARGET="esp32"
-TEST_COMPONENTS=spi_flash vfs
+TEST_COMPONENTS=spi_flash
 CONFIG_FREERTOS_UNICORE=y
 CONFIG_ESP32_IRAM_AS_8BIT_ACCESSIBLE_MEMORY=y
 CONFIG_ESP32_RTCDATA_IN_FAST_MEM=y

+ 1 - 1
tools/unit-test-app/configs/single_core_2

@@ -1,5 +1,5 @@
 # This config is split between targets since different component needs to be excluded (esp32, esp32s2)
 CONFIG_IDF_TARGET="esp32"
-TEST_EXCLUDE_COMPONENTS=bt driver soc spi_flash vfs test_utils
+TEST_EXCLUDE_COMPONENTS=bt driver soc spi_flash test_utils
 CONFIG_FREERTOS_UNICORE=y
 CONFIG_ESP32_RTCDATA_IN_FAST_MEM=y

+ 1 - 1
tools/unit-test-app/configs/single_core_2_s2

@@ -1,5 +1,5 @@
 # This config is split between targets since different component needs to be excluded (esp32, esp32s2)
 CONFIG_IDF_TARGET="esp32s2"
-TEST_EXCLUDE_COMPONENTS=bt driver soc spi_flash vfs
+TEST_EXCLUDE_COMPONENTS=bt driver soc spi_flash
 CONFIG_FREERTOS_UNICORE=y
 CONFIG_ESP32S2_RTCDATA_IN_FAST_MEM=y