summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtests/testClass.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/testClass.sh b/tests/testClass.sh
new file mode 100755
index 00000000..1889d32d
--- /dev/null
+++ b/tests/testClass.sh
@@ -0,0 +1,17 @@
+#!/bin/bash
+classfile=$1
+classline=`grep " class" $classfile`
+next=0
+for word in $classline
+do
+ if [ $word == "class" ]
+ then
+ next=1
+ elif [ $next -eq 1 ]
+ then
+ classname=$word
+ next=0
+ fi
+done
+
+adb shell am instrument -w -e class se.leap.bitmaskclient.test.$classname se.leap.bitmaskclient.test/android.test.InstrumentationTestRunner