commit | 0c7839ac14a00f32d740c23ddf6df65f2757ece5 | [log] [tgz] |
---|---|---|
author | Tao Bao <tbao@google.com> | Mon Oct 10 15:48:37 2016 -0700 |
committer | Tao Bao <tbao@google.com> | Mon Oct 10 16:49:50 2016 -0700 |
tree | 09167517080321a786bee0f332f72461156002cc | |
parent | 2bd94433f8eddb6f35be5e899d4a885b8e1a3717 [diff] |
Refactor libupdater into a seperate module. So that we can write native tests for updater functions. This CL adds a testcase for getprop() function. Test: mmma bootable/recovery; Run recovery_component_test on device. Change-Id: Iff4c1ff63c5c71aded2f9686fed6b71cc298c228
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