From 35085356f540e181a75784d9dbfcc63ea920f0d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Parm=C3=A9nides=20GV?= Date: Tue, 26 Nov 2013 19:32:27 +0100 Subject: Script to run tests from a test class directly. It receives the path to the file, and it runs the tests coded in there. --- tests/testClass.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 tests/testClass.sh (limited to 'tests') 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 -- cgit v1.2.3