OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//build/config/chrome_build.gni") | 5 import("//build/config/chrome_build.gni") |
6 import("//testing/test.gni") | 6 import("//testing/test.gni") |
7 | 7 |
8 # Convenience meta-target for all of Blimp's production & test code. | 8 # Convenience meta-target for all of Blimp's production & test code. |
9 group("blimp") { | 9 group("blimp") { |
10 # In spite of the name, this really just means that non-test targets | 10 # In spite of the name, this really just means that non-test targets |
(...skipping 24 matching lines...) Expand all Loading... |
35 group("blimp_tests") { | 35 group("blimp_tests") { |
36 testonly = true | 36 testonly = true |
37 | 37 |
38 deps = [ | 38 deps = [ |
39 ":blimp_unittests", | 39 ":blimp_unittests", |
40 "//blimp/client:test_binaries", | 40 "//blimp/client:test_binaries", |
41 ] | 41 ] |
42 | 42 |
43 if (is_linux) { | 43 if (is_linux) { |
44 deps += [ | 44 deps += [ |
45 ":blimp_browsertests", | 45 ":blimp_browsertests_grpc", |
| 46 ":blimp_browsertests_tcp", |
46 "//blimp/test/fake_engine:fake_engine_app_tests", | 47 "//blimp/test/fake_engine:fake_engine_app_tests", |
47 ] | 48 ] |
48 } | 49 } |
49 } | 50 } |
50 | 51 |
51 test("blimp_unittests") { | 52 test("blimp_unittests") { |
52 deps = [ | 53 deps = [ |
53 "//blimp/client:unit_tests", | 54 "//blimp/client:unit_tests", |
54 "//blimp/common:unit_tests", | 55 "//blimp/common:unit_tests", |
55 "//blimp/helium:unit_tests", | 56 "//blimp/helium:unit_tests", |
56 "//blimp/net:unit_tests", | 57 "//blimp/net:unit_tests", |
57 "//blimp/test:run_all_unittests", | 58 "//blimp/test:run_all_unittests", |
58 ] | 59 ] |
59 | 60 |
60 if (is_linux) { | 61 if (is_linux) { |
61 deps += [ "//blimp/engine:unit_tests" ] | 62 deps += [ "//blimp/engine:unit_tests" ] |
62 } | 63 } |
63 | 64 |
64 if (is_android) { | 65 if (is_android) { |
65 deps += [ "//blimp/client:blimp_unittests_java_deps" ] | 66 deps += [ "//blimp/client:blimp_unittests_java_deps" ] |
66 } | 67 } |
67 } | 68 } |
68 | 69 |
69 if (is_linux) { | 70 if (is_linux) { |
70 test("blimp_browsertests") { | 71 test("blimp_browsertests_grpc") { |
71 deps = [ | 72 deps = [ |
72 "//blimp/engine:browser_tests", | 73 "//blimp/engine:browser_tests_grpc", |
73 "//tools/xdisplaycheck", | 74 "//tools/xdisplaycheck", |
74 ] | 75 ] |
75 data = [ | 76 data = [ |
| 77 "test/data/", |
| 78 ] |
| 79 } |
| 80 |
| 81 test("blimp_browsertests_tcp") { |
| 82 deps = [ |
| 83 "//blimp/engine:browser_tests_tcp", |
| 84 "//tools/xdisplaycheck", |
| 85 ] |
| 86 data = [ |
76 "test/data/", | 87 "test/data/", |
77 ] | 88 ] |
78 } | 89 } |
79 | 90 |
80 _blimp_engine_env_tests_runtime_deps = | 91 _blimp_engine_env_tests_runtime_deps = |
81 "$root_gen_dir/blimp-tests.runtime_deps" | 92 "$root_gen_dir/blimp-tests.runtime_deps" |
82 _rebased_blimp_engine_env_tests_runtime_deps = | 93 _rebased_blimp_engine_env_tests_runtime_deps = |
83 rebase_path(_blimp_engine_env_tests_runtime_deps, root_out_dir) | 94 rebase_path(_blimp_engine_env_tests_runtime_deps, root_out_dir) |
84 | 95 |
85 # This group contains Blimp Engine tests and tests of the various components | 96 # This group contains Blimp Engine tests and tests of the various components |
86 # the Blimp Engine depends on. The idea is that if this group of tests pass | 97 # the Blimp Engine depends on. The idea is that if this group of tests pass |
87 # on a given system there is a high probability the Engine will also work on | 98 # on a given system there is a high probability the Engine will also work on |
88 # that platform. | 99 # that platform. |
89 group("blimp_engine_env_tests_group") { | 100 group("blimp_engine_env_tests_group") { |
90 testonly = true | 101 testonly = true |
91 | 102 |
92 # Additional environment test targets should be added here. | 103 # Additional environment test targets should be added here. |
93 # Executable targets and those executable targets' transitive | 104 # Executable targets and those executable targets' transitive |
94 # dependencies are not considered unless that executable is listed in | 105 # dependencies are not considered unless that executable is listed in |
95 # "data_deps". Otherwise, GN assumes that the executable (and | 106 # "data_deps". Otherwise, GN assumes that the executable (and |
96 # everything it requires) is a build-time dependency only. | 107 # everything it requires) is a build-time dependency only. |
97 data_deps = [ | 108 data_deps = [ |
98 ":blimp_browsertests", | 109 ":blimp_browsertests_grpc", |
| 110 ":blimp_browsertests_tcp", |
99 ":blimp_unittests", | 111 ":blimp_unittests", |
100 "//base:base_unittests", | 112 "//base:base_unittests", |
101 "//breakpad:generate_test_dump", | 113 "//breakpad:generate_test_dump", |
102 "//content/test:content_unittests", | 114 "//content/test:content_unittests", |
103 "//ipc:ipc_tests", | 115 "//ipc:ipc_tests", |
104 "//net:net_unittests", | 116 "//net:net_unittests", |
105 "//sandbox/linux:sandbox_linux_unittests", | 117 "//sandbox/linux:sandbox_linux_unittests", |
106 "//blimp/test/fake_engine:fake_engine_app", | 118 "//blimp/test/fake_engine:fake_engine_app", |
107 ] | 119 ] |
108 | 120 |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 "--output", | 216 "--output", |
205 rebase_path(_output_path, root_build_dir), | 217 rebase_path(_output_path, root_build_dir), |
206 "--target", | 218 "--target", |
207 rebase_path(_wrapped_script, root_build_dir), | 219 rebase_path(_wrapped_script, root_build_dir), |
208 "--output-directory", | 220 "--output-directory", |
209 rebase_path(root_out_dir, root_build_dir), | 221 rebase_path(root_out_dir, root_build_dir), |
210 "--flag-name=--output-linux-directory", | 222 "--flag-name=--output-linux-directory", |
211 ] | 223 ] |
212 } | 224 } |
213 } | 225 } |
OLD | NEW |