Fixup android launch script to launch VisualBench as well as SampleApp
BUG=skia: Review URL: https://codereview.chromium.org/1185473003
This commit is contained in:
parent
78cff136a4
commit
01f38915e1
@ -12,5 +12,17 @@ if [[ -n $RESOURCE_PATH ]]; then
|
||||
adb_push_if_needed "${SKIA_SRC_DIR}/resources" $RESOURCE_PATH
|
||||
fi
|
||||
|
||||
$ADB ${DEVICE_SERIAL} shell am start -S -n "com.skia/.SkiaSampleActivity" --es "cmdLineFlags" "${APP_ARGS[*]}"
|
||||
app=${APP_ARGS[0]}
|
||||
if [[ ${app} == '-'* ]]; then
|
||||
app="SampleApp"
|
||||
APP_ARGS=( "SampleApp" ${APP_ARGS[*]} )
|
||||
fi
|
||||
|
||||
if [[ ${app} == 'SampleApp' ]]; then
|
||||
$ADB ${DEVICE_SERIAL} shell am start -S -n "com.skia/.SkiaSampleActivity" --es "cmdLineFlags" "${APP_ARGS[*]:1}"
|
||||
elif [[ ${app} == "VisualBench" ]] ; then
|
||||
$ADB ${DEVICE_SERIAL} shell am start -S -n "com.skia/.VisualBenchActivity" --es "cmdLineFlags" "${APP_ARGS[*]:1}"
|
||||
else
|
||||
echo "ERROR: supports either 'SampleApp' or 'VisualBench' as valid apps"
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user