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

Side by Side Diff: mojo/BUILD.gn

Issue 1409123007: Move public SDK test targets to //mojo/BUILD.gn (from //mojo/edk/test/BUILD.gn). (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « no previous file | mojo/edk/test/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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/module_args/mojo.gni") 5 import("//build/module_args/mojo.gni")
6 import("//mojo/public/mojo.gni") 6 import("//mojo/public/mojo.gni")
7 import("//testing/test.gni")
7 8
8 declare_args() { 9 declare_args() {
9 mojo_use_go = false 10 mojo_use_go = false
10 11
11 # TODO(ncbray): support ASAN once NaCl's GN build is unforked. 12 # TODO(ncbray): support ASAN once NaCl's GN build is unforked.
12 # TODO(cstout): support fnl/musl build in nacl 13 # TODO(cstout): support fnl/musl build in nacl
13 mojo_use_nacl = is_linux && !is_asan && !is_fnl 14 mojo_use_nacl = is_linux && !is_asan && !is_fnl
14 mojo_use_nacl_nonsfi = (is_linux || is_android) && !is_asan && !is_fnl 15 mojo_use_nacl_nonsfi = (is_linux || is_android) && !is_asan && !is_fnl
15 } 16 }
16 17
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 deps += [ 54 deps += [
54 "//mojo/nacl/nonsfi:mojo_nacl_nonsfi", 55 "//mojo/nacl/nonsfi:mojo_nacl_nonsfi",
55 "//mojo/nacl/nonsfi:mojo_nacl_tests_nonsfi", 56 "//mojo/nacl/nonsfi:mojo_nacl_tests_nonsfi",
56 ] 57 ]
57 } 58 }
58 } 59 }
59 60
60 group("tests") { 61 group("tests") {
61 testonly = true 62 testonly = true
62 deps = [ 63 deps = [
64 ":public_tests",
63 "//mojo/common:mojo_common_unittests", 65 "//mojo/common:mojo_common_unittests",
64 "//mojo/edk/system:tests", 66 "//mojo/edk/system:tests",
65 "//mojo/edk/test:public_tests",
66 "//mojo/dart/embedder/test:dart_unittests", 67 "//mojo/dart/embedder/test:dart_unittests",
67 "//mojo/public/cpp/bindings/tests:versioning_apptests", 68 "//mojo/public/cpp/bindings/tests:versioning_apptests",
68 "//mojo/services/view_manager/cpp/tests:mojo_view_manager_lib_unittests", 69 "//mojo/services/view_manager/cpp/tests:mojo_view_manager_lib_unittests",
69 "//mojo/tools:message_generator", 70 "//mojo/tools:message_generator",
70 "//mojo/gles2:mgl_unittests", 71 "//mojo/gles2:mgl_unittests",
71 "//mojo/gpu:apptests", 72 "//mojo/gpu:apptests",
72 "//mojo/services/files/c:apptests", 73 "//mojo/services/files/c:apptests",
73 "//mojo/services/files/cpp:files_impl_apptests", 74 "//mojo/services/files/cpp:files_impl_apptests",
74 ] 75 ]
75 76
76 if (is_linux || is_android) { 77 if (is_linux || is_android) {
77 deps += [ "//mojo/converters/surfaces/tests:mojo_surfaces_lib_unittests" ] 78 deps += [ "//mojo/converters/surfaces/tests:mojo_surfaces_lib_unittests" ]
78 } 79 }
79 80
80 if (mojo_use_prebuilt_network_service) { 81 if (mojo_use_prebuilt_network_service) {
81 deps += [ "//mojo/public/tools:copy_network_service_apptests" ] 82 deps += [ "//mojo/public/tools:copy_network_service_apptests" ]
82 } 83 }
83 } 84 }
84 85
85 # This archives the system thunks implementation for exporting to SDK consumers. 86 # This archives the system thunks implementation for exporting to SDK consumers.
86 static_library("system_thunks") { 87 static_library("system_thunks") {
87 complete_static_lib = true 88 complete_static_lib = true
88 deps = [ 89 deps = [
89 "//mojo/public/platform/native:system", 90 "//mojo/public/platform/native:system",
90 ] 91 ]
91 } 92 }
93
94 # Public SDK test targets follow. These targets are not defined within the
95 # public SDK itself since they are built as native executable binaries, needing
96 # to be linked with the EDK.
97 # TODO(vtl): They should be converted to "apptests", i.e., run as apps.
98
99 group("public_tests") {
100 testonly = true
101 deps = [
102 ":mojo_public_application_unittests",
103 ":mojo_public_bindings_perftests",
104 ":mojo_public_bindings_unittests",
105 ":mojo_public_environment_unittests",
106 ":mojo_public_system_perftests",
107 ":mojo_public_system_unittests",
108 ":mojo_public_utility_unittests",
109 ":mojo_system_impl_private_unittests",
110 ]
111 }
112
113 test("mojo_public_application_unittests") {
114 deps = [
115 "//mojo/edk/test:run_all_unittests",
116 "//mojo/public/cpp/application/tests",
117 ]
118 }
119
120 test("mojo_public_bindings_unittests") {
121 deps = [
122 "//mojo/edk/test:run_all_unittests",
123 "//mojo/public/cpp/bindings/tests",
124 ]
125 }
126
127 test("mojo_public_bindings_perftests") {
128 deps = [
129 "//mojo/edk/test:run_all_perftests",
130 "//mojo/public/cpp/bindings/tests:perftests",
131 ]
132 }
133
134 test("mojo_public_environment_unittests") {
135 deps = [
136 "//mojo/edk/test:run_all_unittests",
137 "//mojo/public/cpp/environment/tests",
138 ]
139 }
140
141 test("mojo_public_system_perftests") {
142 deps = [
143 "//mojo/edk/test:run_all_perftests",
144 "//mojo/public/c/system/tests:perftests",
145 ]
146 }
147
148 test("mojo_public_system_unittests") {
149 deps = [
150 "//mojo/edk/test:run_all_unittests",
151 "//mojo/public/cpp/system/tests",
152 ]
153 }
154
155 test("mojo_public_utility_unittests") {
156 deps = [
157 "//mojo/edk/test:run_all_unittests",
158 "//mojo/public/cpp/utility/tests",
159 ]
160 }
161
162 test("mojo_system_impl_private_unittests") {
163 deps = [
164 "//mojo/edk/test:run_all_unittests",
165 "//mojo/public/platform/native:system_impl_private_tests",
166 ]
167 }
OLDNEW
« no previous file with comments | « no previous file | mojo/edk/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698