Merge branch 'feature/test_apps_def_config' into 'master'

CI: add common debug helper sdkconfig that can be used in test apps

See merge request espressif/esp-idf!20213
This commit is contained in:
Marius Vikhammer 2022-10-19 10:37:48 +08:00
commit 978c03c0c3
5 changed files with 29 additions and 0 deletions

View File

@ -80,6 +80,7 @@
- "tools/ci/python_packages/tiny_test_fw/**/*"
- "tools/ci/python_packages/ttfw_idf/**/*"
- "tools/ci/python_packages/common_test_methods.py"
- "tools/test_apps/configs/sdkconfig.debug_helpers"
- "components/**/*"

View File

@ -1,5 +1,8 @@
# This is the project CMakeLists.txt file for the test subproject
cmake_minimum_required(VERSION 3.16)
set(SDKCONFIG_DEFAULTS "$ENV{IDF_PATH}/tools/test_apps/configs/sdkconfig.debug_helpers")
list(APPEND SDKCONFIG_DEFAULTS "sdkconfig.defaults")
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(ulp_fsm_test)

View File

@ -1,5 +1,8 @@
# This is the project CMakeLists.txt file for the test subproject
cmake_minimum_required(VERSION 3.16)
set(SDKCONFIG_DEFAULTS "$ENV{IDF_PATH}/tools/test_apps/configs/sdkconfig.debug_helpers")
list(APPEND SDKCONFIG_DEFAULTS "sdkconfig.defaults")
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(ulp_riscv_test)

View File

@ -0,0 +1,16 @@
# Configs
Certain combinations of configs, e.g. stack and heap debug configs, are useful to set in most test apps.
To facilitiate re-use, this folder contains some of the most common ones.
These can then be added to the list of default configs in test apps:
```
set(SDKCONFIG_DEFAULTS "$ENV{IDF_PATH}/tools/test_apps/configs/sdkconfig.debug_helpers")
list(APPEND SDKCONFIG_DEFAULTS "sdkconfig.defaults")
```
Note that this must be set in the top-level project `CMakelist.txt`.
These files should not be considered stable, and are thus not recommended for use outside of IDF.

View File

@ -0,0 +1,6 @@
# Helper options that help with detecting/debugging issues in test apps
CONFIG_HEAP_POISONING_COMPREHENSIVE=y
CONFIG_COMPILER_WARN_WRITE_STRINGS=y
CONFIG_FREERTOS_WATCHPOINT_END_OF_STACK=y
CONFIG_COMPILER_STACK_CHECK_MODE_STRONG=y
CONFIG_COMPILER_STACK_CHECK=y