esp-idf/components/wear_levelling/test_apps
Darian Leung 4069a62629 freertos(IDF): Remove usage of xPortGetFreeHeapSize() outside FreeRTOS
After heap_idf.c has been added (where the FreeRTOS heap is a subset of the
ESP-IDF heap), xPortGetFreeHeapSize() was updated to only returns the free
size of the FreeRTOS heap and not the entire ESP-IDF heap.

This commit replaces calls of xPortGetFreeHeapSize() with
esp_get_free_heap_size() in places outside of FreeRTOS.
2023-03-07 02:02:28 +08:00
..
main freertos(IDF): Remove usage of xPortGetFreeHeapSize() outside FreeRTOS 2023-03-07 02:02:28 +08:00
CMakeLists.txt tools: Increase the minimal supported CMake version to 3.16 2022-06-01 06:35:02 +00:00
README.md
partitions.csv
pytest_wear_levelling.py ci: replace all component ut with pytest-embedded 2022-01-24 16:37:23 +08:00
sdkconfig.ci.4k
sdkconfig.ci.512perf
sdkconfig.ci.512safe
sdkconfig.ci.release
sdkconfig.defaults

README.md

Supported Targets ESP32 ESP32-C3

This is a test app for wear_levelling component. This app is for internal use. In CI, it is sufficient to run this test for one chip of each architecture.

Building

Several configurations are provided as sdkconfig.ci.XXX and serve as a template.

Example with configuration "4k" for target ESP32

rm -rf sdkconfig build
idf.py -DIDF_TARGET=esp32 -DSDKCONFIG_DEFAULTS="sdkconfig.defaults;sdkconfig.ci.4k" build

Running

To run locally:

idf.py flash monitor

The tests will be executed and the summary will be printed:

-----------------------
4 Tests 0 Failures 0 Ignored 
OK

Note, when the Python test script is executed in internal CI, it will test each configuration one by one. When executing this script locally, it will use whichever binary is already built and available in build directory.