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

Unified Diff: testing/test.gni

Issue 2692273008: Hacky slashy (Closed)
Patch Set: rebase on config CL, and minor fixes Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/BUILD.gn ('k') | third_party/libxml/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: testing/test.gni
diff --git a/testing/test.gni b/testing/test.gni
index 0218ca8d04abf255ae3adfaa9ca8c36f9cd34956..5574a9a19e4cdbac205fe1e7524af0878960b56d 100644
--- a/testing/test.gni
+++ b/testing/test.gni
@@ -12,6 +12,10 @@ if (is_android) {
import("//build/config/sanitizers/sanitizers.gni")
}
+if (is_fuchsia) {
+ import("//build/config/fuchsia/rules.gni")
+}
+
# Define a test as an executable (or apk on Android) with the "testonly" flag
# set.
# Variable:
@@ -282,8 +286,25 @@ template("test") {
bundle_deps += [ ":$_resources_bundle_data" ]
}
} else {
+ if (is_fuchsia) {
+ _output_name = invoker.target_name
+ _test_runner_target = "${_output_name}__test_runner_script"
+
+ test_runner_script(_test_runner_target) {
+ forward_variables_from(invoker,
+ [
+ "data",
+ "data_deps",
+ "deps",
+ "public_deps",
+ ])
+ test_name = _output_name
+ }
+ }
+
executable(target_name) {
deps = []
+ data_deps = []
forward_variables_from(invoker, "*")
testonly = true
@@ -295,6 +316,10 @@ template("test") {
# Give tests the default manifest on Windows (a no-op elsewhere).
"//build/win:default_exe_manifest",
]
+
+ if (is_fuchsia) {
+ data_deps += [ ":$_test_runner_target" ]
+ }
}
}
}
« no previous file with comments | « net/BUILD.gn ('k') | third_party/libxml/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698