forked from espressif/esp-idf
Merge branch 'bugfix/pthread-improve-qemu-test' into 'master'
pthread: updated qemu test scripts Closes IDFCI-1559 and IDFCI-1701 See merge request espressif/esp-idf!24159
This commit is contained in:
@@ -34,8 +34,8 @@ void setUp(void)
|
|||||||
|
|
||||||
void tearDown(void)
|
void tearDown(void)
|
||||||
{
|
{
|
||||||
// Add a short delay of 100ms to allow the idle task to free an remaining memory
|
// Add a short delay of 200ms to allow the idle task to free remaining memory
|
||||||
vTaskDelay(pdMS_TO_TICKS(100));
|
vTaskDelay(pdMS_TO_TICKS(200));
|
||||||
size_t after_free_8bit = heap_caps_get_free_size(MALLOC_CAP_8BIT);
|
size_t after_free_8bit = heap_caps_get_free_size(MALLOC_CAP_8BIT);
|
||||||
size_t after_free_32bit = heap_caps_get_free_size(MALLOC_CAP_32BIT);
|
size_t after_free_32bit = heap_caps_get_free_size(MALLOC_CAP_32BIT);
|
||||||
check_leak(before_free_8bit, after_free_8bit, "8BIT");
|
check_leak(before_free_8bit, after_free_8bit, "8BIT");
|
||||||
|
@@ -1,8 +1,6 @@
|
|||||||
# SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
|
# SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
|
||||||
# SPDX-License-Identifier: CC0-1.0
|
# SPDX-License-Identifier: CC0-1.0
|
||||||
|
|
||||||
from time import sleep
|
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
from pytest_embedded import Dut
|
from pytest_embedded import Dut
|
||||||
|
|
||||||
@@ -66,11 +64,10 @@ def test_pthread_single_core_tls(dut: Dut) -> None:
|
|||||||
dut.expect_unity_test_output(timeout=300)
|
dut.expect_unity_test_output(timeout=300)
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.host_test
|
||||||
@pytest.mark.qemu
|
@pytest.mark.qemu
|
||||||
@pytest.mark.esp32
|
@pytest.mark.esp32
|
||||||
def test_pthread_qemu(dut: Dut) -> None:
|
def test_pthread_qemu(dut: Dut) -> None:
|
||||||
dut.expect_exact('Press ENTER to see the list of tests')
|
for case in dut.test_menu:
|
||||||
# dut may not be ready to accept input, so adding the delay until handled in pytest embedded (RDT-328)
|
if 'qemu-ignore' not in case.groups and case.type == 'normal':
|
||||||
sleep(1)
|
dut._run_normal_case(case, timeout=75)
|
||||||
dut.write('![qemu-ignore]')
|
|
||||||
dut.expect_unity_test_output(timeout=300)
|
|
||||||
|
Reference in New Issue
Block a user