blob: 67bbad0fe00f63de702fc0d866add4e2c4437028 [file] [log] [blame]
Elliott Hughes40ef99e2011-08-11 17:44:34 -07001#!/bin/sh
2#
3# Copyright (C) 2011 The Android Open Source Project
4#
5# Licensed under the Apache License, Version 2.0 (the "License");
6# you may not use this file except in compliance with the License.
7# You may obtain a copy of the License at
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS,
13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
16
Elliott Hughes4b3b7272011-08-18 09:52:17 -070017aexec=aexec
18invoke_with=
19
20while true; do
21 if [ "$1" = "--invoke-with" ]; then
22 shift
23 invoke_with="$1"
24 shift
25 elif [ "$1" = "-d" ]; then
26 aexec="aexecd"
27 shift
28 elif expr "$1" : "--" >/dev/null 2>&1; then
29 echo "unknown option: $1" 1>&2
30 exit 1
31 else
32 break
33 fi
34done
35
Elliott Hughes40ef99e2011-08-11 17:44:34 -070036mkdir -p /tmp/android-data/art-cache
37ANDROID_DATA=/tmp/android-data \
38ANDROID_ROOT=$ANDROID_BUILD_TOP/out/host/linux-x86 \
39LD_LIBRARY_PATH=$ANDROID_BUILD_TOP/out/host/linux-x86/lib \
Elliott Hughes4b3b7272011-08-18 09:52:17 -070040$invoke_with $ANDROID_BUILD_TOP/out/host/linux-x86/bin/$aexec \
Elliott Hughes40ef99e2011-08-11 17:44:34 -070041-Xbootclasspath\
42:$ANDROID_BUILD_TOP/out/host/linux-x86/framework/core-hostdex.jar\
Elliott Hughesf2682d52011-08-15 16:37:04 -070043:$ANDROID_BUILD_TOP/out/host/linux-x86/framework/core-junit-hostdex.jar\
44:$ANDROID_BUILD_TOP/out/host/linux-x86/framework/core-tests-hostdex.jar\
Elliott Hughes40ef99e2011-08-11 17:44:34 -070045:$ANDROID_BUILD_TOP/out/host/linux-x86/framework/bouncycastle-hostdex.jar\
46:$ANDROID_BUILD_TOP/out/host/linux-x86/framework/apache-xml-hostdex.jar \
47$*