Skip to content

Instantly share code, notes, and snippets.

@alterakey
Created October 11, 2011 14:56
Show Gist options
  • Save alterakey/1278306 to your computer and use it in GitHub Desktop.
Save alterakey/1278306 to your computer and use it in GitHub Desktop.
An experimental test instrument launcher for Android
#/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