mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 11:10:54 +03:00
Merge branch 'fix/ci_wifi_unit_test_6.0' into 'release/v6.0'
ci: fix wifi unit test nvs_config See merge request espressif/esp-idf!46866
This commit is contained in:
@@ -21,8 +21,6 @@ components/esp_wifi/test_apps/:
|
|||||||
components/esp_wifi/test_apps/wifi_nvs_config:
|
components/esp_wifi/test_apps/wifi_nvs_config:
|
||||||
disable:
|
disable:
|
||||||
- if: SOC_WIFI_SUPPORTED != 1
|
- if: SOC_WIFI_SUPPORTED != 1
|
||||||
disable_test:
|
|
||||||
- if: IDF_TARGET != "esp32c2"
|
|
||||||
depends_components:
|
depends_components:
|
||||||
- esp_hw_support
|
- esp_hw_support
|
||||||
- esp_rom
|
- esp_rom
|
||||||
|
|||||||
@@ -9,13 +9,13 @@ set(COMPONENTS main)
|
|||||||
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||||
|
|
||||||
if($ENV{CI_PIPELINE_ID})
|
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()
|
endif()
|
||||||
|
|
||||||
if(DEFINED ENV{CI_PIPELINE_ID})
|
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()
|
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()
|
endif()
|
||||||
|
|
||||||
execute_process(
|
execute_process(
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
// #define TEST_MEMORY_LEAK_THRESHOLD (-1546)
|
// #define TEST_MEMORY_LEAK_THRESHOLD (-1546)
|
||||||
// With PSA Migration, there is an increase in memory usage.
|
// With PSA Migration, there is an increase in memory usage.
|
||||||
// TODO: Check why this is happening and fix it.
|
// 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_8bit;
|
||||||
static size_t before_free_32bit;
|
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
|
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.two_duts
|
||||||
@pytest.mark.xtal_26mhz
|
@pytest.mark.xtal_26mhz
|
||||||
@pytest.mark.parametrize(
|
@pytest.mark.parametrize(
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
# build for config: default
|
||||||
Reference in New Issue
Block a user