diff options
| -rwxr-xr-x | tools/run-jdwp-tests.sh | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/tools/run-jdwp-tests.sh b/tools/run-jdwp-tests.sh index 116a611a80..104cba7940 100755 --- a/tools/run-jdwp-tests.sh +++ b/tools/run-jdwp-tests.sh @@ -40,6 +40,9 @@ device_dir="--device-dir=/data/local/tmp" vm_command="--vm-command=$art" image_compiler_option="" debug="no" +verbose="no" +# By default, we run the whole JDWP test suite. +test="org.apache.harmony.jpda.tests.share.AllTests" while true; do if [[ "$1" == "--mode=host" ]]; then @@ -65,6 +68,19 @@ while true; do # Remove the --debug from the arguments. args=${args/$1} shift + elif [[ $1 == "--verbose" ]]; then + verbose="yes" + # Remove the --verbose from the arguments. + args=${args/$1} + shift + elif [[ $1 == "--test" ]]; then + # Remove the --test from the arguments. + args=${args/$1} + shift + test=$1 + # Remove the test from the arguments. + args=${args/$1} + shift elif [[ "$1" == "" ]]; then break else @@ -78,6 +94,10 @@ if [[ $debug == "yes" ]]; then art_debugee="$art_debugee -d" vm_args="$vm_args --vm-arg -XXlib:libartd.so" fi +if [[ $verbose == "yes" ]]; then + # Enable JDWP logs in the debuggee. + art_debugee="$art_debugee -verbose:jdwp" +fi # Run the tests using vogar. vogar $vm_command \ @@ -93,4 +113,4 @@ vogar $vm_command \ --vm-arg -Djpda.settings.debuggeeJavaPath="\"$art_debugee $image $debuggee_args\"" \ --classpath $test_jar \ --vm-arg -Xcompiler-option --vm-arg --debuggable \ - org.apache.harmony.jpda.tests.share.AllTests + $test |