1 #!/bin/bash 2 # 3 # Run tests in this directory. 4 # 5 6 if [ -z "$ANDROID_BUILD_TOP" ]; then 7 echo "Android build environment not set" 8 exit -1 9 fi 10 11 # ensure we have mm 12 . $ANDROID_BUILD_TOP/build/envsetup.sh 13 14 mm 15 16 echo "waiting for device" 17 18 adb root && adb wait-for-device remount 19 20 echo "========================================" 21 echo "testing primitives" 22 adb push $OUT/system/lib/libaudioutils.so /system/lib 23 adb push $OUT/data/nativetest/primitives_tests/primitives_tests /system/bin 24 adb shell /system/bin/primitives_tests 25 26 echo "testing power" 27 adb push $OUT/data/nativetest/power_tests/power_tests /system/bin 28 adb shell /system/bin/power_tests 29 30 echo "testing channels" 31 adb push $OUT/data/nativetest/channels_tests/channels_tests /system/bin 32 adb shell /system/bin/channels_tests 33 34 echo "string test" 35 adb push $OUT/data/nativetest/string_tests/string_tests /system/bin 36 adb shell /system/bin/string_tests 37 38 echo "format tests" 39 adb push $OUT/data/nativetest/format_tests/format_tests /system/bin 40 adb shell /system/bin/format_tests 41 42 echo "benchmarking primitives" 43 adb push $OUT/system/bin/primitives_benchmark /system/bin 44 adb shell /system/bin/primitives_benchmark 45