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-12-02 15:32:14 +01:00
parent 191ac74dd0
commit bbfe8e7492
20 changed files with 2914 additions and 1337 deletions
+2 -2
View File
@@ -174,8 +174,8 @@ bool NVSPartition::is_bdl_nvs_compliant(const char* label, const esp_blockdev_ha
is_compliant = false;
}
if(bdl->geometry.erase_size % NVS_CONST_PAGE_SIZE != 0) {
ESP_LOGV(TAG, "Block device erase size is not a multiple of %d, it is %zu", NVS_CONST_PAGE_SIZE, bdl->geometry.erase_size);
if(NVS_CONST_PAGE_SIZE % bdl->geometry.erase_size != 0) {
ESP_LOGV(TAG, "Block device erase size %zu does not allow erasing pages of size %d.", bdl->geometry.erase_size, NVS_CONST_PAGE_SIZE);
is_compliant = false;
}