commit | f358a7d12b8e02b6df24924b7e2ee4896bcb9f0c | [log] [tgz] |
---|---|---|
author | Tianjie Xu <xunchang@google.com> | Sun Sep 17 21:48:24 2017 +0000 |
committer | android-build-merger <android-build-merger@google.com> | Sun Sep 17 21:48:24 2017 +0000 |
tree | c6b1c35ab3212b52fd48bbe258ca96e4eb24f943 | |
parent | 365e0235398893f9b87ef3c3c58f1dddbb0c51e6 [diff] | |
parent | ed50c1817fc0ab29dcd08f1765eb50e0baa80123 [diff] |
Merge "Fix the dangling pointer when setting up arguments of imgdiff" am: ca5a071307 am: 2cb1fb45c0 am: ed50c1817f Change-Id: Ia8012462d20f8b6ba15b12caf9b4e9be43bb2a47
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.