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. |