esp-idf/components/nvs_flash/test_nvs_host
Jakob Hasse aca9ec28b3 NVS: using esp_partition API
* partition api changed from spi_flash* API to
  esp_partition* API and is abstracted as a C++
  interface.
* The old nvs encryption is still possible
* changed default unit test app partition table
* Partitions coming from esp_partition API are
  checked for generic flash encryption. If yes,
  an error is returned since generic flash
  encryption isn't compatible with nvs
  encryption
* esp32, esp32s2 tests don't require nvs_flash
  but mbedtls now

Closes IDF-1340
Closes IDF-858
2020-09-14 10:34:34 +08:00
..
crc.cpp add unit tests to esp-idf 2016-11-22 14:45:50 +08:00
crc.h add unit tests to esp-idf 2016-11-22 14:45:50 +08:00
esp_error_check_stub.cpp ESP_ERROR_CHECK converts error code to text 2018-05-31 12:53:37 +02:00
main.cpp add unit tests to esp-idf 2016-11-22 14:45:50 +08:00
Makefile NVS: using esp_partition API 2020-09-14 10:34:34 +08:00
README.md NVS: expose C++ API 2020-01-09 18:29:23 +08:00
sdkconfig.h nvs: minor host test fixes 2019-07-02 10:26:06 +02:00
spi_flash_emulation.cpp NVS: using esp_partition API 2020-09-14 10:34:34 +08:00
spi_flash_emulation.h nvs: add test for erase cycles distribution 2020-03-13 11:29:39 +01:00
test_compressed_enum_table.cpp add unit tests to esp-idf 2016-11-22 14:45:50 +08:00
test_fixtures.hpp NVS: using esp_partition API 2020-09-14 10:34:34 +08:00
test_intrusive_list.cpp add unit tests to esp-idf 2016-11-22 14:45:50 +08:00
test_nvs_cxx_api.cpp NVS: using esp_partition API 2020-09-14 10:34:34 +08:00
test_nvs_handle.cpp NVS: using esp_partition API 2020-09-14 10:34:34 +08:00
test_nvs_initialization.cpp nvs: unit tests for new partition API 2020-05-27 11:22:32 +08:00
test_nvs_partition.cpp NVS: using esp_partition API 2020-09-14 10:34:34 +08:00
test_nvs_storage.cpp NVS: using esp_partition API 2020-09-14 10:34:34 +08:00
test_nvs.cpp NVS: using esp_partition API 2020-09-14 10:34:34 +08:00
test_partition_manager.cpp NVS: using esp_partition API 2020-09-14 10:34:34 +08:00
test_spi_flash_emulation.cpp NVS: using esp_partition API 2020-09-14 10:34:34 +08:00

Build

make -j 6

Run

  • Run particular test case:
./test_nvs "<particular test case>"

  • Run all quick tests:
./test_nvs -d yes exclude:[long]
  • Run all tests (takes several hours)
./test_nvs -d yes