summaryrefslogtreecommitdiff
path: root/tools/binman/test
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-05-27 13:38:21 (GMT)
committerSimon Glass <sjg@chromium.org>2017-06-02 16:16:47 (GMT)
commit4a28b007031404f5cf0a18e0b79d1e6f7ec982b0 (patch)
treef83b21c85eeed7270c4a26ad683240c493ac090e /tools/binman/test
parent1d88ebb2702d54f04ecda1899e43bb9fb06dad3a (diff)
downloadu-boot-4a28b007031404f5cf0a18e0b79d1e6f7ec982b0.tar.xz
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')
-rw-r--r--tools/binman/test/45_prop_test.dts23
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 0000000..d22e460
--- /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";
+ };
+ };
+};