summaryrefslogtreecommitdiffstats
path: root/tools/art
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2011-08-18 09:52:17 -0700
committerElliott Hughes <enh@google.com>2011-08-18 09:59:58 -0700
commit4b3b727d405da366f480f438e9b968ee09bf958d (patch)
tree2330063ea97fdc96b5021ec05cc680454ee0bf46 /tools/art
parentb765be0d656c3073402693aeaf64e95a0e49f218 (diff)
downloadart-4b3b727d405da366f480f438e9b968ee09bf958d.tar.gz
art-4b3b727d405da366f480f438e9b968ee09bf958d.tar.bz2
art-4b3b727d405da366f480f438e9b968ee09bf958d.zip
Add vogar-like --invoke-with to 'art', and fix a bug valgrind finds.
Also add -d to run aexecd. Change-Id: I38fefd9ad2e08b42039cb2a09351b4e6e30a9c5c
Diffstat (limited to 'tools/art')
-rwxr-xr-xtools/art21
1 files changed, 20 insertions, 1 deletions
diff --git a/tools/art b/tools/art
index 8033c5199..67bbad0fe 100755
--- a/tools/art
+++ b/tools/art
@@ -14,11 +14,30 @@
# See the License for the specific language governing permissions and
# limitations under the License.
+aexec=aexec
+invoke_with=
+
+while true; do
+ if [ "$1" = "--invoke-with" ]; then
+ shift
+ invoke_with="$1"
+ shift
+ elif [ "$1" = "-d" ]; then
+ aexec="aexecd"
+ shift
+ elif expr "$1" : "--" >/dev/null 2>&1; then
+ echo "unknown option: $1" 1>&2
+ exit 1
+ else
+ break
+ fi
+done
+
mkdir -p /tmp/android-data/art-cache
ANDROID_DATA=/tmp/android-data \
ANDROID_ROOT=$ANDROID_BUILD_TOP/out/host/linux-x86 \
LD_LIBRARY_PATH=$ANDROID_BUILD_TOP/out/host/linux-x86/lib \
-$ANDROID_BUILD_TOP/out/host/linux-x86/bin/aexec \
+$invoke_with $ANDROID_BUILD_TOP/out/host/linux-x86/bin/$aexec \
-Xbootclasspath\
:$ANDROID_BUILD_TOP/out/host/linux-x86/framework/core-hostdex.jar\
:$ANDROID_BUILD_TOP/out/host/linux-x86/framework/core-junit-hostdex.jar\