mirror of
https://github.com/dgibson/dtc.git
synced 2026-05-12 11:43:04 -04:00
Improve tests for dtc overlay generation
So far, the tests for generating runtime overlays with dtc weren't checking the syntactic sugar. This adds such a test. Furthermore the existing tests were only minimally testing dtc's output for the overlay. This adds a test comparing the dtc output with the more or less manually constructed overlays we already have for testing libfdt's overlay application code. This does require some minor changes to that manually constructed overlay which don't change the sematics but re-order / rename things to match the way dtc does it. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
aadd0b65c9
commit
119e273003
4 changed files with 154 additions and 89 deletions
|
|
@ -50,7 +50,7 @@
|
|||
};
|
||||
};
|
||||
|
||||
fragment@5 {
|
||||
fragment@4 {
|
||||
target = <0xffffffff /*&test*/>;
|
||||
|
||||
__overlay__ {
|
||||
|
|
@ -60,7 +60,7 @@
|
|||
};
|
||||
};
|
||||
|
||||
fragment@6 {
|
||||
fragment@5 {
|
||||
target = <0xffffffff /*&test*/>;
|
||||
|
||||
__overlay__ {
|
||||
|
|
@ -68,7 +68,7 @@
|
|||
};
|
||||
};
|
||||
|
||||
fragment@7 {
|
||||
fragment@6 {
|
||||
target = <0xffffffff /*&test*/>;
|
||||
|
||||
__overlay__ {
|
||||
|
|
@ -76,7 +76,7 @@
|
|||
};
|
||||
};
|
||||
|
||||
fragment@8 {
|
||||
fragment@7 {
|
||||
target = <0xffffffff /*&test*/>;
|
||||
|
||||
__overlay__ {
|
||||
|
|
@ -86,27 +86,27 @@
|
|||
};
|
||||
};
|
||||
|
||||
__local_fixups__ {
|
||||
fragment@6 {
|
||||
__overlay__ {
|
||||
test-phandle = <4>;
|
||||
};
|
||||
};
|
||||
fragment@7 {
|
||||
__overlay__ {
|
||||
test-several-phandle = <0 4>;
|
||||
};
|
||||
};
|
||||
};
|
||||
__fixups__ {
|
||||
test = "/fragment@0:target:0",
|
||||
"/fragment@1:target:0",
|
||||
"/fragment@2:target:0",
|
||||
"/fragment@3:target:0",
|
||||
"/fragment@4:target:0",
|
||||
"/fragment@5:target:0",
|
||||
"/fragment@5/__overlay__:test-phandle:0",
|
||||
"/fragment@6:target:0",
|
||||
"/fragment@6/__overlay__:test-phandle:0",
|
||||
"/fragment@7:target:0",
|
||||
"/fragment@8:target:0";
|
||||
"/fragment@7:target:0";
|
||||
};
|
||||
__local_fixups__ {
|
||||
fragment@5 {
|
||||
__overlay__ {
|
||||
test-phandle = <4>;
|
||||
};
|
||||
};
|
||||
fragment@6 {
|
||||
__overlay__ {
|
||||
test-several-phandle = <0 4>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue