commit | e97575e7ae4c5a540381d89b81eea1c5a142b639 | [log] [tgz] |
---|---|---|
author | Tao Bao <tbao@google.com> | Wed Dec 14 20:40:52 2016 +0000 |
committer | android-build-merger <android-build-merger@google.com> | Wed Dec 14 20:40:52 2016 +0000 |
tree | ee92a57aa82481a7fe7e81860736f1ae6d52a6e3 | |
parent | 1871a2feeb1214d849ff31dab3a5fe105857d1e7 [diff] | |
parent | f7f3f821a8e88f848b2ffa62687a821681b70976 [diff] |
Merge "updater: Fix the operator order." am: 2bb3a2270e am: f7f3f821a8 Change-Id: I346ad87013e6ebfb06b825ae541fabe7be87649e
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.