From c28b7dc9ac847ffbdf5fb9572b04b117ed2ce1fb Mon Sep 17 00:00:00 2001 From: Frantisek Hrbata Date: Thu, 26 Sep 2024 18:02:20 +0200 Subject: [PATCH] change(ci): disable MINIMAL_BUILD for test_build_cmake_library_psram_workaround The test_build_cmake_library_psram_workaround verifies that the mfix-esp32-psram-cache-issue flag is applied to all compile commands in compile_commands.json when CONFIG_SPIRAM_CACHE_WORKAROUND=y. Although the import_lib does not need the esp_psram component, this test does. To avoid adding the esp_psram dependency to the import_lib, disable MINIMAL_BUILD for this test by explicitly setting the COMPONENTS variable. Signed-off-by: Frantisek Hrbata --- tools/test_build_system/test_cmake.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/test_build_system/test_cmake.py b/tools/test_build_system/test_cmake.py index 2b138afb3d..51be08ecb2 100644 --- a/tools/test_build_system/test_cmake.py +++ b/tools/test_build_system/test_cmake.py @@ -30,7 +30,8 @@ def test_build_cmake_library_psram_workaround(test_app_copy: Path) -> None: idf_path = Path(os.environ['IDF_PATH']) (test_app_copy / 'sdkconfig.defaults').write_text('\n'.join(['CONFIG_SPIRAM=y', 'CONFIG_SPIRAM_CACHE_WORKAROUND=y'])) - run_cmake('-G', 'Ninja', '-DSDKCONFIG_DEFAULTS={}'.format(test_app_copy / 'sdkconfig.defaults'), + run_cmake('-G', 'Ninja', '-DCOMPONENTS=main;esp_psram', + '-DSDKCONFIG_DEFAULTS={}'.format(test_app_copy / 'sdkconfig.defaults'), str(idf_path / 'examples' / 'build_system' / 'cmake' / 'import_lib')) with open((test_app_copy / 'build' / 'compile_commands.json'), 'r', encoding='utf-8') as f: data = f.read()