commit | 9128e5f85a839282ce890f614670f4b20af793ed | [log] [tgz] |
---|---|---|
author | Vineela Tummalapalli <vineela.tummalapalli@intel.com> | Thu Nov 10 03:04:19 2016 +0000 |
committer | android-build-merger <android-build-merger@google.com> | Thu Nov 10 03:04:19 2016 +0000 |
tree | 1409c077838c46ddd93b789da76685f7f4f4f5f7 | |
parent | e10ff54e909094972f598ffc320a37347892ecdc [diff] | |
parent | 62aaba5a3f4cc78f4d7cde9a211da673707fc72e [diff] |
Merge "Add 'reboot bootloader' to bootloader_message." am: a5538b87e8 am: 118e814bfe am: 62aaba5a3f Change-Id: Iff0eca5ba1522c3e51afc439d8008c7ad781b871
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.