satok | c91437d | 2011-03-03 13:54:38 -0800 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | while [[ $# -gt 0 ]]; do |
| 4 | case "$1" in |
| 5 | --rebuild ) echo Rebuild && rebuild=true;; |
| 6 | * ) com_opts+=($1);; |
| 7 | esac |
| 8 | shift |
| 9 | done |
| 10 | |
| 11 | if [[ -z $ANDROID_PRODUCT_OUT && $rebuilld == true ]]; then |
| 12 | echo You must lunch before running this test. |
| 13 | exit 0 |
| 14 | fi |
| 15 | |
| 16 | if [[ $rebuild == true ]]; then |
| 17 | make -j4 FrameworksCoreSystemPropertiesTests |
| 18 | TESTAPP=${ANDROID_PRODUCT_OUT}/data/app/FrameworksCoreSystemPropertiesTests.apk |
satok | decee8d | 2011-03-07 11:32:51 -0800 | [diff] [blame] | 19 | COMMAND="adb install -r $TESTAPP" |
| 20 | echo $COMMAND |
| 21 | $COMMAND |
satok | c91437d | 2011-03-03 13:54:38 -0800 | [diff] [blame] | 22 | fi |
| 23 | |
| 24 | adb shell am instrument -w -e class android.os.SystemPropertiesTest com.android.frameworks.coretests.systemproperties/android.test.InstrumentationTestRunner |