blob: 5e123ec20a2f0861c02b3dce05477899b0c6b85e [file] [log] [blame]
#!/bin/bash
while [[ $# -gt 0 ]]; do
case "$1" in
--rebuild ) echo Rebuild && rebuild=true;;
* ) com_opts+=($1);;
esac
shift
done
if [[ -z $ANDROID_PRODUCT_OUT && $rebuilld == true ]]; then
echo You must lunch before running this test.
exit 0
fi
if [[ $rebuild == true ]]; then
make -j4 FrameworksCoreInputMethodTests
TESTAPP=${ANDROID_PRODUCT_OUT}/data/app/FrameworksCoreInputMethodTests.apk
COMMAND="adb install -r $TESTAPP"
echo $COMMAND
$COMMAND
fi
adb shell am instrument -w -e class android.os.InputMethodTest com.android.frameworks.coretests.inputmethod/android.test.InstrumentationTestRunner