commit | d770d2e7afd8a909156447c2b79d8739228279d7 | [log] [tgz] |
---|---|---|
author | Tao Bao <tbao@google.com> | Mon Oct 03 15:26:06 2016 -0700 |
committer | Tao Bao <tbao@google.com> | Mon Oct 03 15:33:20 2016 -0700 |
tree | e69e90d4386778d6c6ef811f8f93820a5484dd38 | |
parent | 695ef7cacc128efc0b710cb25d39c72da2eaef36 [diff] |
edify: Move the testcases to gtest. Now they live in tests/component/edify_test.cpp. Also rename edify/main.cpp to edify/edify_parser.cpp. It becomes a host-side debugging tool that validates the input edify script. However, it supports edify builtin functions only and doesn't recognize the ones defined via updater. Test: recovery_component_test passes on device. Change-Id: Ib94a787bf15098a9cc078d256b6a6dc96ff12b2e
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