blob: 1e0ec37c52e231eedb155bf4fa304f1c15feb4a2 [file] [log] [blame]
Peter Qiu601964b2016-09-26 13:14:13 -07001#!/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/wifi/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-wifi-tests
16
17set -x # print commands
18
19adb root
20adb wait-for-device
21
Roshan Piusfdb80fc2019-03-14 09:11:08 -070022adb install -r -g "$OUT/testcases/FrameworksWifiApiTests/arm64/FrameworksWifiApiTests.apk"
Peter Qiu601964b2016-09-26 13:14:13 -070023
Rebecca Silberstein3f26ff2f2018-04-23 15:54:36 -070024adb shell am instrument --no-hidden-api-checks -w "$@" \
KOUSHIK PANUGANTIc9f79d82018-12-18 18:43:13 -080025 'android.net.wifi.test/androidx.test.runner.AndroidJUnitRunner'