summaryrefslogtreecommitdiff
path: root/tests/testClass.sh
blob: 1889d32df1765aee89dce1af00cf33ab2ad771d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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