summaryrefslogtreecommitdiff
path: root/tests/testClass.sh
diff options
context:
space:
mode:
authorcyBerta <richy@cyborgsociety.org>2013-11-30 00:56:28 +0100
committercyBerta <richy@cyborgsociety.org>2013-11-30 00:56:28 +0100
commit8462f8a65eacbc47d8e63db058584bed0898e279 (patch)
tree7df2795d04ac8550d1e6907d5efa4c75c5fb07d3 /tests/testClass.sh
parentecd01db4ca5c0000d671e888ebdf97c3fdbd51cc (diff)
parent6bf1c8ccbf83defb44e279ed4236e9538c3a09ba (diff)
Merge branch 'feature/tests-0.2.1' into develop
Diffstat (limited to 'tests/testClass.sh')
-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