From 6705dabdb9a882cc7829abed41e0bb3196fc829c Mon Sep 17 00:00:00 2001 From: Sebastien Hertz Date: Wed, 17 Feb 2016 17:05:52 +0100 Subject: [PATCH] Build jdwp tests with Jack in vogar These tests are compiled with Jack in the CTS so we do the same with vogar now. Bug: 27218415 Change-Id: I69b86e02a6532c1885c4d40f0768bf2b353c9569 --- tools/run-jdwp-tests.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tools/run-jdwp-tests.sh b/tools/run-jdwp-tests.sh index f29e51f04..e4af9fa0d 100755 --- a/tools/run-jdwp-tests.sh +++ b/tools/run-jdwp-tests.sh @@ -20,9 +20,9 @@ if [ ! -d libcore ]; then fi # Jar containing all the tests. -test_jar=${OUT_DIR-out}/host/linux-x86/framework/apache-harmony-jdwp-tests-hostdex.jar +test_jack=${OUT_DIR-out}/host/common/obj/JAVA_LIBRARIES/apache-harmony-jdwp-tests-hostdex_intermediates/classes.jack -if [ ! -f $test_jar ]; then +if [ ! -f $test_jack ]; then echo "Before running, you must build jdwp tests and vogar:" \ "make apache-harmony-jdwp-tests-hostdex vogar vogar.jar" exit 1 @@ -117,6 +117,9 @@ if [[ $verbose == "yes" ]]; then art_debugee="$art_debugee -verbose:jdwp" fi +# Use Jack with "1.8" configuration. +export JACK_VERSION=`basename prebuilts/sdk/tools/jacks/*ALPHA* | sed 's/^jack-//' | sed 's/.jar$//'` + # Run the tests using vogar. vogar $vm_command \ $vm_args \ @@ -129,7 +132,8 @@ vogar $vm_command \ --vm-arg -Djpda.settings.syncPort=34016 \ --vm-arg -Djpda.settings.transportAddress=127.0.0.1:55107 \ --vm-arg -Djpda.settings.debuggeeJavaPath="$art_debugee $image $debuggee_args" \ - --classpath $test_jar \ + --classpath $test_jack \ + --toolchain jack --language JN \ --vm-arg -Xcompiler-option --vm-arg --debuggable \ $test -- 2.11.0