commit | 3e41d224006b8e3c74bca7d41197e779af9d3689 | [log] [tgz] |
---|---|---|
author | Tao Bao <tbao@google.com> | Wed Feb 01 05:23:22 2017 +0000 |
committer | android-build-merger <android-build-merger@google.com> | Wed Feb 01 05:23:22 2017 +0000 |
tree | a5691719cd5fa1a9040819d84ffd71659dbd4518 | |
parent | 85ff6f7d06e27e50ba5a3f05175aaf69163e3d60 [diff] | |
parent | e4cf63be78225a54c86cd92f1a2a35b052ea6b37 [diff] |
Merge "bootable/recovery: cleanup compiler warnings (potential leak of memory)" am: 7ab9c3812d am: 29ef12f777 am: 1c35b48253 am: e4cf63be78 Change-Id: I4fca7ee7e8164e049d966822670d486c3e3fc183
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.