aboutsummaryrefslogtreecommitdiff
path: root/test/py/tests/vboot/sign-configs-algo-arg.its
diff options
context:
space:
mode:
authorJan Kiszka2022-02-03 21:43:50 +0100
committerTom Rini2022-02-11 10:52:24 -0500
commit7ace56ae0321a0333d333df40e1e02aa17fa2dae (patch)
treef2184a5eb450727094441e5df44e0d71a98048ac /test/py/tests/vboot/sign-configs-algo-arg.its
parenteebcdb34d06104ed9ad2f089ad8a0b4f3b8ec89e (diff)
test/py: Add test case for mkimage -o argument
Stress the '-o algo_name' argument of mkimage by expanding the vboot test. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Reviewed-by: Simon Glass <sjg@chromium.org> [trini: Update scripts/pylint.base]
Diffstat (limited to 'test/py/tests/vboot/sign-configs-algo-arg.its')
-rw-r--r--test/py/tests/vboot/sign-configs-algo-arg.its44
1 files changed, 44 insertions, 0 deletions
diff --git a/test/py/tests/vboot/sign-configs-algo-arg.its b/test/py/tests/vboot/sign-configs-algo-arg.its
new file mode 100644
index 00000000000..3a5bb6d0f73
--- /dev/null
+++ b/test/py/tests/vboot/sign-configs-algo-arg.its
@@ -0,0 +1,44 @@
+/dts-v1/;
+
+/ {
+ description = "Chrome OS kernel image with one or more FDT blobs";
+ #address-cells = <1>;
+
+ images {
+ kernel {
+ data = /incbin/("test-kernel.bin");
+ type = "kernel_noload";
+ arch = "sandbox";
+ os = "linux";
+ compression = "none";
+ load = <0x4>;
+ entry = <0x8>;
+ kernel-version = <1>;
+ hash-1 {
+ algo = "sha256";
+ };
+ };
+ fdt-1 {
+ description = "snow";
+ data = /incbin/("sandbox-kernel.dtb");
+ type = "flat_dt";
+ arch = "sandbox";
+ compression = "none";
+ fdt-version = <1>;
+ hash-1 {
+ algo = "sha256";
+ };
+ };
+ };
+ configurations {
+ default = "conf-1";
+ conf-1 {
+ kernel = "kernel";
+ fdt = "fdt-1";
+ signature {
+ key-name-hint = "dev";
+ sign-images = "fdt", "kernel";
+ };
+ };
+ };
+};