| Supported Targets | ESP32 | Linux |
|---|
Error Codes Registration Check
This test app verifies that all ESP_ERR_* error codes defined across ESP-IDF
components are correctly registered via idf_define_esp_err_codes() and can be
resolved by esp_err_to_name().
How it works
- At CMake configure time,
err_codes_extract.pyscans all ESP-IDF component headers to collect everyESP_ERR_*define. - A test source file is generated that calls
esp_err_to_name()for each collected error code and asserts the result matches the expected name. - The app is built and run (e.g., in QEMU or on hardware).
Building and running
cd tools/test_apps/build_system/err_codes_check
idf.py set-target esp32
idf.py build
# Run in QEMU or flash to hardware