Index: testing/test.gni |
diff --git a/testing/test.gni b/testing/test.gni |
index b4cdbede08b9e3410b17930515260151be30433f..c99df9036b6d8b636c5bb6912b67a4517475950e 100644 |
--- a/testing/test.gni |
+++ b/testing/test.gni |
@@ -131,9 +131,25 @@ template("test") { |
} |
} |
+ test_name = main_target_name |
+ if (defined(invoker.output_name)) { |
+ test_name = invoker.output_name |
+ } |
+ test_runner_script_name = "${test_name}__test_runner_script" |
+ test_runner_script(test_runner_script_name) { |
+ test_name = test_name |
+ test_type = "gtest" |
+ test_suite = test_name |
+ if (defined(invoker.isolate_file)) { |
+ isolate_file = invoker.isolate_file |
+ } |
+ } |
+ |
group(target_name) { |
testonly = true |
- |
+ datadeps = [ |
+ ":$test_runner_script_name", |
+ ] |
deps = [ |
":$library_name", |
":$apk_name", |