run_core_systemproperties_test.sh revision c91437d38ae14a20046de47831eb0f9bfd329af7
1#!/bin/bash 2 3while [[ $# -gt 0 ]]; do 4 case "$1" in 5 --rebuild ) echo Rebuild && rebuild=true;; 6 * ) com_opts+=($1);; 7 esac 8 shift 9done 10 11if [[ -z $ANDROID_PRODUCT_OUT && $rebuilld == true ]]; then 12 echo You must lunch before running this test. 13 exit 0 14fi 15 16if [[ $rebuild == true ]]; then 17 make -j4 FrameworksCoreSystemPropertiesTests 18 TESTAPP=${ANDROID_PRODUCT_OUT}/data/app/FrameworksCoreSystemPropertiesTests.apk 19fi 20 21adb shell am instrument -w -e class android.os.SystemPropertiesTest com.android.frameworks.coretests.systemproperties/android.test.InstrumentationTestRunner 22