mirror of
https://github.com/espressif/esp-idf.git
synced 2026-04-27 19:13:21 +00:00
Merge branch 'fix/ci_wifi_unit_test' into 'master'
ci: fix wifi unit test nvs_config See merge request espressif/esp-idf!46807
This commit is contained in:
@@ -21,8 +21,6 @@ components/esp_wifi/test_apps/:
|
||||
components/esp_wifi/test_apps/wifi_nvs_config:
|
||||
disable:
|
||||
- if: SOC_WIFI_SUPPORTED != 1
|
||||
disable_test:
|
||||
- if: IDF_TARGET != "esp32c2"
|
||||
depends_components:
|
||||
- esp_hw_support
|
||||
- esp_rom
|
||||
|
||||
@@ -9,13 +9,13 @@ set(COMPONENTS main)
|
||||
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||
|
||||
if($ENV{CI_PIPELINE_ID})
|
||||
idf_build_set_property(COMPILE_DEFINITIONS TEST_SUFFIX_STR="_$ENV{CI_PIPELINE_ID}" APPEND)
|
||||
idf_build_set_property(COMPILE_DEFINITIONS TEST_SUFFIX_STR="_${IDF_TARGET}_$ENV{CI_PIPELINE_ID}" APPEND)
|
||||
endif()
|
||||
|
||||
if(DEFINED ENV{CI_PIPELINE_ID})
|
||||
set(TEST_SUFFIX_STR "_$ENV{CI_PIPELINE_ID}")
|
||||
set(TEST_SUFFIX_STR "_${IDF_TARGET}_$ENV{CI_PIPELINE_ID}")
|
||||
else()
|
||||
string(TIMESTAMP TEST_SUFFIX_STR "%Y%m%d%H%M%S")
|
||||
string(TIMESTAMP TEST_SUFFIX_STR "_${IDF_TARGET}_%Y%m%d%H%M%S")
|
||||
endif()
|
||||
|
||||
execute_process(
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
// #define TEST_MEMORY_LEAK_THRESHOLD (-1546)
|
||||
// With PSA Migration, there is an increase in memory usage.
|
||||
// TODO: Check why this is happening and fix it.
|
||||
#define TEST_MEMORY_LEAK_THRESHOLD (-1850)
|
||||
#define TEST_MEMORY_LEAK_THRESHOLD (-2560)
|
||||
|
||||
static size_t before_free_8bit;
|
||||
static size_t before_free_32bit;
|
||||
|
||||
@@ -5,6 +5,17 @@ from pytest_embedded_idf.unity_tester import CaseTester
|
||||
from pytest_embedded_idf.utils import idf_parametrize
|
||||
|
||||
|
||||
@pytest.mark.two_duts
|
||||
@pytest.mark.parametrize('count', [2], indirect=True)
|
||||
@idf_parametrize(
|
||||
'target',
|
||||
['esp32', 'esp32c3', 'esp32c5', 'esp32c6', 'esp32c61', 'esp32s2', 'esp32s3'],
|
||||
indirect=['target'],
|
||||
)
|
||||
def test_wifi_nvs_connect_cases(case_tester: CaseTester) -> None: # type: ignore
|
||||
case_tester.run_all_cases()
|
||||
|
||||
|
||||
@pytest.mark.two_duts
|
||||
@pytest.mark.xtal_26mhz
|
||||
@pytest.mark.parametrize(
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
# build for config: default
|
||||
Reference in New Issue
Block a user