summaryrefslogtreecommitdiffstats
path: root/services/audioflinger/tests/run_all_unit_tests.sh
diff options
context:
space:
mode:
authorAndy Hung <hunga@google.com>2014-04-01 18:31:42 -0700
committerAndy Hung <hunga@google.com>2014-05-28 12:02:29 -0700
commit546734b3ab577d46afe863515104a062e88a109b (patch)
treea8f583b275ffeaf040f1f2cd31d877108f2be767 /services/audioflinger/tests/run_all_unit_tests.sh
parent498692535c7ceecb3434a99c47e4c90ba3fdd90e (diff)
downloadframeworks_av-546734b3ab577d46afe863515104a062e88a109b.zip
frameworks_av-546734b3ab577d46afe863515104a062e88a109b.tar.gz
frameworks_av-546734b3ab577d46afe863515104a062e88a109b.tar.bz2
Add tests directory for AudioFlinger
Native tests for audio resampler through gtest framework. Change-Id: Ia340ca51f9b9b78d67e03e3541e4462b98578c95
Diffstat (limited to 'services/audioflinger/tests/run_all_unit_tests.sh')
-rwxr-xr-xservices/audioflinger/tests/run_all_unit_tests.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/services/audioflinger/tests/run_all_unit_tests.sh b/services/audioflinger/tests/run_all_unit_tests.sh
new file mode 100755
index 0000000..ffae6ae
--- /dev/null
+++ b/services/audioflinger/tests/run_all_unit_tests.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+if [ -z "$ANDROID_BUILD_TOP" ]; then
+ echo "Android build environment not set"
+ exit -1
+fi
+
+echo "waiting for device"
+adb root && adb wait-for-device remount
+
+adb shell /system/bin/resampler_tests