Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 616db722 authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Merge "Generate recovery.img for unittest during build time" am: bf885b6b

Change-Id: I75f0fa79c3e8d2c771edb18bcdc8faa344f273f9
parents c9b0fe71 bf885b6b
Loading
Loading
Loading
Loading
+19 −0
Original line number Diff line number Diff line
@@ -94,6 +94,24 @@ librecovery_static_libs = [
    "libtinyxml2",
]

// recovery image for unittests.
// ========================================================
genrule {
    name: "recovery_image",
    cmd: "cat $(location testdata/recovery_head) <(cat $(location testdata/recovery_body) | $(location minigzip)) $(location testdata/recovery_tail) > $(out)",
    srcs: [
        "testdata/recovery_head",
        "testdata/recovery_body",
        "testdata/recovery_tail",
    ],
    tools: [
        "minigzip",
    ],
    out: [
        "testdata/recovery.img",
    ],
}

cc_test {
    name: "recovery_unit_test",
    isolated: true,
@@ -127,6 +145,7 @@ cc_test {

    data: [
        "testdata/*",
        ":recovery_image",
        ":res-testdata",
    ],
}

tests/testdata/recovery.img

deleted100644 → 0
−517 KiB

File deleted.

+1.23 MiB

File added.

No diff preview for this file type.

+44 KiB

File added.

No diff preview for this file type.

+5.07 KiB

File added.

No diff preview for this file type.