diff --git a/tools/unit-test-app/configs/app_update_c2 b/tools/unit-test-app/configs/app_update_c2 new file mode 100644 index 0000000000..c912e5627f --- /dev/null +++ b/tools/unit-test-app/configs/app_update_c2 @@ -0,0 +1,15 @@ +# This config is split between targets since different component needs to be excluded (esp32, esp32s2) +CONFIG_IDF_TARGET="esp32c2" +TEST_COMPONENTS=app_update +TEST_EXCLUDE_COMPONENTS=bt +CONFIG_UNITY_FREERTOS_STACK_SIZE=12288 +CONFIG_PARTITION_TABLE_CUSTOM=y +CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partition_table_unit_test_two_ota_2m.csv" +CONFIG_PARTITION_TABLE_FILENAME="partition_table_unit_test_two_ota_2m.csv" +CONFIG_PARTITION_TABLE_OFFSET=0x18000 +CONFIG_BOOTLOADER_FACTORY_RESET=y +CONFIG_BOOTLOADER_APP_TEST=y +CONFIG_BOOTLOADER_HOLD_TIME_GPIO=2 +CONFIG_BOOTLOADER_OTA_DATA_ERASE=y +CONFIG_BOOTLOADER_NUM_PIN_FACTORY_RESET=4 +CONFIG_BOOTLOADER_NUM_PIN_APP_TEST=18 diff --git a/tools/unit-test-app/configs/default_2_c2 b/tools/unit-test-app/configs/default_2_c2 new file mode 100644 index 0000000000..b5b89f39c6 --- /dev/null +++ b/tools/unit-test-app/configs/default_2_c2 @@ -0,0 +1,3 @@ +# This config is split between targets since different component needs to be included +CONFIG_IDF_TARGET="esp32c2" +TEST_COMPONENTS=app_trace bootloader_support console efuse esp_common esp_eth esp_event esp_hid esp_http_client esp_http_server esp_netif esp_phy esp_ringbuf esp_rom esp_wifi espcoredump hal lwip mbedtls mdns mqtt newlib nvs_flash partition_table protocomm sdmmc spiffs diff --git a/tools/unit-test-app/configs/default_3_c2 b/tools/unit-test-app/configs/default_3_c2 new file mode 100644 index 0000000000..af8e5fbf11 --- /dev/null +++ b/tools/unit-test-app/configs/default_3_c2 @@ -0,0 +1,3 @@ +# This config is split between targets since different component needs to be included +CONFIG_IDF_TARGET="esp32c2" +TEST_EXCLUDE_COMPONENTS=app_trace bootloader_support console efuse esp_common esp_eth esp_event esp_hid esp_http_client esp_http_server esp_netif esp_phy esp_ringbuf esp_rom esp_wifi espcoredump hal lwip mbedtls mdns mqtt newlib nvs_flash partition_table protocomm sdmmc spiffs freertos esp_hw_support esp_ipc esp_system esp_timer driver heap pthread soc spi_flash vfs diff --git a/tools/unit-test-app/configs/default_c2 b/tools/unit-test-app/configs/default_c2 new file mode 100644 index 0000000000..d99387e17e --- /dev/null +++ b/tools/unit-test-app/configs/default_c2 @@ -0,0 +1,3 @@ +# This config is split between targets since different component needs to be included +CONFIG_IDF_TARGET="esp32c2" +TEST_COMPONENTS=freertos esp_hw_support esp_ipc esp_system esp_timer driver heap pthread soc spi_flash vfs diff --git a/tools/unit-test-app/configs/freertos_compliance_c2 b/tools/unit-test-app/configs/freertos_compliance_c2 new file mode 100644 index 0000000000..f7db24d8b6 --- /dev/null +++ b/tools/unit-test-app/configs/freertos_compliance_c2 @@ -0,0 +1,4 @@ +# This config is split between targets since different component needs to be included (esp32, esp32s2) +CONFIG_IDF_TARGET="esp32c2" +TEST_COMPONENTS=driver esp_hw_support esp_system esp_timer spi_flash +CONFIG_FREERTOS_CHECK_PORT_CRITICAL_COMPLIANCE=y diff --git a/tools/unit-test-app/configs/freertos_options_c2 b/tools/unit-test-app/configs/freertos_options_c2 new file mode 100644 index 0000000000..53b3026581 --- /dev/null +++ b/tools/unit-test-app/configs/freertos_options_c2 @@ -0,0 +1,22 @@ +# This is a small set of tests where we enable as many as possible of the optional features +# in FreeRTOS that are gated behind config + +CONFIG_IDF_TARGET="esp32c2" +TEST_COMPONENTS=freertos + +CONFIG_FREERTOS_CORETIMER_1=y +CONFIG_FREERTOS_OPTIMIZED_SCHEDULER=n +CONFIG_FREERTOS_HZ=500 +CONFIG_FREERTOS_CHECK_STACKOVERFLOW_PTRVAL=y +CONFIG_FREERTOS_WATCHPOINT_END_OF_STACK=y +CONFIG_FREERTOS_INTERRUPT_BACKTRACE=n +CONFIG_FREERTOS_LEGACY_HOOKS=y +CONFIG_FREERTOS_SUPPORT_STATIC_ALLOCATION=y +CONFIG_FREERTOS_ENABLE_STATIC_TASK_CLEAN_UP=y +CONFIG_FREERTOS_QUEUE_REGISTRY_SIZE=10 +CONFIG_FREERTOS_USE_TRACE_FACILITY=y +CONFIG_FREERTOS_USE_STATS_FORMATTING_FUNCTIONS=y +CONFIG_FREERTOS_VTASKLIST_INCLUDE_COREID=y +CONFIG_FREERTOS_GENERATE_RUN_TIME_STATS=y +CONFIG_FREERTOS_PLACE_FUNCTIONS_INTO_FLASH=y +CONFIG_FREERTOS_FPU_IN_ISR=y diff --git a/tools/unit-test-app/configs/heap_light_poison_c2 b/tools/unit-test-app/configs/heap_light_poison_c2 new file mode 100644 index 0000000000..1c165b4765 --- /dev/null +++ b/tools/unit-test-app/configs/heap_light_poison_c2 @@ -0,0 +1,4 @@ +CONFIG_IDF_TARGET="esp32c2" +TEST_COMPONENTS=heap +CONFIG_HEAP_POISONING_COMPREHENSIVE=n +CONFIG_HEAP_POISONING_LIGHT=y diff --git a/tools/unit-test-app/configs/no_optimization_c2 b/tools/unit-test-app/configs/no_optimization_c2 new file mode 100644 index 0000000000..c0d62b770c --- /dev/null +++ b/tools/unit-test-app/configs/no_optimization_c2 @@ -0,0 +1,3 @@ +CONFIG_IDF_TARGET="esp32c2" +TEST_COMPONENTS=esp_ipc spi_flash +CONFIG_COMPILER_OPTIMIZATION_NONE=y diff --git a/tools/unit-test-app/configs/pm_c2 b/tools/unit-test-app/configs/pm_c2 new file mode 100644 index 0000000000..47444a0932 --- /dev/null +++ b/tools/unit-test-app/configs/pm_c2 @@ -0,0 +1,4 @@ +CONFIG_IDF_TARGET="esp32c2" +TEST_COMPONENTS=esp_pm +CONFIG_PM_ENABLE=y +CONFIG_FREERTOS_USE_TICKLESS_IDLE=y diff --git a/tools/unit-test-app/configs/release_c2 b/tools/unit-test-app/configs/release_c2 new file mode 100644 index 0000000000..820ad4f26e --- /dev/null +++ b/tools/unit-test-app/configs/release_c2 @@ -0,0 +1,5 @@ +CONFIG_IDF_TARGET="esp32c2" +TEST_COMPONENTS=freertos esp_hw_support esp_system esp_ipc esp_timer driver heap pthread soc spi_flash vfs sdmmc +CONFIG_COMPILER_OPTIMIZATION_SIZE=y +CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_SILENT=y +CONFIG_BOOTLOADER_COMPILER_OPTIMIZATION_SIZE=y diff --git a/tools/unit-test-app/configs/rom_options_c2 b/tools/unit-test-app/configs/rom_options_c2 new file mode 100644 index 0000000000..6f1d16870c --- /dev/null +++ b/tools/unit-test-app/configs/rom_options_c2 @@ -0,0 +1,3 @@ +CONFIG_IDF_TARGET="esp32c2" +TEST_COMPONENTS=spi_flash +CONFIG_SPI_FLASH_ROM_IMPL=y diff --git a/tools/unit-test-app/partition_table_unit_test_two_ota_2m.csv b/tools/unit-test-app/partition_table_unit_test_two_ota_2m.csv new file mode 100644 index 0000000000..9c097b4fad --- /dev/null +++ b/tools/unit-test-app/partition_table_unit_test_two_ota_2m.csv @@ -0,0 +1,11 @@ +# Special partition table for unit test app_update +# Name, Type, SubType, Offset, Size, Flags +nvs, data, nvs, , 0x4000 +otadata, data, ota, , 0x2000 +phy_init, data, phy, , 0x1000 +factory, 0, 0, , 0x70000 +ota_0, 0, ota_0, , 0x70000 +ota_1, 0, ota_1, , 0x70000 +test, 0, test, , 0x70000 +# flash_test partition used for SPI flash tests, WL FAT tests, and SPIFFS tests +flash_test, data, fat, , 128K