commit | 27f68794eb9c8e625520739226351475dda125b6 | [log] [tgz] |
---|---|---|
author | Tao Bao <tbao@google.com> | Wed Dec 14 20:53:22 2016 +0000 |
committer | android-build-merger <android-build-merger@google.com> | Wed Dec 14 20:53:22 2016 +0000 |
tree | e89cff5f926361352e0956adc9042378082af1e2 | |
parent | 4a9fe8e1d210438f23513b529e13ac8ea42adff2 [diff] | |
parent | 9c5655a4e4064a3b2f50756f3c4c941d491420ab [diff] |
Merge "updater: Fix the operator order." am: 2bb3a2270e am: f7f3f821a8 am: e97575e7ae am: 9c5655a4e4 Change-Id: I23a0d7d4028243e141f89adc9857349602a10b15
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.