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

Unified Diff: chromecast/build/tests/cast_test.gni

Issue 2629573008: [Chromecast] Dump the runtime deps for all test targets. (Closed)
Patch Set: Created 3 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/build/tests/cast_test.gni
diff --git a/chromecast/build/tests/cast_test.gni b/chromecast/build/tests/cast_test.gni
index 6a98bbe4ddb5a7ef0f5d606b4dfe6b5dcaf430e5..dea21632224044a955bd0e18755040357bc5943d 100644
--- a/chromecast/build/tests/cast_test.gni
+++ b/chromecast/build/tests/cast_test.gni
@@ -201,6 +201,20 @@ template("cast_test_group") {
_test_names += [ get_label_info(_test, "name") ]
}
+ # Create a dummy target so that we can get the runtime deps for each test
+ # and output them into a file. The runtime deps include all of the data files,
+ # data directories, and shared libraries that a test needs in order to run.
+ foreach(_test, invoker.tests) {
+ _test_name = get_label_info(_test, "name")
+ group(_test_name + "_cast_runtime_deps") {
alokp 2017/01/17 21:30:25 "_cast" prefix seems unnecessary
slan 2017/01/18 17:49:21 Actually, I think having "cast" in the name is use
alokp 2017/01/18 23:35:36 Don't we already have test_name in the group targe
slan 2017/01/19 00:15:03 Yes, but since we build tests from other parts of
+ testonly = true
+ data_deps = [
+ _test,
+ ]
+ write_runtime_deps = "$root_out_dir/${_test_name}.runtime_deps"
alokp 2017/01/17 21:30:25 I would suggest using a proper file type (txt, jso
slan 2017/01/18 17:49:21 I assume this convention was chosen to match the e
+ }
+ }
+
# This action generates a list of target names to build and run. It will be
# depended upon by the "pack_build" action of the cast_test_group_list
# instance which depends on this cast_test_group.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698