kopia lustrzana https://github.com/espressif/esp-idf
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 <frantisek.hrbata@espressif.com>pull/14641/head
rodzic
8d248d8903
commit
c28b7dc9ac
|
@ -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()
|
||||
|
|
Ładowanie…
Reference in New Issue