diff options
author | Simon Glass <sjg@chromium.org> | 2017-05-27 07:38:21 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2017-06-02 10:16:47 -0600 |
commit | 4a28b007031404f5cf0a18e0b79d1e6f7ec982b0 (patch) | |
tree | f83b21c85eeed7270c4a26ad683240c493ac090e /tools/binman/test/45_prop_test.dts | |
parent | 1d88ebb2702d54f04ecda1899e43bb9fb06dad3a (diff) |
fdt: dtoc: Add a full set of property tests
The tests don't currently cover all the different property types. Add a
new test which checks each property type in turn, to make sure each has
the correct type and value.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/binman/test/45_prop_test.dts')
-rw-r--r-- | tools/binman/test/45_prop_test.dts | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tools/binman/test/45_prop_test.dts b/tools/binman/test/45_prop_test.dts new file mode 100644 index 0000000000..d22e460d29 --- /dev/null +++ b/tools/binman/test/45_prop_test.dts @@ -0,0 +1,23 @@ +/dts-v1/; + +/ { + #address-cells = <1>; + #size-cells = <1>; + + binman { + sort-by-pos; + end-at-4gb; + size = <16>; + intel-me { + filename = "me.bin"; + pos-unset; + intval = <3>; + intarray = <5 6>; + byteval = [08]; + bytearray = [01 23 34]; + longbytearray = [09 0a 0b 0c]; + stringval = "message2"; + stringarray = "another", "multi-word", "message"; + }; + }; +}; |