OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//build/config/android/config.gni") | 5 import("//build/config/android/config.gni") |
6 import("//build/config/sanitizers/sanitizers.gni") | 6 import("//build/config/sanitizers/sanitizers.gni") |
7 import("//build/config/zip.gni") | 7 import("//build/config/zip.gni") |
8 import("//third_party/ijar/ijar.gni") | 8 import("//third_party/ijar/ijar.gni") |
9 | 9 |
10 assert(is_android) | 10 assert(is_android) |
(...skipping 2058 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2069 assert(false, "Invalid test type: $_test_type.") | 2069 assert(false, "Invalid test type: $_test_type.") |
2070 } | 2070 } |
2071 | 2071 |
2072 if (defined(invoker.isolate_file)) { | 2072 if (defined(invoker.isolate_file)) { |
2073 test_runner_args += [ | 2073 test_runner_args += [ |
2074 "--isolate-file-path", | 2074 "--isolate-file-path", |
2075 rebase_path(invoker.isolate_file, root_build_dir), | 2075 rebase_path(invoker.isolate_file, root_build_dir), |
2076 ] | 2076 ] |
2077 } | 2077 } |
2078 if (defined(invoker.incremental_install) && invoker.incremental_install) { | 2078 if (defined(invoker.incremental_install) && invoker.incremental_install) { |
2079 test_runner_args += [ "--incremental-install" ] | |
2080 | |
2081 # These can still be overridden, but make more better defaults during | |
2082 # development. | |
2083 test_runner_args += [ | 2079 test_runner_args += [ |
2084 "--enable-device-cache", | 2080 "--incremental-install", |
2085 "--extract-test-list-from-filter", | 2081 "--fast-local-dev", |
2086 "--num_retries=0", | |
2087 "--skip-clear-data", # Clearing wipes optimized dex files. | |
2088 ] | 2082 ] |
2089 } | 2083 } |
2090 if (is_asan) { | 2084 if (is_asan) { |
2091 test_runner_args += [ "--tool=asan" ] | 2085 test_runner_args += [ "--tool=asan" ] |
2092 } | 2086 } |
2093 | 2087 |
2094 generated_script = "$root_build_dir/bin/run_${_test_name}" | 2088 generated_script = "$root_build_dir/bin/run_${_test_name}" |
2095 outputs = [ | 2089 outputs = [ |
2096 depfile, | 2090 depfile, |
2097 generated_script, | 2091 generated_script, |
2098 ] | 2092 ] |
2099 args = [ | 2093 args = [ |
2100 "--depfile", | 2094 "--depfile", |
2101 rebase_path(depfile, root_build_dir), | 2095 rebase_path(depfile, root_build_dir), |
2102 "--script-output-path", | 2096 "--script-output-path", |
2103 rebase_path(generated_script, root_build_dir), | 2097 rebase_path(generated_script, root_build_dir), |
2104 ] | 2098 ] |
2105 args += test_runner_args | 2099 args += test_runner_args |
2106 } | 2100 } |
2107 } | 2101 } |
OLD | NEW |