diff options
author | Artem Serov <artem.serov@linaro.org> | 2021-08-10 15:46:25 +0000 |
---|---|---|
committer | Linaro Android Code Review <android-review@review.linaro.org> | 2021-08-10 15:46:25 +0000 |
commit | 87674f3de84cb783fcaa1f332dbbee500ab88eee (patch) | |
tree | 9f666c5d8d5d9b57017725a62dc717d4447fbb0c | |
parent | dfb5c3dacba0bbfc20c6e7cb8cc725310675e92b (diff) | |
parent | cc26f815e082e6c7a61919553d8dfd2a6cdc7062 (diff) | |
download | art-build-scripts-87674f3de84cb783fcaa1f332dbbee500ab88eee.tar.gz |
Merge "ART: Add --dump-cfg option to test scripts."
-rwxr-xr-x | tests/test_art_host.sh | 8 | ||||
-rw-r--r-- | utils/utils_run.sh | 3 |
2 files changed, 11 insertions, 0 deletions
diff --git a/tests/test_art_host.sh b/tests/test_art_host.sh index f9226583..a5c76b4f 100755 --- a/tests/test_art_host.sh +++ b/tests/test_art_host.sh @@ -37,6 +37,7 @@ declare -A options_format=( ["32bit"]="false" ["64bit"]="false" ["default"]="p:set_defaults_wrapper()" + ["dump-cfg"]="" ["gcstress"]="false" ["gtest"]="false" ["help"]="p:usage()" @@ -85,6 +86,11 @@ validate_options() { log E "The --jobs option must be followed by an integer." exit 1 fi + + if [[ -n "${options["dump-cfg"]}" ]] && [[ -z "${options["single-test"]}" ]]; then + log E "Can only dump .cfg for a single test." + exit 1 + fi } set_job_count() { @@ -118,6 +124,8 @@ usage() { feature names. When the list is used, '-' before a feature name means the ART compiler must not use the feature for code generation." + log I " --dump-cfg <path> - dump .cfg to the specified host full path. Only runs for a" + log I " single test" log I "-------------------------------------------" log I "Tests:" log I " --gtest - run gtests." diff --git a/utils/utils_run.sh b/utils/utils_run.sh index a03dd2d9..85d9eef0 100644 --- a/utils/utils_run.sh +++ b/utils/utils_run.sh @@ -39,6 +39,9 @@ run_test_with_python_runner() { if ${local_options["gcstress"]}; then test_command+=" --gcstress" fi + if [[ -n "${local_options["dump-cfg"]}" ]]; then + test_command+=" --dump-cfg ${local_options["dump-cfg"]}" + fi if [[ $1 == "single-test" ]]; then test_command+=" -t $3 --run-test --${4}" else |