commit | cbb044239ac0d9e6878a2fe62cc278808d254afd | [log] [tgz] |
---|---|---|
author | Tao Bao <tbao@google.com> | Sat Dec 10 20:54:31 2016 +0000 |
committer | android-build-merger <android-build-merger@google.com> | Sat Dec 10 20:54:31 2016 +0000 |
tree | 2df7e68f3a719c63936c21bca858a8a76077a957 | |
parent | f4fabe254c576d53c7634b5569eae1853da3fa07 [diff] | |
parent | 594dc4f5be6effa97f1a2b87879790f1f7e65970 [diff] |
Merge "recovery: Remove obsolete code that supports "CACHE:foo" format." am: 594dc4f5be Change-Id: I290bcbe38e8aea9f296ddd0e0263e6e02cf92885
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.