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("//build/config/ui.gni") | 6 import("//build/config/ui.gni") |
7 import("//testing/test.gni") | 7 import("//testing/test.gni") |
8 | 8 |
9 # Convenience meta-target for all of Blimp's production & test code. | 9 # Convenience meta-target for all of Blimp's production & test code. |
10 group("blimp") { | 10 group("blimp") { |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
52 | 52 |
53 if (is_android) { | 53 if (is_android) { |
54 deps += [ "//blimp/client:blimp_test_apk" ] | 54 deps += [ "//blimp/client:blimp_test_apk" ] |
55 } | 55 } |
56 | 56 |
57 if (is_linux) { | 57 if (is_linux) { |
58 deps += [ ":blimp_browsertests" ] | 58 deps += [ ":blimp_browsertests" ] |
59 } | 59 } |
60 } | 60 } |
61 | 61 |
62 if (is_linux) { | |
63 test("blimp_browsertests") { | |
64 deps = [ | |
65 "//blimp/test:engine_browsertests", | |
66 ] | |
67 } | |
68 } | |
69 | |
62 test("blimp_unittests") { | 70 test("blimp_unittests") { |
63 deps = [ | 71 deps = [ |
64 "//blimp/client:app_unit_tests", | 72 "//blimp/client:app_unit_tests", |
65 "//blimp/client:blimp_client_unit_tests", | 73 "//blimp/client:blimp_client_unit_tests", |
66 "//blimp/client:feature_unit_tests", | 74 "//blimp/client:feature_unit_tests", |
67 "//blimp/common:unit_tests", | 75 "//blimp/common:unit_tests", |
68 "//blimp/net:unit_tests", | 76 "//blimp/net:unit_tests", |
69 ] | 77 ] |
70 | 78 |
71 if (is_linux) { | 79 if (is_linux) { |
72 deps += [ "//blimp/engine:unit_tests" ] | 80 deps += [ "//blimp/engine:unit_tests" ] |
73 } | 81 } |
74 } | 82 } |
75 | 83 |
76 if (is_linux) { | 84 _blimp_tests_runtime_deps = "$root_gen_dir/blimp-tests.runtime_deps" |
maniscalco
2016/05/27 17:24:40
I'm thinking this should be inside an is_linux gua
Jess
2016/05/27 18:37:54
Moved into if(is_linux).
Wouldn't we end up with
| |
77 test("blimp_browsertests") { | 85 _rebased_blimp_tests_runtime_deps = |
maniscalco
2016/05/27 17:24:40
These two new var names feel a bit too generic ("b
Jess
2016/05/27 18:37:54
Added engine_env in a slightly different manner.
| |
78 deps = [ | 86 rebase_path(_blimp_tests_runtime_deps, root_out_dir) |
79 "//blimp/test:engine_browsertests", | 87 |
80 ] | 88 # Tests for validating potential system environments for running Blimp engine. |
maniscalco
2016/05/27 17:24:40
How about something like this:
# This group conta
Jess
2016/05/27 18:37:54
Done.
| |
81 } | 89 group("blimp_tests_group") { |
maniscalco
2016/05/27 17:24:40
blimp_tests_group feels too generic (e.g. we don't
Jess
2016/05/27 18:37:54
Renamed in line with other vars and actions. Let
| |
90 testonly = true | |
91 | |
92 # Additional environment test targets should be added here. | |
93 # Executable targets and those executable targets' transitive | |
94 # dependencies are not considered unless that executable is listed in | |
95 # "data_deps". Otherwise, GN assumes that the executable (and | |
96 # everything it requires) is a build-time dependency only. | |
97 data_deps = [ | |
98 ":blimp_unittests", | |
99 "//base:base_unittests", | |
100 ] | |
101 | |
102 write_runtime_deps = _blimp_tests_runtime_deps | |
82 } | 103 } |
104 | |
105 _blimp_tests_manifest = "$root_gen_dir/tests-manifest.txt" | |
106 _rebased_blimp_tests_manifest = rebase_path(_blimp_tests_manifest, root_out_dir) | |
107 _rebased_blimp_tests_blacklist = | |
108 rebase_path("//blimp/tools/tests-manifest-blacklist.txt") | |
109 | |
110 action("generate_blimp_tests_manifest") { | |
111 testonly = true | |
112 script = "//blimp/tools/generate-target-manifest.py" | |
113 args = [ | |
114 "--blacklist", | |
115 _rebased_blimp_tests_blacklist, | |
116 "--runtime-deps-file", | |
117 _rebased_blimp_tests_runtime_deps, | |
118 "--output", | |
119 _rebased_blimp_tests_manifest, | |
120 ] | |
121 inputs = [ | |
122 _blimp_tests_runtime_deps, | |
123 ] | |
124 outputs = [ | |
125 _blimp_tests_manifest, | |
126 ] | |
127 | |
128 # By specifying a dependency (not a data_dependency) on :blimp_tests_group, | |
129 # we can be sure that everything is built before the action is | |
130 # complete (though not necessarily before we generate the manifest | |
131 # itself). | |
132 public_deps = [ | |
133 ":blimp_tests_group", | |
134 ] | |
135 } | |
OLD | NEW |