commit | c0044e9f89f626ef4983df219967117b714dcfc8 | [log] [tgz] |
---|---|---|
author | Tao Bao <tbao@google.com> | Wed Dec 28 22:32:28 2016 +0000 |
committer | android-build-merger <android-build-merger@google.com> | Wed Dec 28 22:32:28 2016 +0000 |
tree | 4e12ff6a9d0882076897f11302c6043b0d86b0a4 | |
parent | e6c1d578bd06b57805553c941758e60de3a32fa2 [diff] | |
parent | 1b296587020572809c27d72c1bd7fd64a4cf8a8a [diff] |
Merge "applypatch: Don't expose FindMatchingPatch()." am: b8d6523acf am: 29e1b7b4b2 am: 1b29658702 Change-Id: I5b20f06908d34b0eba9b27b72cc686a57b52aa11
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
recovery-refresh
and recovery-persist
executables exist only on systems without /cache partition. And we need to follow special steps to run tests for them.
Execute the test on an A/B device first. The test should fail but it will log some contents to pmsg.
Reboot the device immediately and run the test again. The test should save the contents of pmsg buffer into /data/misc/recovery/inject.txt. Test will pass if this file has expected contents.