commit | dec8a91aec61f3c7d376624349a1710300248933 | [log] [tgz] |
---|---|---|
author | Tao Bao <tbao@google.com> | Tue Feb 14 02:08:42 2017 +0000 |
committer | android-build-merger <android-build-merger@google.com> | Tue Feb 14 02:08:42 2017 +0000 |
tree | a892ef2dc7bb86a2ca60a859411f36d5aee68115 | |
parent | 16b509535bc1ccea80463467849aa1273aa5a946 [diff] | |
parent | b1b8e89db8e83cf6448f075abfa9ebc5738f1803 [diff] |
Merge "recovery: Clean up browse_directory()." am: 635eb1c83e am: c42d44bbeb am: 19e7776451 am: b1b8e89db8 Change-Id: I5eb70db5411cb8e5a1d469f132d4b974df4fa0a7
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.
ResourceTest
validates whether the png files are qualified as background text image under recovery.
1. `adb sync data` to make sure the test-dir has the images to test. 2. The test will automatically pickup and verify all `_text.png` files in the test dir.