123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- #!/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
- fi
- echo "Running tests"
- set -e
- echo "+ mmma -j32 $ANDROID_BUILD_TOP/system/connectivity/wificond"
- make -j32 -C $ANDROID_BUILD_TOP -f build/core/main.mk \
- MODULES-IN-system-connectivity-wificond \
- MODULES-IN-frameworks-opt-net-wifi-libwifi_system
- set -x
- adb wait-for-device
- adb root
- adb wait-for-device
- if adb remount | grep 'disable-verity'; then
- adb disable-verity
- adb reboot
- adb wait-for-device
- adb root
- adb wait-for-device
- adb remount
- fi
- adb sync
- adb shell /data/nativetest/wificond_unit_test/wificond_unit_test
- adb shell /data/nativetest64/wificond_unit_test/wificond_unit_test
|