-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
edtlib: test "last modified" semantic for included property specs
Make sure the property specs answered by the Binding.prop2specs API do not all claim (PropertySpec.path) they were last modified by the top-level binding. Signed-off-by: Christophe Dufaza <[email protected]>
- Loading branch information
Showing
4 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
scripts/dts/python-devicetree/tests/test-bindings-include/base.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
|
||
properties: | ||
x: | ||
type: int | ||
y: | ||
type: int |
7 changes: 7 additions & 0 deletions
7
scripts/dts/python-devicetree/tests/test-bindings-include/modified.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
|
||
include: base.yaml | ||
|
||
properties: | ||
x: | ||
required: true |
21 changes: 21 additions & 0 deletions
21
scripts/dts/python-devicetree/tests/test-bindings-include/top.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
|
||
description: | | ||
Top-level binding file for testing included property spec paths. | ||
base.yaml: specifies properties "x" and "y" | ||
modified.yaml: includes base.yaml, modifies property "x" | ||
top.yaml (this file): includes modified.yaml, specifies property "p" | ||
From the top-level binding, we expect: | ||
- "x" was last modified in modified.yaml | ||
- "y" was last modified in base.yaml | ||
- "p" was last modified in top.yaml | ||
compatible: top-level | ||
|
||
include: modified.yaml | ||
|
||
properties: | ||
p: | ||
type: int |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters