1#!/bin/bash 2# 3# Run tests in this directory. 4# 5 6if [ -z "$ANDROID_BUILD_TOP" ]; then 7 echo "Android build environment not set" 8 exit -1 9fi 10 11# ensure we have mm 12. $ANDROID_BUILD_TOP/build/envsetup.sh 13 14mm 15 16echo "waiting for device" 17 18adb root && adb wait-for-device remount 19 20echo "========================================" 21echo "testing primitives" 22adb push $OUT/system/lib/libaudioutils.so /system/lib 23adb push $OUT/data/nativetest/primitives_tests /system/bin 24adb shell /system/bin/primitives_tests 25