Created
October 11, 2011 14:56
-
-
Save alterakey/1278306 to your computer and use it in GitHub Desktop.
An experimental test instrument launcher for Android
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/bash | |
pkg=$1 | |
intr() { | |
adb shell am start -a android.intent.action.MAIN -c android.intent.category.HOME | |
exit 0 | |
} | |
trap intr INT | |
adb shell am instrument -w ${pkg}/android.test.InstrumentationTestRunner & | |
adb logcat |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment