blob: d1f49c68e25620e5bf08f70f9adeffd25100fccd (
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
|
#! /bin/sh -x
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"
|