summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorNicolas Geoffray <ngeoffray@google.com>2015-03-30 23:01:28 +0100
committerNicolas Geoffray <ngeoffray@google.com>2015-03-31 08:44:27 +0100
commita2c1861444f83316f22a04dfa5ded74337c129de (patch)
tree0b5ada8b8c99229cd3fc4352d1a94c0bd2f177dd /tools
parentc4a12419a3a607716de7f3c9f4c3e004d9362484 (diff)
downloadart-a2c1861444f83316f22a04dfa5ded74337c129de.zip
art-a2c1861444f83316f22a04dfa5ded74337c129de.tar.gz
art-a2c1861444f83316f22a04dfa5ded74337c129de.tar.bz2
Workaround for network issues: use 127.0.0.1.
Change-Id: I3c0ed810165bc8945c1dfaa028eb9a7bed674281
Diffstat (limited to 'tools')
-rwxr-xr-xtools/run-jdwp-tests.sh15
1 files changed, 6 insertions, 9 deletions
diff --git a/tools/run-jdwp-tests.sh b/tools/run-jdwp-tests.sh
index e52fc3f..e87ae08 100755
--- a/tools/run-jdwp-tests.sh
+++ b/tools/run-jdwp-tests.sh
@@ -19,11 +19,6 @@ if [ ! -d libcore ]; then
exit 1
fi
-if [[ $ANDROID_SERIAL == 03a79ae90ae5889b ]] || [[ $ANDROID_SERIAL == HT4CTJT03670 ]] || [[ $ANDROID_SERIAL == HT49CJT00070 ]]; then
- echo "Not run because of localhost failures. Investigating."
- exit 0
-fi
-
# Jar containing all the tests.
test_jar=out/host/linux-x86/framework/apache-harmony-jdwp-tests-hostdex.jar
junit_jar=out/host/linux-x86/framework/junit.jar
@@ -43,11 +38,10 @@ device_dir="--device-dir=/data/local/tmp"
# We use the art script on target to ensure the runner and the debuggee share the same
# image.
vm_command="--vm-command=$art"
+image_compiler_option=""
while true; do
if [[ "$1" == "--mode=host" ]]; then
- echo "Host testing currently disabled because of buildbot. Investigating..."
- exit 0
# Specify bash explicitly since the art script cannot, since it has to run on the device
# with mksh.
art="bash out/host/linux-x86/bin/art"
@@ -57,6 +51,9 @@ while true; do
device_dir=""
# Vogar knows which VM to use on host.
vm_command=""
+ # We only compile the image on the host. Note that not providing this option
+ # puts us below the adb command limit for vogar.
+ image_compiler_option="--vm-arg -Ximage-compiler-option --vm-arg --debuggable"
shift
elif [[ $1 == -Ximage:* ]]; then
image="$1"
@@ -74,11 +71,11 @@ vogar $vm_command \
--verbose \
$args \
$device_dir \
- --vm-arg -Ximage-compiler-option \
- --vm-arg --debuggable \
+ $image_compiler_option \
--timeout 600 \
--vm-arg -Djpda.settings.verbose=true \
--vm-arg -Djpda.settings.syncPort=34016 \
+ --vm-arg -Djpda.settings.transportAddress=127.0.0.1:55107 \
--vm-arg -Djpda.settings.debuggeeJavaPath="$art $image $debuggee_args" \
--classpath $test_jar \
--classpath $junit_jar \