commit | 1b296587020572809c27d72c1bd7fd64a4cf8a8a | [log] [tgz] |
---|---|---|
author | Tao Bao <tbao@google.com> | Wed Dec 28 22:24:27 2016 +0000 |
committer | android-build-merger <android-build-merger@google.com> | Wed Dec 28 22:24:27 2016 +0000 |
tree | 4e12ff6a9d0882076897f11302c6043b0d86b0a4 | |
parent | 4e2471d6dd035159f198a9d76d2422e8115ef701 [diff] | |
parent | 29e1b7b4b255bda68d5502c97d3c2d0c3ec1b25b [diff] |
Merge "applypatch: Don't expose FindMatchingPatch()." am: b8d6523acf am: 29e1b7b4b2 Change-Id: Ica4a7e02c1939065c404f9789941ee9206611643
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.