summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2020-02-24 20:51:13 +0100
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2020-02-24 20:51:13 +0100
commita88a6f30ef11e562a0c0836f70a5a2091fe4aecf (patch)
tree174cc2dab84bff2cfb3eb424b8b3e1ac4a997607
parentMerge "Revert "New priority scripts + critical updates to fonts."" (diff)
parentMerge "Generate recovery.img for unittest during build time" am: bf885b6b21 am: 616db72209 am: f8802616b3 am: 591dcf9015 (diff)
downloadandroid_bootable_recovery-a88a6f30ef11e562a0c0836f70a5a2091fe4aecf.tar
android_bootable_recovery-a88a6f30ef11e562a0c0836f70a5a2091fe4aecf.tar.gz
android_bootable_recovery-a88a6f30ef11e562a0c0836f70a5a2091fe4aecf.tar.bz2
android_bootable_recovery-a88a6f30ef11e562a0c0836f70a5a2091fe4aecf.tar.lz
android_bootable_recovery-a88a6f30ef11e562a0c0836f70a5a2091fe4aecf.tar.xz
android_bootable_recovery-a88a6f30ef11e562a0c0836f70a5a2091fe4aecf.tar.zst
android_bootable_recovery-a88a6f30ef11e562a0c0836f70a5a2091fe4aecf.zip
-rw-r--r--tests/Android.bp19
-rw-r--r--tests/testdata/recovery.imgbin529707 -> 0 bytes
-rw-r--r--tests/testdata/recovery_bodybin0 -> 1293568 bytes
-rw-r--r--tests/testdata/recovery_headbin0 -> 45056 bytes
-rw-r--r--tests/testdata/recovery_tailbin0 -> 5191 bytes
5 files changed, 19 insertions, 0 deletions
diff --git a/tests/Android.bp b/tests/Android.bp
index 4c23255ad..a9a088a32 100644
--- a/tests/Android.bp
+++ b/tests/Android.bp
@@ -95,6 +95,24 @@ librecovery_static_libs = [
"libc++fs",
]
+// 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,
@@ -128,6 +146,7 @@ cc_test {
data: [
"testdata/*",
+ ":recovery_image",
":res-testdata",
],
}
diff --git a/tests/testdata/recovery.img b/tests/testdata/recovery.img
deleted file mode 100644
index b862e6f0c..000000000
--- a/tests/testdata/recovery.img
+++ /dev/null
Binary files differ
diff --git a/tests/testdata/recovery_body b/tests/testdata/recovery_body
new file mode 100644
index 000000000..48d7c10a5
--- /dev/null
+++ b/tests/testdata/recovery_body
Binary files differ
diff --git a/tests/testdata/recovery_head b/tests/testdata/recovery_head
new file mode 100644
index 000000000..7f494d098
--- /dev/null
+++ b/tests/testdata/recovery_head
Binary files differ
diff --git a/tests/testdata/recovery_tail b/tests/testdata/recovery_tail
new file mode 100644
index 000000000..7fe2c6ce8
--- /dev/null
+++ b/tests/testdata/recovery_tail
Binary files differ