mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
CI: add common debug helper sdkconfig that can be used in test apps
This commit is contained in:
parent
fa5d0a3513
commit
23b5e54974
@ -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/**/*"
|
||||
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
16
tools/test_apps/configs/README.md
Normal file
16
tools/test_apps/configs/README.md
Normal 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.
|
6
tools/test_apps/configs/sdkconfig.debug_helpers
Normal file
6
tools/test_apps/configs/sdkconfig.debug_helpers
Normal 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
|
Loading…
x
Reference in New Issue
Block a user