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

Unified Diff: testing/test.gni

Issue 1120883002: [Android] Generate scripts at build time to run android tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed jbudorick's nits. Created 5 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
Index: testing/test.gni
diff --git a/testing/test.gni b/testing/test.gni
index b4cdbede08b9e3410b17930515260151be30433f..2d49cacea7a99a58ea3994017d1b7c04a8dc3ac0 100644
--- a/testing/test.gni
+++ b/testing/test.gni
@@ -131,9 +131,24 @@ 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_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",

Powered by Google App Engine
This is Rietveld 408576698