commit | 263599338d8850e4ba7d92bff71ea06fc54bab2c | [log] [tgz] |
---|---|---|
author | Tao Bao <tbao@google.com> | Sun Nov 20 05:18:34 2016 +0000 |
committer | android-build-merger <android-build-merger@google.com> | Sun Nov 20 05:18:34 2016 +0000 |
tree | c5c1e7ab59f35d76bbe1d20cc2cd0695cded34c7 | |
parent | f2b1307bae364899b16c73a3a26b4f19409b0446 [diff] | |
parent | 723b5d505f286ce1704f8f8b316d47270f99b1e8 [diff] |
Merge "update_verifier: Sync Android.mk with aosp-master." into stage-aosp-master am: ad57e2ca2c am: 9f4d385704 am: 723b5d505f Change-Id: I7fed34988f078c6136bb0c028b7cc14b63ca31f6
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.