summaryrefslogtreecommitdiffstats
path: root/script/test.sh
diff options
context:
space:
mode:
authorChiao Cheng <chiaocheng@google.com>2012-09-05 15:48:22 -0700
committerChiao Cheng <chiaocheng@google.com>2012-09-17 15:55:18 -0700
commit9149987fe952e4d705cf3eb42fe2277b8010761e (patch)
treededd4c5809cb70512f4c0758f951e19f48476ab9 /script/test.sh
parent99d3803a9f2ab8ba595c2289d1b38408918c6c30 (diff)
downloadandroid_packages_apps_Contacts-9149987fe952e4d705cf3eb42fe2277b8010761e.tar.gz
android_packages_apps_Contacts-9149987fe952e4d705cf3eb42fe2277b8010761e.tar.bz2
android_packages_apps_Contacts-9149987fe952e4d705cf3eb42fe2277b8010761e.zip
Adding convenience script to run unit tests.
Change-Id: Ie2b310563ef2777867873d68d4c51897f6408794
Diffstat (limited to 'script/test.sh')
-rwxr-xr-xscript/test.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/script/test.sh b/script/test.sh
new file mode 100755
index 000000000..306340a52
--- /dev/null
+++ b/script/test.sh
@@ -0,0 +1,18 @@
+#!/bin/sh
+#
+# Copyright (C) 2012 The Android Open Source Project
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+adb shell am instrument ${@} -w com.android.contacts.tests/android.test.InstrumentationTestRunner