forked from espressif/esp-idf
change(bootloader): enable tests for P4 and QEMU
This commit is contained in:
@@ -22,7 +22,7 @@
|
|||||||
#include "esp_ota_ops.h"
|
#include "esp_ota_ops.h"
|
||||||
#include "esp_image_format.h"
|
#include "esp_image_format.h"
|
||||||
|
|
||||||
TEST_CASE("Verify bootloader image in flash", "[bootloader_support][qemu-ignore-c3]")
|
TEST_CASE("Verify bootloader image in flash", "[bootloader_support]")
|
||||||
{
|
{
|
||||||
const esp_partition_pos_t fake_bootloader_partition = {
|
const esp_partition_pos_t fake_bootloader_partition = {
|
||||||
.offset = ESP_BOOTLOADER_OFFSET,
|
.offset = ESP_BOOTLOADER_OFFSET,
|
||||||
@@ -37,7 +37,7 @@ TEST_CASE("Verify bootloader image in flash", "[bootloader_support][qemu-ignore-
|
|||||||
TEST_ASSERT_EQUAL(data.image_len, bootloader_length);
|
TEST_ASSERT_EQUAL(data.image_len, bootloader_length);
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_CASE("Verify unit test app image", "[bootloader_support][qemu-ignore-c3]")
|
TEST_CASE("Verify unit test app image", "[bootloader_support]")
|
||||||
{
|
{
|
||||||
esp_image_metadata_t data = { 0 };
|
esp_image_metadata_t data = { 0 };
|
||||||
const esp_partition_t *running = esp_ota_get_running_partition();
|
const esp_partition_t *running = esp_ota_get_running_partition();
|
||||||
|
@@ -12,5 +12,6 @@ from pytest_embedded import Dut
|
|||||||
@pytest.mark.esp32h2
|
@pytest.mark.esp32h2
|
||||||
@pytest.mark.esp32s2
|
@pytest.mark.esp32s2
|
||||||
@pytest.mark.esp32s3
|
@pytest.mark.esp32s3
|
||||||
|
@pytest.mark.esp32p4
|
||||||
def test_rtc_reserved_memory(dut: Dut) -> None:
|
def test_rtc_reserved_memory(dut: Dut) -> None:
|
||||||
dut.expect_exact('SUCCESS: data were saved across reboot', timeout=10)
|
dut.expect_exact('SUCCESS: data were saved across reboot', timeout=10)
|
||||||
|
Reference in New Issue
Block a user