From c472e2e9afa94e7fb88d47796cda750d350d2f88 Mon Sep 17 00:00:00 2001 From: Zim Kalinowski Date: Tue, 20 Jun 2023 16:18:45 +0200 Subject: [PATCH] esp_event: enable qemu tests --- components/esp_event/test_apps/main/test_event.c | 4 ++-- components/esp_event/test_apps/pytest_esp_event.py | 11 +++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/components/esp_event/test_apps/main/test_event.c b/components/esp_event/test_apps/main/test_event.c index 1221bfab66..3caef2a921 100644 --- a/components/esp_event/test_apps/main/test_event.c +++ b/components/esp_event/test_apps/main/test_event.c @@ -1538,12 +1538,12 @@ static void performance_test(bool dedicated_task) #endif // CONFIG_ESP_EVENT_LOOP_PROFILING } -TEST_CASE("performance test - dedicated task", "[event]") +TEST_CASE("performance test - dedicated task", "[event][qemu-ignore]") { performance_test(true); } -TEST_CASE("performance test - no dedicated task", "[event]") +TEST_CASE("performance test - no dedicated task", "[event][qemu-ignore]") { performance_test(false); } diff --git a/components/esp_event/test_apps/pytest_esp_event.py b/components/esp_event/test_apps/pytest_esp_event.py index 207b00b686..d907407926 100644 --- a/components/esp_event/test_apps/pytest_esp_event.py +++ b/components/esp_event/test_apps/pytest_esp_event.py @@ -9,5 +9,16 @@ from pytest_embedded import Dut @pytest.mark.esp32s2 @pytest.mark.esp32c3 @pytest.mark.generic +@pytest.mark.nightly_run def test_esp_event(dut: Dut) -> None: dut.run_all_single_board_cases() + + +@pytest.mark.esp32 +@pytest.mark.esp32c3 +@pytest.mark.host_test +@pytest.mark.qemu +def test_esp_event_qemu(dut: Dut) -> None: + for case in dut.test_menu: + if 'qemu-ignore' not in case.groups and not case.is_ignored and case.type == 'normal': + dut._run_normal_case(case)