blob: 3b46cbbef4e9c66f29cf76f7217463928827a9ad [file] [log] [blame]
#!/usr/bin/env bash
if [ -z $ANDROID_BUILD_TOP ]; then
echo "You need to source and lunch before you can use this script"
exit 1
echo "Running tests"
set -e # fail early
echo "+ mmma -j32 $ANDROID_BUILD_TOP/frameworks/base/core/tests/utiltests"
# NOTE Don't actually run the command above since this shell doesn't inherit functions from the
# caller.
make -j32 -C $ANDROID_BUILD_TOP -f build/core/ MODULES-IN-frameworks-base-core-tests-utiltests
set -x # print commands
adb root
adb wait-for-device
adb install -r -g "$OUT/data/app/FrameworksUtilTests/FrameworksUtilTests.apk"
adb shell am instrument -w "$@" ''