esp-idf/components/nvs_flash/host_test/nvs_page_test
Jakob Hasse a6371d2a97 [nvs] nvs page host runs in CI, fix build failure
* nvs host page unit test now runs in ci
* fixed nvs host page unit test build failure
2021-09-10 13:02:51 +08:00
..
main [nvs] nvs page host runs in CI, fix build failure 2021-09-10 13:02:51 +08:00
CMakeLists.txt NVS flash: host-based unit test of nvs::Page 2020-12-14 18:53:14 +08:00
README.rst NVS flash: host-based unit test of nvs::Page 2020-12-14 18:53:14 +08:00
sdkconfig.defaults [nvs] nvs page host runs in CI, fix build failure 2021-09-10 13:02:51 +08:00

NVS Page Test for Host
======================

Build
-----

First, make sure that the target is set to linux.
Run ``idf.py --preview set-target linux`` to be sure.
Then do a normal IDF build: ``idf.py build``.

Run
---

IDF monitor doesn't work yet for Linux.
You have to run the app manually: ``./build/host_nvs_page_test.elf``.

Coverage
---

To generate the coverage, run: ``idf.py coverage``.
Afterwards, you can view the coverage by opening ``build/coverage_report/index.html`` with your browser.
Note that you need to run the application at least once before generating the coverage information.
If you run it multiple times, the coverage information adds up.