• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/usr/bin/env bash
2
3if [ -z $ANDROID_BUILD_TOP ]; then
4  echo "You need to source and lunch before you can use this script"
5  exit 1
6fi
7
8echo "Running tests"
9
10set -e # fail early
11
12echo "+ mmma -j32 $ANDROID_BUILD_TOP/frameworks/base/packages/Osu2/tests"
13# NOTE Don't actually run the command above since this shell doesn't inherit functions from the
14#      caller.
15make -j32 -C $ANDROID_BUILD_TOP -f build/core/main.mk MODULES-IN-frameworks-base-packages-Osu2-tests
16
17set -x # print commands
18
19adb root
20adb wait-for-device
21
22adb install -r -g "$OUT/data/app/OsuTests/OsuTests.apk"
23
24adb shell am instrument -w "$@" 'com.android.osu.tests/android.support.test.runner.AndroidJUnitRunner'
25