Home | History | Annotate | Download | only in tests
      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 /system/bin
     24 adb shell /system/bin/primitives_tests
     25