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:
radek.tandler
2025-07-31 14:51:33 +02:00
parent 45c642e6d1
commit b27ada2f43
20 changed files with 2914 additions and 1337 deletions

View File

@@ -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'])

View 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