summaryrefslogtreecommitdiffstats
path: root/tests/Android.bp
diff options
context:
space:
mode:
authorAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2020-02-24 20:14:40 +0100
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2020-02-24 20:14:40 +0100
commitf8802616b3395f23891b8fe297bb330422d02bc2 (patch)
tree174cc2dab84bff2cfb3eb424b8b3e1ac4a997607 /tests/Android.bp
parentMerge "Recovery UI meet issue if image size is too large" am: f5b94d6e9b am: c9b0fe7172 (diff)
parentMerge "Generate recovery.img for unittest during build time" am: bf885b6b21 (diff)
downloadandroid_bootable_recovery-f8802616b3395f23891b8fe297bb330422d02bc2.tar
android_bootable_recovery-f8802616b3395f23891b8fe297bb330422d02bc2.tar.gz
android_bootable_recovery-f8802616b3395f23891b8fe297bb330422d02bc2.tar.bz2
android_bootable_recovery-f8802616b3395f23891b8fe297bb330422d02bc2.tar.lz
android_bootable_recovery-f8802616b3395f23891b8fe297bb330422d02bc2.tar.xz
android_bootable_recovery-f8802616b3395f23891b8fe297bb330422d02bc2.tar.zst
android_bootable_recovery-f8802616b3395f23891b8fe297bb330422d02bc2.zip
Diffstat (limited to 'tests/Android.bp')
-rw-r--r--tests/Android.bp19
1 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",
],
}