Skip to content

Commit a0918e1

Browse files
authored
feat(examples): add sdkconfig integration test examples (#1718)
Self-verifying examples that demonstrate two undocumented sdkconfig features: - espidf-sdkconfig-defaults: SDKCONFIG_DEFAULTS layering via board_build.cmake_extra_args with multiple semicolon-separated files - espidf-sdkconfig-custom-path: custom sdkconfig output path via board_build.esp-idf.sdkconfig_path Both use _Static_assert to verify the configuration took effect at compile time, making them self-checking integration tests.
1 parent bf8f9c1 commit a0918e1

File tree

13 files changed

+2353
-0
lines changed

13 files changed

+2353
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.pio/
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
cmake_minimum_required(VERSION 3.16)
2+
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
3+
project(sdkconfig_custom_path_test)
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
; PlatformIO Project Configuration File
2+
;
3+
; This example demonstrates using a custom sdkconfig file path via
4+
; board_build.esp-idf.sdkconfig_path. Instead of the default
5+
; "sdkconfig.<env>" naming convention, a custom filename is used.
6+
;
7+
; sdkconfig.custom sets CONFIG_LOG_DEFAULT_LEVEL=4 (DEBUG)
8+
; The source code uses _Static_assert to verify the config was applied.
9+
10+
[env:esp32dev]
11+
platform = espressif32
12+
framework = espidf
13+
board = esp32dev
14+
board_build.esp-idf.sdkconfig_path = sdkconfig.custom

0 commit comments

Comments
 (0)