| if [ -z $ANDROID_BUILD_TOP ]; then |
| echo "You need to source and lunch before you can use this script" |
| echo "+ mmma -j32 $ANDROID_BUILD_TOP/frameworks/base/wifi/tests" |
| # NOTE Don't actually run the command above since this shell doesn't inherit functions from the |
| make -j32 -C $ANDROID_BUILD_TOP -f build/core/main.mk MODULES-IN-frameworks-base-wifi-tests |
| TARGET_ARCH=$($ANDROID_BUILD_TOP/build/soong/soong_ui.bash --dumpvar-mode TARGET_ARCH) |
| adb install -r -g "$OUT/testcases/FrameworksWifiApiTests/$TARGET_ARCH/FrameworksWifiApiTests.apk" |
| adb shell am instrument --no-hidden-api-checks -w "$@" \ |
| 'android.net.wifi.test/androidx.test.runner.AndroidJUnitRunner' |