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 1973 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1984 _build_config = | 1984 _build_config = |
1985 get_label_info(invoker.apk_target, "target_gen_dir") + "/" + | 1985 get_label_info(invoker.apk_target, "target_gen_dir") + "/" + |
1986 get_label_info(invoker.apk_target, "name") + ".build_config" | 1986 get_label_info(invoker.apk_target, "name") + ".build_config" |
1987 _rebased_build_config = rebase_path(_build_config, root_build_dir) | 1987 _rebased_build_config = rebase_path(_build_config, root_build_dir) |
1988 test_runner_args += [ | 1988 test_runner_args += [ |
1989 "--test-apk", | 1989 "--test-apk", |
1990 "@FileArg($_rebased_build_config:deps_info:apk_path)", | 1990 "@FileArg($_rebased_build_config:deps_info:apk_path)", |
1991 "--apk-under-test", | 1991 "--apk-under-test", |
1992 "@FileArg($_rebased_build_config:deps_info:tested_apk_path)", | 1992 "@FileArg($_rebased_build_config:deps_info:tested_apk_path)", |
1993 ] | 1993 ] |
| 1994 if (emma_coverage) { |
| 1995 # Set a default coverage output directory (can be overridden by user |
| 1996 # passing the same flag). |
| 1997 test_runner_args += [ |
| 1998 "--coverage-dir", |
| 1999 rebase_path("$root_out_dir/coverage", root_build_dir), |
| 2000 ] |
| 2001 } |
1994 } else { | 2002 } else { |
1995 assert(false, "Invalid test type: $_test_type.") | 2003 assert(false, "Invalid test type: $_test_type.") |
1996 } | 2004 } |
1997 | 2005 |
1998 if (defined(invoker.isolate_file)) { | 2006 if (defined(invoker.isolate_file)) { |
1999 test_runner_args += [ | 2007 test_runner_args += [ |
2000 "--isolate-file-path", | 2008 "--isolate-file-path", |
2001 rebase_path(invoker.isolate_file, root_build_dir), | 2009 rebase_path(invoker.isolate_file, root_build_dir), |
2002 ] | 2010 ] |
2003 } | 2011 } |
(...skipping 18 matching lines...) Expand all Loading... |
2022 ] | 2030 ] |
2023 args = [ | 2031 args = [ |
2024 "--depfile", | 2032 "--depfile", |
2025 rebase_path(depfile, root_build_dir), | 2033 rebase_path(depfile, root_build_dir), |
2026 "--script-output-path", | 2034 "--script-output-path", |
2027 rebase_path(generated_script, root_build_dir), | 2035 rebase_path(generated_script, root_build_dir), |
2028 ] | 2036 ] |
2029 args += test_runner_args | 2037 args += test_runner_args |
2030 } | 2038 } |
2031 } | 2039 } |
OLD | NEW |