commit | 776ea9b464a1d67a596d3448f2f43f2612aed8b6 | [log] [tgz] |
---|---|---|
author | Tao Bao <tbao@google.com> | Fri Nov 18 02:12:43 2016 +0000 |
committer | android-build-merger <android-build-merger@google.com> | Fri Nov 18 02:12:43 2016 +0000 |
tree | 673809cc2e8d2e735e6656f11d581b3b694a7e25 | |
parent | 29dc892c07a148bb26544f325d3a4f86ee8810ae [diff] | |
parent | d2cd8b4d30424a16139acbb3f327de4ff5b12df1 [diff] |
Merge "applypatch: Use unique_fd to avoid leaking FDs." am: 2e5cf3c0bc am: d2cd8b4d30 Change-Id: I57228be65dfc37f853c3902ad8c5f65c0e3f1018
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.