From ea84bd51c9296f8762f84ea12d95be842db4cc48 Mon Sep 17 00:00:00 2001 From: Frantisek Hrbata Date: Wed, 15 Nov 2023 13:19:18 +0100 Subject: [PATCH] feat(ci): add test for custom cmake CMAKE_EXECUTABLE_SUFFIX Signed-off-by: Frantisek Hrbata --- tools/test_build_system/test_build.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tools/test_build_system/test_build.py b/tools/test_build_system/test_build.py index 6b206fbd2e..35d59bf2be 100644 --- a/tools/test_build_system/test_build.py +++ b/tools/test_build_system/test_build.py @@ -201,3 +201,10 @@ def test_build_with_crlf_files(idf_py: IdfPyFunc, test_app_copy: Path, idf_copy: change_files_to_crlf(idf_copy) idf_py('build') assert_built(BOOTLOADER_BINS + APP_BINS + PARTITION_BIN) + + +def test_build_cmake_executable_suffix(idf_py: IdfPyFunc, test_app_copy: Path) -> None: + logging.info('idf.py can build with CMAKE_EXECUTABLE_SUFFIX set') + append_to_file((test_app_copy / 'CMakeLists.txt'), 'set(CMAKE_EXECUTABLE_SUFFIX_CXX ".ext")') + ret = idf_py('build') + assert 'Project build complete' in ret.stdout, 'Build with CMAKE_EXECUTABLE_SUFFIX set failed'