mirror of
https://github.com/espressif/esp-idf.git
synced 2026-08-18 06:35:35 +03:00
refactor(nvs_flash): NVS Host tests cleaned-up and test cases commented
- Host test were refactored to allow for BDL and non-BDL NVS implementation - Introduceed `NVSPartitionTestHelper` class replacing `PartitionEmulationFixture` - Refactored all tests to use `NVSPartitionTestHelper` instead of legacy emulation fixture - Removed legacy `PartitionEmulationFixture` and `PartitionEmulationFixture2` classes - Removed `TEMPORARILY_DISABLED` macro usage by reducing partition size in applicable tests - Enhanced test coverage and readability with comments and validation steps for each TC - Added utility functions for partition stats tracking, file loading, and erase count check
This commit is contained in:
@@ -12,6 +12,13 @@ def test_nvs_flash(dut: IdfDut) -> None:
|
||||
dut.run_all_single_board_cases(group='!nvs_encr_hmac', timeout=120)
|
||||
|
||||
|
||||
@pytest.mark.generic
|
||||
@pytest.mark.parametrize('config', ['blockdev'], indirect=True)
|
||||
@idf_parametrize('target', ['esp32', 'esp32c3'], indirect=['target'])
|
||||
def test_nvs_flash_blockdev(dut: IdfDut) -> None:
|
||||
dut.run_all_single_board_cases(group='!nvs_encr_hmac', timeout=120)
|
||||
|
||||
|
||||
@pytest.mark.nvs_encr_hmac
|
||||
@pytest.mark.parametrize('config', ['nvs_encr_hmac_esp32c3'], indirect=True)
|
||||
@idf_parametrize('target', ['esp32c3'], indirect=['target'])
|
||||
|
||||
2
components/nvs_flash/test_apps/sdkconfig.ci.blockdev
Normal file
2
components/nvs_flash/test_apps/sdkconfig.ci.blockdev
Normal file
@@ -0,0 +1,2 @@
|
||||
# Configuration enabling internal storage via esp_blockdev instead of direct call to esp_partition nvs_api
|
||||
CONFIG_NVS_BDL_STACK=y
|
||||
Reference in New Issue
Block a user