Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(82)

Side by Side Diff: build/config/android/internal_rules.gni

Issue 1893063002: 🐛 Make the Android test apks depend on their run_ scripts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: revert to PS1 Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | testing/test.gni » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 2059 matching lines...) Expand 10 before | Expand all | Expand 10 after
2070 # Generates a script in the output bin directory which runs the test 2070 # Generates a script in the output bin directory which runs the test
2071 # target using the test runner script in build/android/test_runner.py. 2071 # target using the test runner script in build/android/test_runner.py.
2072 template("test_runner_script") { 2072 template("test_runner_script") {
2073 testonly = true 2073 testonly = true
2074 _test_name = invoker.test_name 2074 _test_name = invoker.test_name
2075 _test_type = invoker.test_type 2075 _test_type = invoker.test_type
2076 _incremental_install = 2076 _incremental_install =
2077 defined(invoker.incremental_install) && invoker.incremental_install 2077 defined(invoker.incremental_install) && invoker.incremental_install
2078 2078
2079 action(target_name) { 2079 action(target_name) {
2080 data_deps = []
2081 deps = []
2082 forward_variables_from(invoker,
2083 [
2084 "data_deps",
2085 "deps",
2086 ])
2087
2080 script = "//build/android/gyp/create_test_runner_script.py" 2088 script = "//build/android/gyp/create_test_runner_script.py"
2081 depfile = "$target_gen_dir/$target_name.d" 2089 depfile = "$target_gen_dir/$target_name.d"
2082 deps = []
2083 2090
2084 datadeps = [ 2091 data_deps += [ "//build/android:test_runner_py" ]
2085 "//build/android:test_runner_py",
2086 ]
2087 2092
2088 test_runner_args = [ 2093 test_runner_args = [
2089 _test_type, 2094 _test_type,
2090 "--output-directory", 2095 "--output-directory",
2091 rebase_path(root_build_dir, root_build_dir), 2096 rebase_path(root_build_dir, root_build_dir),
2092 ] 2097 ]
2093 2098
2094 # apk_target is not used for native executable tests 2099 # apk_target is not used for native executable tests
2095 # (e.g. breakpad_unittests). 2100 # (e.g. breakpad_unittests).
2096 if (defined(invoker.apk_target)) { 2101 if (defined(invoker.apk_target)) {
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
2204 2209
2205 args = [ 2210 args = [
2206 "--depfile", 2211 "--depfile",
2207 rebase_path(depfile, root_build_dir), 2212 rebase_path(depfile, root_build_dir),
2208 "--script-output-path", 2213 "--script-output-path",
2209 rebase_path(generated_script, root_build_dir), 2214 rebase_path(generated_script, root_build_dir),
2210 ] 2215 ]
2211 args += test_runner_args 2216 args += test_runner_args
2212 } 2217 }
2213 } 2218 }
OLDNEW
« no previous file with comments | « no previous file | testing/test.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698