mukesh agrawal | 28882ed | 2017-03-28 18:19:49 -0700 | [diff] [blame] | 1 | #!/usr/bin/env bash |
| 2 | |
| 3 | if [ -z $ANDROID_BUILD_TOP ]; then |
| 4 | echo "You need to source and lunch before you can use this script" |
| 5 | exit 1 |
| 6 | fi |
| 7 | |
| 8 | echo "Running tests" |
| 9 | |
| 10 | set -e # fail early |
| 11 | |
| 12 | echo "+ mmma -j32 $ANDROID_BUILD_TOP/frameworks/base/core/tests/utiltests" |
| 13 | # NOTE Don't actually run the command above since this shell doesn't inherit functions from the |
| 14 | # caller. |
| 15 | make -j32 -C $ANDROID_BUILD_TOP -f build/core/main.mk MODULES-IN-frameworks-base-core-tests-utiltests |
| 16 | |
| 17 | set -x # print commands |
| 18 | |
| 19 | adb root |
| 20 | adb wait-for-device |
| 21 | |
| 22 | adb install -r -g "$OUT/data/app/FrameworksUtilTests/FrameworksUtilTests.apk" |
| 23 | |
KOUSHIK PANUGANTI | 4bb5f3a | 2018-12-17 18:23:11 -0800 | [diff] [blame] | 24 | adb shell am instrument -w "$@" 'com.android.frameworks.utiltests/androidx.test.runner.AndroidJUnitRunner' |