mirror of
https://github.com/espressif/esp-idf.git
synced 2026-04-27 19:13:21 +00:00
feat(cmakev2): Enabled all component manager tests for cmakev2
This commit is contained in:
@@ -4,7 +4,6 @@ import json
|
||||
import os.path
|
||||
from pathlib import Path
|
||||
|
||||
import pytest
|
||||
from test_build_system_helpers import IdfPyFunc
|
||||
from test_build_system_helpers import replace_in_file
|
||||
|
||||
@@ -159,9 +158,6 @@ class TestOptionalDependencyWithKconfig:
|
||||
)
|
||||
assert 'Missing required kconfig option after retry.' in res.stderr
|
||||
|
||||
@pytest.mark.buildv2_skip(
|
||||
'cmakev2 needs explicit REQUIRES for EXTRA_COMPONENT_DIRS as no special handling of the main component occurs'
|
||||
)
|
||||
def test_kconfig_in_transitive_dependency(self, idf_py: IdfPyFunc, test_app_copy: Path) -> None:
|
||||
idf_py('create-component', 'foo')
|
||||
(test_app_copy / 'foo' / 'idf_component.yml').write_text("""
|
||||
@@ -191,6 +187,13 @@ class TestOptionalDependencyWithKconfig:
|
||||
'set(EXTRA_COMPONENT_DIRS foo)',
|
||||
)
|
||||
|
||||
# Add explicit PRIV_REQUIRES for cmakev2 compatibility
|
||||
replace_in_file(
|
||||
(test_app_copy / 'main' / 'CMakeLists.txt'),
|
||||
'# placeholder_inside_idf_component_register',
|
||||
'PRIV_REQUIRES foo',
|
||||
)
|
||||
|
||||
idf_py('reconfigure')
|
||||
|
||||
data = json.load(open(test_app_copy / 'build' / 'project_description.json'))
|
||||
|
||||
Reference in New Issue
Block a user