diff options
Diffstat (limited to 'tests/test_art_host.sh')
-rwxr-xr-x | tests/test_art_host.sh | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/tests/test_art_host.sh b/tests/test_art_host.sh index 20223804..537f7b4a 100755 --- a/tests/test_art_host.sh +++ b/tests/test_art_host.sh @@ -37,6 +37,7 @@ declare -A options_format=( ["64bit"]="false" ["default"]="p:set_defaults_wrapper()" ["dump-cfg"]="" + ["gdb"]="false" ["gdb-dex2oat"]="false" ["gdb-dex2oat-args"]="" ["gcstress"]="false" @@ -93,9 +94,17 @@ validate_options() { exit 1 fi - if [[ "${options["gdb-dex2oat"]}" == "true" ]] && [[ -z "${options["single-test"]}" ]]; then - log E "Can only run the debugger on dex2oat for a single test." - exit 1 + if [[ "${options["gdb"]}" == "true" || "${options["gdb-dex2oat"]}" == "true" ]]; then + if [[ -z "${options["single-test"]}" ]]; then + log E "Can only run the debugger for a single test." + exit 1 + fi + + local -r test_name="${options["single-test"]}" + if is_single_test_gtest "${test_name}"; then + log E "Can't run the debugger for a gtest." + exit 1 + fi fi } @@ -132,6 +141,7 @@ usage() { generation." log I " --dump-cfg <path> - dump .cfg to the specified host full path. Only runs for a" log I " single test" + log I " --gdb - Run dalvikvm under gdb. Only runs for a single test." log I " --gdb-dex2oat - Run dex2oat under lldb. Only runs for a single test." log I " --gdb-dex2oat-args - Use LLDB with arguments to debug the compiler (dex2oat) Each argument needs to be separated by a semicolon." |