diff options
author | Simon Glass <sjg@chromium.org> | 2016-07-03 09:40:46 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-07-14 18:22:40 -0400 |
commit | 8729d582595dc0a9a666310f9f6001f815684f73 (patch) | |
tree | a1733a592f196e4307e5ccd1d34f6496db3b4e2f /test/py/tests/vboot/sign-configs-sha1.its | |
parent | 1152a05ee6593bf3036337cd18edd355589ea3a8 (diff) |
test: Convert the vboot test to test/py
Now that we have a suitable test framework we should move all tests into it.
The vboot test is a suitable candidate. Rewrite it in Python and move the
data files into an appropriate directory.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'test/py/tests/vboot/sign-configs-sha1.its')
-rw-r--r-- | test/py/tests/vboot/sign-configs-sha1.its | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/test/py/tests/vboot/sign-configs-sha1.its b/test/py/tests/vboot/sign-configs-sha1.its new file mode 100644 index 0000000000..db2ed79355 --- /dev/null +++ b/test/py/tests/vboot/sign-configs-sha1.its @@ -0,0 +1,45 @@ +/dts-v1/; + +/ { + description = "Chrome OS kernel image with one or more FDT blobs"; + #address-cells = <1>; + + images { + kernel@1 { + data = /incbin/("test-kernel.bin"); + type = "kernel_noload"; + arch = "sandbox"; + os = "linux"; + compression = "none"; + load = <0x4>; + entry = <0x8>; + kernel-version = <1>; + hash@1 { + algo = "sha1"; + }; + }; + fdt@1 { + description = "snow"; + data = /incbin/("sandbox-kernel.dtb"); + type = "flat_dt"; + arch = "sandbox"; + compression = "none"; + fdt-version = <1>; + hash@1 { + algo = "sha1"; + }; + }; + }; + configurations { + default = "conf@1"; + conf@1 { + kernel = "kernel@1"; + fdt = "fdt@1"; + signature@1 { + algo = "sha1,rsa2048"; + key-name-hint = "dev"; + sign-images = "fdt", "kernel"; + }; + }; + }; +}; |