ci(tools): Move misspelled KConfig test to dedicated kconfig_test_app

Separate the misspelled KConfig.projbuild test case into its own test app
so it doesn't interfere with the general-purpose build_test_app. The test
now uses a pytest marker to select kconfig_test_app as the source.
This commit is contained in:
Jan Beran
2026-03-16 08:57:40 +01:00
committed by Jakub Kocka
parent 7551e82048
commit a2277f14df
6 changed files with 30 additions and 0 deletions
@@ -0,0 +1,9 @@
cmake_minimum_required(VERSION 3.22)
# placeholder_before_include_project_cmake
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
# placeholder_after_include_project_cmake
project(kconfig_test_app)
@@ -0,0 +1,3 @@
Information about this test app can be found [here](../README.md#application-under-test).
This is a 1:1 copy of build_test_app, but with a malformed KConfig.projbuild file.
@@ -0,0 +1,5 @@
# placeholder_before_idf_component_register
idf_component_register(SRCS "kconfig_test_app.c"
# placeholder_inside_idf_component_register
)
@@ -0,0 +1,12 @@
/*
* SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <stdio.h>
// placeholder_before_main
void app_main(void)
{
// placeholder_inside_main
}
+1
View File
@@ -258,6 +258,7 @@ def test_build_cmake_executable_suffix(idf_py: IdfPyFunc, test_app_copy: Path) -
assert 'Project build complete' in ret.stdout, 'Build with CMAKE_EXECUTABLE_SUFFIX set failed' assert 'Project build complete' in ret.stdout, 'Build with CMAKE_EXECUTABLE_SUFFIX set failed'
@pytest.mark.test_app_copy('tools/test_build_system/kconfig_test_app')
def test_build_with_misspelled_kconfig(idf_py: IdfPyFunc, test_app_copy: Path) -> None: def test_build_with_misspelled_kconfig(idf_py: IdfPyFunc, test_app_copy: Path) -> None:
logging.info('idf.py can build with misspelled Kconfig file') logging.info('idf.py can build with misspelled Kconfig file')
ret = idf_py('build') ret = idf_py('build')