blob: 4b87c7eded2dde418e5a988608b8c2f029d2859c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#! /bin/sh -x
set -e
SDK_ROOT=../../..
ANDROID_SDK=$SDK_ROOT/Externals/android-sdk/
pushd $ANDROID_SDK/platform-tools > /dev/null
ADB=`pwd`/adb
popd > /dev/null
case $1 in
debug) suffix=DEBUG;;
checked) suffix=CHECKED;;
profile) suffix=PROFILE;;
release) suffix=;;
*) echo Must have a config!; exit 1;;
esac
snippetName=$2
if [ -z $snippetName ]; then
echo Must have a snippet name!;
exit 1;
fi
executable=Snippet$snippetName$suffix
echo Executable is $executable
# wait until device is ready
$ADB wait-for-device
# run
$ADB shell "cd data/tmp; ./$executable"
|