diff options
| author | 2015-10-28 09:40:10 -0700 | |
|---|---|---|
| committer | 2015-10-28 18:29:44 +0000 | |
| commit | fadfee95bca395989b63f9befcb5ed8ef8528859 (patch) | |
| tree | 1f3b90bfbc2d766158772fab039559b2356723ba | |
| parent | 3dca4c04170bb4c7b26609e55f3f4966d46b681a (diff) | |
Fix up run-test.
Made its help message actually list all of its options. Made
run-all-tests take more of the run-test options.
Change-Id: I213995eeea9052392f722897021e74c2a89d41f8
| -rwxr-xr-x | test/run-all-tests | 58 | ||||
| -rwxr-xr-x | test/run-test | 7 |
2 files changed, 59 insertions, 6 deletions
diff --git a/test/run-all-tests b/test/run-all-tests index 76283b7a8d..6d5c28c7e0 100755 --- a/test/run-all-tests +++ b/test/run-all-tests @@ -44,12 +44,45 @@ while true; do elif [ "x$1" = "x--use-java-home" ]; then run_args="${run_args} --use-java-home" shift + elif [ "x$1" = "x--no-image" ]; then + run_args="${run_args} --no-image" + shift + elif [ "x$1" = "x--quick" ]; then + run_args="${run_args} --quick" + shift + elif [ "x$1" = "x--optimizing" ]; then + run_args="${run_args} --optimizing" + shift + elif [ "x$1" = "x--image" ]; then + run_args="${run_args} --image" + shift + elif [ "x$1" = "x--never-clean" ]; then + run_args="${run_args} --never-clean" + shift elif [ "x$1" = "x--jvm" ]; then run_args="${run_args} --jvm" shift elif [ "x$1" = "x--debug" ]; then run_args="${run_args} --debug" shift + elif [ "x$1" = "x--build-only" ]; then + run_args="${run_args} --build-only" + shift + elif [ "x$1" = "x--build-with-jack" ]; then + run_args="${run_args} --build-with-jack" + shift + elif [ "x$1" = "x--build-with-javac-dx" ]; then + run_args="${run_args} --build-with-javac-dx" + shift + elif [ "x$1" = "x--dex2oat-swap" ]; then + run_args="${run_args} --dex2oat-swap" + shift + elif [ "x$1" = "x--dalvik" ]; then + run_args="${run_args} --dalvik" + shift + elif [ "x$1" = "x--debuggable" ]; then + run_args="${run_args} --debuggable" + shift elif [ "x$1" = "x--zygote" ]; then run_args="${run_args} --zygote" shift @@ -59,15 +92,15 @@ while true; do elif [ "x$1" = "x--jit" ]; then run_args="${run_args} --jit" shift + elif [ "x$1" = "x--verify-soft-fail" ]; then + run_args="${run_args} --verify-soft-fail" + shift elif [ "x$1" = "x--no-verify" ]; then run_args="${run_args} --no-verify" shift elif [ "x$1" = "x--no-optimize" ]; then run_args="${run_args} --no-optimize" shift - elif [ "x$1" = "x--valgrind" ]; then - run_args="${run_args} --valgrind" - shift elif [ "x$1" = "x--dev" ]; then run_args="${run_args} --dev" shift @@ -116,6 +149,15 @@ while true; do elif [ "x$1" = "x--always-clean" ]; then run_args="${run_args} --always-clean" shift + elif [ "x$1" = "x--pic-test" ]; then + run_args="${run_args} --pic-test" + shift + elif [ "x$1" = "x--pic-image" ]; then + run_args="${run_args} --pic-image" + shift + elif [ "x$1" = "x--strace" ]; then + run_args="${run_args} --strace" + shift elif expr "x$1" : "x--" >/dev/null 2>&1; then echo "unknown $0 option: $1" 1>&2 usage="yes" @@ -134,9 +176,13 @@ if [ "$usage" = "yes" ]; then echo " Options are all passed to run-test; refer to that for " \ "further documentation:" echo " --debug --dev --host --interpreter --jit --jvm --no-optimize" - echo " --no-verify -O --update --valgrind --zygote --64 --relocate" - echo " --prebuild --always-clean --gcstress --gcverify --trace" - echo " --no-patchoat --no-dex2oat --use-java-home" + echo " --no-verify --verify-soft-fail -O --update --zygote --64" + echo " --relocate --prebuild --always-clean --gcstress --gcverify" + echo " --trace --no-patchoat --no-dex2oat --use-java-home --pic-image" + echo " --pic-test --strace --debuggable --dalvik --dex2oat-swap" + echo " --build-only --build-with-jack --build-with-javac-dx" + echo " --never-clean --image --no-image --quick --optimizing" + echo " --no-relocate --no-prebuild" echo " Specific Runtime Options:" echo " --seq Run tests one-by-one, avoiding failures caused by busy CPU" ) 1>&2 diff --git a/test/run-test b/test/run-test index 5a43fb05c3..3442fcf67d 100755 --- a/test/run-test +++ b/test/run-test @@ -528,6 +528,7 @@ if [ "$usage" = "yes" ]; then echo " --debug Wait for a debugger to attach." echo " --debuggable Whether to compile Java code for a debugger." echo " --gdb Run under gdb; incompatible with some tests." + echo " --gdb-arg Pass an option to gdb." echo " --build-only Build test files only (off by default)." echo " --build-with-javac-dx Build test files with javac and dx (on by default)." echo " --build-with-jack Build test files with jack and jill (off by default)." @@ -553,6 +554,8 @@ if [ "$usage" = "yes" ]; then echo " the image and oat files be relocated to a random" echo " address before running. (default)" echo " --no-relocate Force the use of no relocating in the test" + echo " --image Run the test using a precompiled boot image. (default)" + echo " --no-image Run the test without a precompiled boot image." echo " --host Use the host-mode virtual machine." echo " --invoke-with Pass --invoke-with option to runtime." echo " --dalvik Use Dalvik (off by default)." @@ -564,6 +567,7 @@ if [ "$usage" = "yes" ]; then "files." echo " --64 Run the test in 64-bit mode" echo " --trace Run with method tracing" + echo " --strace Run with syscall tracing from strace." echo " --stream Run method tracing in streaming mode (requires --trace)" echo " --gcstress Run with gc stress testing" echo " --gcverify Run with gc verification" @@ -573,6 +577,9 @@ if [ "$usage" = "yes" ]; then echo " --dex2oat-swap Use a dex2oat swap file." echo " --instruction-set-features [string]" echo " Set instruction-set-features for compilation." + echo " --pic-image Use an image compiled with position independent code for the" + echo " boot class path." + echo " --pic-test Compile the test code position independent." ) 1>&2 exit 1 fi |