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

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

Issue 1968773002: [Merge to 51] Make the Android test apks depend on their run_ scripts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2704
Patch Set: Created 4 years, 7 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 2044 matching lines...) Expand 10 before | Expand all | Expand 10 after
2055 # Generates a script in the output bin directory which runs the test 2055 # Generates a script in the output bin directory which runs the test
2056 # target using the test runner script in build/android/test_runner.py. 2056 # target using the test runner script in build/android/test_runner.py.
2057 template("test_runner_script") { 2057 template("test_runner_script") {
2058 testonly = true 2058 testonly = true
2059 _test_name = invoker.test_name 2059 _test_name = invoker.test_name
2060 _test_type = invoker.test_type 2060 _test_type = invoker.test_type
2061 _incremental_install = 2061 _incremental_install =
2062 defined(invoker.incremental_install) && invoker.incremental_install 2062 defined(invoker.incremental_install) && invoker.incremental_install
2063 2063
2064 action(target_name) { 2064 action(target_name) {
2065 data_deps = []
2066 deps = []
2067 forward_variables_from(invoker,
2068 [
2069 "data_deps",
2070 "deps",
2071 ])
2072
2065 script = "//build/android/gyp/create_test_runner_script.py" 2073 script = "//build/android/gyp/create_test_runner_script.py"
2066 depfile = "$target_gen_dir/$target_name.d" 2074 depfile = "$target_gen_dir/$target_name.d"
2067 deps = []
2068 2075
2069 datadeps = [ 2076 data_deps += [ "//build/android:test_runner_py" ]
2070 "//build/android:test_runner_py",
2071 ]
2072 2077
2073 test_runner_args = [ 2078 test_runner_args = [
2074 _test_type, 2079 _test_type,
2075 "--output-directory", 2080 "--output-directory",
2076 rebase_path(root_build_dir, root_build_dir), 2081 rebase_path(root_build_dir, root_build_dir),
2077 ] 2082 ]
2078 2083
2079 # apk_target is not used for native executable tests 2084 # apk_target is not used for native executable tests
2080 # (e.g. breakpad_unittests). 2085 # (e.g. breakpad_unittests).
2081 if (defined(invoker.apk_target)) { 2086 if (defined(invoker.apk_target)) {
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
2186 2191
2187 args = [ 2192 args = [
2188 "--depfile", 2193 "--depfile",
2189 rebase_path(depfile, root_build_dir), 2194 rebase_path(depfile, root_build_dir),
2190 "--script-output-path", 2195 "--script-output-path",
2191 rebase_path(generated_script, root_build_dir), 2196 rebase_path(generated_script, root_build_dir),
2192 ] 2197 ]
2193 args += test_runner_args 2198 args += test_runner_args
2194 } 2199 }
2195 } 2200 }
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