Skip to content

Commit 5a9dc6f

Browse files
authored
Merge branch 'espressif:release/v5.2' into release/v5.2
2 parents f21d262 + 0bdb71f commit 5a9dc6f

File tree

379 files changed

+8270
-2939
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

379 files changed

+8270
-2939
lines changed

components/app_update/test_apps/.build-test-rules.yml

Lines changed: 0 additions & 7 deletions
This file was deleted.

components/app_update/test_apps/pytest_app_update_ut.py

Lines changed: 0 additions & 32 deletions
This file was deleted.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Documentation: .gitlab/ci/README.md#manifest-file-to-control-the-buildtest-apps
2+
3+
components/app_update/test_apps:
4+
enable:
5+
- if: CONFIG_NAME == "defaults" and IDF_TARGET != "linux"
6+
- if: CONFIG_NAME == "xip_psram" and IDF_TARGET in ["esp32s2", "esp32s3"]
7+
# S2 doesn't have ROM for flash
8+
- if: CONFIG_NAME == "xip_psram_with_rom_impl" and IDF_TARGET in ["esp32s3"]
9+
disable:
10+
- if: IDF_TARGET in ["esp32c6", "esp32h2", "esp32p4"]
11+
temporary: true
12+
reason: target esp32c6, esp32h2 are not supported yet # TODO: IDF-8068

components/app_update/test_apps/CMakeLists.txt renamed to components/app_update/test_apps/test_app_update/CMakeLists.txt

File renamed without changes.
File renamed without changes.

components/app_update/test_apps/main/CMakeLists.txt renamed to components/app_update/test_apps/test_app_update/main/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
idf_component_register(SRC_DIRS "."
22
PRIV_INCLUDE_DIRS "."
3-
PRIV_REQUIRES cmock test_utils app_update bootloader_support nvs_flash driver spi_flash
3+
PRIV_REQUIRES cmock test_utils app_update bootloader_support nvs_flash driver spi_flash esp_psram
44
WHOLE_ARCHIVE)

components/app_update/test_apps/main/app_main.c renamed to components/app_update/test_apps/test_app_update/main/app_main.c

File renamed without changes.

components/app_update/test_apps/main/test_ota_ops.c renamed to components/app_update/test_apps/test_app_update/main/test_ota_ops.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#include <stdio.h>
77
#include <stdlib.h>
88
#include <string.h>
9+
#include "esp_log.h"
910
#include <freertos/FreeRTOS.h>
1011
#include <freertos/task.h>
1112
#include <freertos/semphr.h>
@@ -113,3 +114,11 @@ TEST_CASE("esp_ota_get_partition_description", "[ota]")
113114
};
114115
TEST_ESP_ERR(ESP_ERR_NOT_FOUND, bootloader_common_get_partition_description(&not_app_pos, &app_desc1));
115116
}
117+
118+
TEST_CASE("esp_ota_get_running_partition points to correct address", "[spi_flash]")
119+
{
120+
const esp_partition_t *factory = esp_partition_find_first(ESP_PARTITION_TYPE_APP, ESP_PARTITION_SUBTYPE_ANY, "factory");
121+
const esp_partition_t* part = esp_ota_get_running_partition();
122+
ESP_LOGI("running bin", "0x%p", (void*)part->address);
123+
TEST_ASSERT_EQUAL_HEX32(factory->address, part->address);
124+
}

components/app_update/test_apps/main/test_switch_ota.c renamed to components/app_update/test_apps/test_app_update/main/test_switch_ota.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -842,7 +842,7 @@ static void test_flow6(void)
842842
TEST_CASE_MULTIPLE_STAGES("Switching between factory, OTA0 using esp_ota_write_with_offset", "[app_update][timeout=90][reset=DEEPSLEEP_RESET, DEEPSLEEP_RESET]", start_test, test_flow6, test_flow6);
843843

844844
//IDF-5145
845-
TEST_CASE("Test bootloader_common_get_sha256_of_partition returns ESP_ERR_IMAGE_INVALID when image is ivalid", "[partitions]")
845+
TEST_CASE("Test bootloader_common_get_sha256_of_partition returns ESP_ERR_IMAGE_INVALID when image is invalid", "[partitions]")
846846
{
847847
const esp_partition_t *cur_app = esp_ota_get_running_partition();
848848
ESP_LOGI(TAG, "copy current app to next part");

components/app_update/test_apps/partition_table_unit_test_two_ota.csv renamed to components/app_update/test_apps/test_app_update/partition_table_unit_test_two_ota.csv

File renamed without changes.

0 commit comments

Comments
 (0)