commit | d514b61b31ca2b4e2d69d72d4399d37f8ada25c4 | [log] [tgz] |
---|---|---|
author | Connor O'Brien <connoro@google.com> | Wed Nov 30 19:28:47 2016 +0000 |
committer | android-build-merger <android-build-merger@google.com> | Wed Nov 30 19:28:47 2016 +0000 |
tree | 519fa2e30770aaf6cb2b19242c5483f2465867b4 | |
parent | aaeafe73e9bb22d82d94106c1a558bbea514bde2 [diff] | |
parent | 848519fcfaa0cd1de4b022e4b23b3181a81a756d [diff] |
Merge "Switch update verifier to HIDL HAL" am: 1528def46e am: ae2463bb35 am: 95beb966e2 am: 848519fcfa Change-Id: I0ba4c571f91601227343ab9e8f7c8a232e75f9ef
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.