summaryrefslogtreecommitdiffstats
path: root/tests/testdata/recovery.img (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Generate recovery.img for unittest during build timeTianjie Xu2020-02-211-0/+0
| | | | | | | | | | | | | | The unit tests for imgpatch is comparing the compressed bytes. As a result, these unit tests will fail with libz change. Since the recovery image is just a gzipped ramdisk with some wrappings, we can generate with minigzip it during the build time. This matches the usage in the real world, where we generate the patch with the host side libz; and apply the patch with the library on the device. Bug: 149443852 Test: tests pass on Pixel3 Change-Id: I7885765a161c6bf765671bc55a72cfcaa04b4138
* applypatch: Add testcases for applypatch executable.Tao Bao2016-11-011-0/+0
Refactor applypatch/main.cpp into libapplypatch_modes so that we can add testcases. Some changes to applypatch/main.cpp: - Replace char** argv with const char**; - Use android::base::Split() to split ":"; - Use android::base::ParseUInt(). Bug: 32383590 Test: Unit tests pass, install-recovery.sh works. Change-Id: I44e7bfa5ab717d439ea1d0ee9ddb7b2c40bb95a4