forked from espressif/esp-idf
Merge branch 'feature/qemu-bootloader-support' into 'master'
bootloader_support: Enable tests on QEMU (ESP32 and ESP32C3) Closes IDF-7335 See merge request espressif/esp-idf!21416
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]")
|
TEST_CASE("Verify bootloader image in flash", "[bootloader_support][qemu-ignore-c3]")
|
||||||
{
|
{
|
||||||
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]")
|
|||||||
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]")
|
TEST_CASE("Verify unit test app image", "[bootloader_support][qemu-ignore-c3]")
|
||||||
{
|
{
|
||||||
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();
|
||||||
|
@@ -7,5 +7,22 @@ from pytest_embedded import Dut
|
|||||||
|
|
||||||
@pytest.mark.generic
|
@pytest.mark.generic
|
||||||
@pytest.mark.supported_targets
|
@pytest.mark.supported_targets
|
||||||
|
@pytest.mark.nightly_run
|
||||||
def test_bootloader_support(dut: Dut) -> None:
|
def test_bootloader_support(dut: Dut) -> None:
|
||||||
dut.run_all_single_board_cases()
|
dut.run_all_single_board_cases()
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.host_test
|
||||||
|
@pytest.mark.qemu
|
||||||
|
@pytest.mark.esp32
|
||||||
|
def test_bootloader_support_qemu_esp32(dut: Dut) -> None:
|
||||||
|
dut.run_all_single_board_cases()
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.host_test
|
||||||
|
@pytest.mark.qemu
|
||||||
|
@pytest.mark.esp32c3
|
||||||
|
def test_bootloader_support_qemu_esp32c3(dut: Dut) -> None:
|
||||||
|
for case in dut.test_menu:
|
||||||
|
if 'qemu-ignore-c3' not in case.groups:
|
||||||
|
dut._run_normal_case(case)
|
||||||
|
Reference in New Issue
Block a user