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 "========================================"
21
22echo "testing fdtostring"
23adb push $OUT/data/nativetest/fdtostring_tests/fdtostring_tests /system/bin
24adb shell /system/bin/fdtostring_tests
25
26echo "testing primitives"
27adb push $OUT/system/lib/libaudioutils.so /system/lib
28adb push $OUT/data/nativetest/primitives_tests/primitives_tests /system/bin
29adb shell /system/bin/primitives_tests
30
31echo "testing power"
32adb push $OUT/data/nativetest/power_tests/power_tests /system/bin
33adb shell /system/bin/power_tests
34
35echo "testing channels"
36adb push $OUT/data/nativetest/channels_tests/channels_tests /system/bin
37adb shell /system/bin/channels_tests
38
39echo "string test"
40adb push $OUT/data/nativetest/string_tests/string_tests /system/bin
41adb shell /system/bin/string_tests
42
43echo "format tests"
44adb push $OUT/data/nativetest/format_tests/format_tests /system/bin
45adb shell /system/bin/format_tests
46
47echo "simplelog tests"
48adb push $OUT/data/nativetest/simplelog_tests/simplelog_tests /system/bin
49adb shell /system/bin/simplelog_tests
50
51echo "statistics tests"
52adb push $OUT/data/nativetest/statistics_tests/statistics_tests /system/bin
53adb shell /system/bin/statistics_tests
54
55echo "timestampverifier tests"
56adb push $OUT/data/nativetest/timestampverifier_tests/timestampverifier_tests /system/bin
57adb shell /system/bin/timestampverifier_tests
58
59echo "variadic tests"
60adb push $OUT/data/nativetest/variadic_tests/variadic_tests /system/bin
61adb shell /system/bin/variadic_tests
62
63echo "logplot tests"
64adb push $OUT/data/nativetest/logplot_tests/logplot_tests /system/bin
65adb shell /system/bin/logplot_tests
66
67echo "benchmarking_statistics"
68adb push $OUT/system/bin/statistics_benchmark /system/bin
69adb shell /system/bin/statistics_benchmark
70
71echo "benchmarking primitives"
72adb push $OUT/system/bin/primitives_benchmark /system/bin
73adb shell /system/bin/primitives_benchmark
74