[Chromecast] Dump the runtime deps for all test targets.
For each foo_unittest binary in cast_test_lists, create a
foo_unittest.runtime_deps file that lists all of the runtime
dependencies (data files, data directories, shared libs, etc.) that a
test needs at runtime.
BUG= internal b/33682037
TEST=gn gen
Review-Url: https://codereview.chromium.org/2629573008
Cr-Commit-Position: refs/heads/master@{#444883}
diff --git a/chromecast/BUILD.gn b/chromecast/BUILD.gn
index 53c42f8..740230ec 100644
--- a/chromecast/BUILD.gn
+++ b/chromecast/BUILD.gn
@@ -252,7 +252,7 @@
# Creates the build and run lists for all test targets.
cast_test_group_list("cast_test_lists") {
build_list_path = "$root_out_dir/tests/build_test_list.txt"
-
+ runtime_deps_path = "$root_out_dir/tests/runtime_deps.json"
run_list_path = "$root_out_dir/tests/run_test_list.txt"
additional_options = [ "--ozone-platform=headless --test-launcher-bot-mode" ]
@@ -281,6 +281,7 @@
cast_test_group_list("cast_junit_test_lists") {
test_type = "junit"
build_list_path = "$root_out_dir/junit/build_junit_test_list.txt"
+ runtime_deps_path = "$root_out_dir/junit/runtime_deps.json"
run_list_path = "$root_out_dir/junit/run_junit_test_list.txt"
build_tests = true
test_groups = [ ":cast_junit_tests" ]