commit | a5fd5abe80ea5650bc0b638fc693884df5eaaa89 | [log] [tgz] |
---|---|---|
author | Tianjie Xu <xunchang@google.com> | Tue Oct 18 15:18:22 2016 -0700 |
committer | Tianjie Xu <xunchang@google.com> | Tue Oct 18 17:30:38 2016 -0700 |
tree | 811b12d0719b9b82f4294886f73e951ffd0c3df5 | |
parent | 7df1850d37a1eb67f1ecc8623ae2c2066ec3b678 [diff] |
Add a unit test for applypatch_check If no sha1 is specified, applypatch_check should pass as long as the file content loads successfully. Add a unit case acccordingly. Test: Unit tests passed Bug: 32243751 Change-Id: I8c013be67c197d2935e11cf6acc59fb9b943cfd9
mm -j && m ramdisk-nodeps && m recoveryimage-nodeps # To boot into the new recovery image # without flashing the recovery partition: adb reboot bootloader fastboot boot $ANDROID_PRODUCT_OUT/recovery.img
# After setting up environment and lunch. mmma -j bootable/recovery # Running the tests on device. adb root adb sync data # 32-bit device adb shell /data/nativetest/recovery_unit_test/recovery_unit_test adb shell /data/nativetest/recovery_component_test/recovery_component_test # Or 64-bit device adb shell /data/nativetest64/recovery_unit_test/recovery_unit_test adb shell /data/nativetest64/recovery_component_test/recovery_component_test