OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 # ============================================================================== | 5 # ============================================================================== |
6 # TEST SETUP | 6 # TEST SETUP |
7 # ============================================================================== | 7 # ============================================================================== |
8 | 8 |
9 # Define a test as an executable (or apk on Android) with the "testonly" flag | 9 # Define a test as an executable (or apk on Android) with the "testonly" flag |
10 # set. | 10 # set. |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 } | 78 } |
79 deps += [ ":$library_name" ] | 79 deps += [ ":$library_name" ] |
80 } | 80 } |
81 | 81 |
82 _test_name = main_target_name | 82 _test_name = main_target_name |
83 if (defined(invoker.output_name)) { | 83 if (defined(invoker.output_name)) { |
84 _test_name = invoker.output_name | 84 _test_name = invoker.output_name |
85 } | 85 } |
86 test_runner_script_name = "${_test_name}__test_runner_script" | 86 test_runner_script_name = "${_test_name}__test_runner_script" |
87 test_runner_script(test_runner_script_name) { | 87 test_runner_script(test_runner_script_name) { |
| 88 apk_target = ":$apk_name" |
88 test_name = _test_name | 89 test_name = _test_name |
89 test_type = "gtest" | 90 test_type = "gtest" |
90 test_suite = _test_name | 91 test_suite = _test_name |
91 if (defined(invoker.isolate_file)) { | 92 if (defined(invoker.isolate_file)) { |
92 isolate_file = invoker.isolate_file | 93 isolate_file = invoker.isolate_file |
93 } | 94 } |
94 } | 95 } |
95 incremental_test_runner_script_name = | 96 incremental_test_runner_script_name = |
96 "${_test_name}_incremental__test_runner_script" | 97 "${_test_name}_incremental__test_runner_script" |
97 test_runner_script(incremental_test_runner_script_name) { | 98 test_runner_script(incremental_test_runner_script_name) { |
| 99 apk_target = ":$apk_name" |
98 test_name = "${_test_name}_incremental" | 100 test_name = "${_test_name}_incremental" |
99 test_type = "gtest" | 101 test_type = "gtest" |
100 test_suite = _test_name | 102 test_suite = _test_name |
101 incremental_install = true | 103 incremental_install = true |
102 if (defined(invoker.isolate_file)) { | 104 if (defined(invoker.isolate_file)) { |
103 isolate_file = invoker.isolate_file | 105 isolate_file = invoker.isolate_file |
104 } | 106 } |
105 } | 107 } |
106 | 108 |
107 group(target_name) { | 109 group(target_name) { |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 # TODO(GYP): Delete this after we've converted everything to GN. | 211 # TODO(GYP): Delete this after we've converted everything to GN. |
210 # The _run targets exist only for compatibility with GYP. | 212 # The _run targets exist only for compatibility with GYP. |
211 group("${target_name}_run") { | 213 group("${target_name}_run") { |
212 testonly = true | 214 testonly = true |
213 deps = [ | 215 deps = [ |
214 ":$main_target_name", | 216 ":$main_target_name", |
215 ] | 217 ] |
216 } | 218 } |
217 } | 219 } |
218 } | 220 } |
OLD | NEW |