Running an Android Unit Test
Published
Running specific AOSP unit tests on an Android device is not entirely obvious, so this is what I cobbled together.
A similar approach can be used for any Android module.
cd aosp
bash
source build/envsetup.sh && \
lunch linaro_arm64-userdebug && \
mmm system/core/libsync/tests && \
adb root && \
adb remount && \
adb sync && \
adb shell /data/nativetest64/sync-unit-tests/sync-unit-tests