diff options
author | Tianjie Xu <xunchang@google.com> | 2020-02-21 08:09:44 +0100 |
---|---|---|
committer | Tianjie Xu <xunchang@google.com> | 2020-02-21 08:09:44 +0100 |
commit | fa77ee8470a52412177adf37f0ef157a937fa45c (patch) | |
tree | 05bc8dbd35aab650ff3eb97cf0e9670ca4f8dffb | |
parent | Merge "rm libbinderthreadstate" (diff) | |
download | android_bootable_recovery-fa77ee8470a52412177adf37f0ef157a937fa45c.tar android_bootable_recovery-fa77ee8470a52412177adf37f0ef157a937fa45c.tar.gz android_bootable_recovery-fa77ee8470a52412177adf37f0ef157a937fa45c.tar.bz2 android_bootable_recovery-fa77ee8470a52412177adf37f0ef157a937fa45c.tar.lz android_bootable_recovery-fa77ee8470a52412177adf37f0ef157a937fa45c.tar.xz android_bootable_recovery-fa77ee8470a52412177adf37f0ef157a937fa45c.tar.zst android_bootable_recovery-fa77ee8470a52412177adf37f0ef157a937fa45c.zip |
Diffstat (limited to '')
-rw-r--r-- | tests/Android.bp | 19 | ||||
-rw-r--r-- | tests/testdata/recovery.img | bin | 529707 -> 0 bytes | |||
-rw-r--r-- | tests/testdata/recovery_body | bin | 0 -> 1293568 bytes | |||
-rw-r--r-- | tests/testdata/recovery_head | bin | 0 -> 45056 bytes | |||
-rw-r--r-- | tests/testdata/recovery_tail | bin | 0 -> 5191 bytes |
5 files changed, 19 insertions, 0 deletions
diff --git a/tests/Android.bp b/tests/Android.bp index bde1bc5f3..3d223907c 100644 --- a/tests/Android.bp +++ b/tests/Android.bp @@ -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", ], } diff --git a/tests/testdata/recovery.img b/tests/testdata/recovery.img Binary files differdeleted file mode 100644 index b862e6f0c..000000000 --- a/tests/testdata/recovery.img +++ /dev/null diff --git a/tests/testdata/recovery_body b/tests/testdata/recovery_body Binary files differnew file mode 100644 index 000000000..48d7c10a5 --- /dev/null +++ b/tests/testdata/recovery_body diff --git a/tests/testdata/recovery_head b/tests/testdata/recovery_head Binary files differnew file mode 100644 index 000000000..7f494d098 --- /dev/null +++ b/tests/testdata/recovery_head diff --git a/tests/testdata/recovery_tail b/tests/testdata/recovery_tail Binary files differnew file mode 100644 index 000000000..7fe2c6ce8 --- /dev/null +++ b/tests/testdata/recovery_tail |