diff options
author | Alex Light <allight@google.com> | 2014-08-12 09:53:50 -0700 |
---|---|---|
committer | Alex Light <allight@google.com> | 2014-08-12 09:54:34 -0700 |
commit | e7873ecb240aef520f7a7933028fa58708baf761 (patch) | |
tree | 591cfce501d3de63d7b6ddfcc8d9c7b311c45274 /test | |
parent | 66386248003a46ecbe4fac99aec902cfd0942847 (diff) | |
download | art-e7873ecb240aef520f7a7933028fa58708baf761.tar.gz art-e7873ecb240aef520f7a7933028fa58708baf761.tar.bz2 art-e7873ecb240aef520f7a7933028fa58708baf761.zip |
Added --gcstress and --gcverify shortcut flags to run-test
Change-Id: Ia11fcbc71488710ca32f397c3c1b19613e294d1e
Diffstat (limited to 'test')
-rw-r--r-- | test/Android.run-test.mk | 6 | ||||
-rwxr-xr-x | test/run-all-tests | 8 | ||||
-rwxr-xr-x | test/run-test | 22 |
3 files changed, 31 insertions, 5 deletions
diff --git a/test/Android.run-test.mk b/test/Android.run-test.mk index 47111c5656..0cf9e16663 100644 --- a/test/Android.run-test.mk +++ b/test/Android.run-test.mk @@ -415,8 +415,7 @@ define define-test-art-run-test else ifeq ($(5),gcverify) uc_run_type := GCVERIFY - run_test_options += --runtime-option -Xgc:preverify --runtime-option -Xgc:postverify \ - --runtime-option -Xgc:preverify_rosalloc --runtime-option -Xgc:postverify_rosalloc + run_test_options += --gcverify run_test_rule_name := test-art-$(2)-run-test-gcverify-$(3)-$(6)-$(1)$(4) ifneq ($$(ART_TEST_GC_VERIFY),true) skip_test := true @@ -424,8 +423,7 @@ define define-test-art-run-test else ifeq ($(5),gcstress) uc_run_type := GCSTRESS - run_test_options += --runtime-option -Xgc:SS --runtime-option -Xms2m \ - --runtime-option -Xmx2m --runtime-option -Xgc:preverify --runtime-option -Xgc:postverify + run_test_options += --gcstress run_test_rule_name := test-art-$(2)-run-test-gcstress-$(3)-$(6)-$(1)$(4) ifneq ($$(ART_TEST_GC_STRESS),true) skip_test := true diff --git a/test/run-all-tests b/test/run-all-tests index 284cca0f19..98f1208e2e 100755 --- a/test/run-all-tests +++ b/test/run-all-tests @@ -80,6 +80,12 @@ while true; do elif [ "x$1" = "x--64" ]; then run_args="${run_args} --64" shift + elif [ "x$1" = "x--gcstress" ]; then + run_args="${run_args} --gcstress" + shift + elif [ "x$1" = "x--gcverify" ]; then + run_args="${run_args} --gcverify" + shift elif [ "x$1" = "x--trace" ]; then run_args="${run_args} --trace" shift @@ -116,7 +122,7 @@ if [ "$usage" = "yes" ]; then "further documentation:" echo " --debug --dev --host --interpreter --jvm --no-optimize" echo " --no-verify -O --update --valgrind --zygote --64 --relocate" - echo " --prebuild --always-clean" + echo " --prebuild --always-clean --gcstress --gcverify --trace" 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 ca7e68c263..496f7d1b53 100755 --- a/test/run-test +++ b/test/run-test @@ -77,6 +77,9 @@ usage="no" build_only="no" suffix64="" trace="false" +basic_verify="false" +gc_verify="false" +gc_stress="false" always_clean="no" while true; do @@ -108,6 +111,14 @@ while true; do elif [ "x$1" = "x--no-prebuild" ]; then prebuild_mode="no" shift; + elif [ "x$1" = "x--gcverify" ]; then + basic_verify="true" + gc_verify="true" + shift + elif [ "x$1" = "x--gcstress" ]; then + basic_verify="true" + gc_stress="true" + shift elif [ "x$1" = "x--image" ]; then shift image="$1" @@ -197,6 +208,15 @@ while true; do done mkdir -p $tmp_dir +if [ "$basic_verify" = "true" ]; then + run_args="${run_args} --runtime-option -Xgc:preverify --runtime-option -Xgc:postverify" +fi +if [ "$gc_verify" = "true" ]; then + run_args="${run_args} --runtime-option -Xgc:preverify_rosalloc --runtime-option -Xgc:postverify_rosalloc" +fi +if [ "$gc_stress" = "true" ]; then + run_args="${run_args} --runtime-option -Xgc:SS --runtime-option -Xms2m --runtime-option -Xmx2m" +fi if [ "$trace" = "true" ]; then run_args="${run_args} --runtime-option -Xmethod-trace --runtime-option -Xmethod-trace-file:${DEX_LOCATION}/trace.bin --runtime-option -Xmethod-trace-file-size:2000000" fi @@ -333,6 +353,8 @@ if [ "$usage" = "yes" ]; then "files." echo " --64 Run the test in 64-bit mode" echo " --trace Run with method tracing" + echo " --gcstress Run with gc stress testing" + echo " --gcverify Run with gc verification" echo " --always-clean Delete the test files even if the test fails." ) 1>&2 exit 1 |