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

Unified Diff: testing/test.gni

Issue 2692273008: Hacky slashy (Closed)
Patch Set: . Created 3 years, 10 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
Index: testing/test.gni
diff --git a/testing/test.gni b/testing/test.gni
index b344945ce926854d20a98c0595bb5c26ba8c5a25..15650a3ca7a07a82e155f0a8d5058bd34b0a0d9a 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:
@@ -270,8 +274,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
@@ -283,6 +304,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" ]
+ }
}
# TODO(GYP_GONE): Delete this after we've converted everything to GN.

Powered by Google App Engine
This is Rietveld 408576698