OLD | NEW |
1 # Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. |
2 # | 2 # |
3 # Use of this source code is governed by a BSD-style license | 3 # Use of this source code is governed by a BSD-style license |
4 # that can be found in the LICENSE file in the root of the source | 4 # that can be found in the LICENSE file in the root of the source |
5 # tree. An additional intellectual property rights grant can be found | 5 # tree. An additional intellectual property rights grant can be found |
6 # in the file PATENTS. All contributing project authors may | 6 # in the file PATENTS. All contributing project authors may |
7 # be found in the AUTHORS file in the root of the source tree. | 7 # be found in the AUTHORS file in the root of the source tree. |
8 | 8 |
9 # This file exists in two versions. A no-op version under | 9 # This file exists in two versions. A no-op version under |
10 # webrtc/build/android_tests_noop.gyp and this one. This gyp file builds the | 10 # webrtc/build/android_tests_noop.gyp and this one. This gyp file builds the |
11 # tests (for Android) assuming that WebRTC is built inside a Chromium | 11 # tests (for Android) assuming that WebRTC is built inside a Chromium |
12 # workspace. The no-op version is included when building WebRTC without | 12 # workspace. The no-op version is included when building WebRTC without |
13 # Chromium. This is a workaround for the fact that 'includes' don't expand | 13 # Chromium. This is a workaround for the fact that 'includes' don't expand |
14 # variables and that the relative location of apk_test.gypi is different for | 14 # variables and that the relative location of apk_test.gypi is different for |
15 # WebRTC when built as part of Chromium and when it is built without Chromium. | 15 # WebRTC when built as part of Chromium and when it is built without Chromium. |
16 { | 16 { |
17 'includes': [ | 17 'includes': [ |
18 'common.gypi', | 18 'common.gypi', |
19 ], | 19 ], |
20 'variables': { | |
21 'shard_timeout': 900, | |
22 }, | |
23 'targets': [ | 20 'targets': [ |
24 { | 21 { |
25 'target_name': 'audio_codec_speed_tests_apk', | 22 'target_name': 'audio_codec_speed_tests_apk', |
26 'type': 'none', | 23 'type': 'none', |
27 'variables': { | 24 'variables': { |
| 25 'shard_timeout': 900, |
28 'test_suite_name': 'audio_codec_speed_tests', | 26 'test_suite_name': 'audio_codec_speed_tests', |
29 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)audio_codec_s
peed_tests<(SHARED_LIB_SUFFIX)', | 27 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)audio_codec_s
peed_tests<(SHARED_LIB_SUFFIX)', |
30 'isolate_file': '../modules/audio_codec_speed_tests.isolate', | 28 'isolate_file': '../modules/audio_codec_speed_tests.isolate', |
31 }, | 29 }, |
32 'dependencies': [ | 30 'dependencies': [ |
33 '<(webrtc_root)/modules/modules.gyp:audio_codec_speed_tests', | 31 '<(webrtc_root)/modules/modules.gyp:audio_codec_speed_tests', |
34 ], | 32 ], |
35 'includes': [ | 33 'includes': [ |
36 '../../build/apk_test.gypi', | 34 '../../build/apk_test.gypi', |
37 ], | 35 ], |
38 }, | 36 }, |
39 { | 37 { |
40 'target_name': 'audio_decoder_unittests_apk', | 38 'target_name': 'audio_decoder_unittests_apk', |
41 'type': 'none', | 39 'type': 'none', |
42 'variables': { | 40 'variables': { |
| 41 'shard_timeout': 900, |
43 'test_suite_name': 'audio_decoder_unittests', | 42 'test_suite_name': 'audio_decoder_unittests', |
44 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)audio_decoder
_unittests<(SHARED_LIB_SUFFIX)', | 43 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)audio_decoder
_unittests<(SHARED_LIB_SUFFIX)', |
45 'isolate_file': '../modules/audio_decoder_unittests.isolate', | 44 'isolate_file': '../modules/audio_decoder_unittests.isolate', |
46 }, | 45 }, |
47 'dependencies': [ | 46 'dependencies': [ |
48 '<(webrtc_root)/modules/modules.gyp:audio_decoder_unittests', | 47 '<(webrtc_root)/modules/modules.gyp:audio_decoder_unittests', |
49 ], | 48 ], |
50 'includes': [ | 49 'includes': [ |
51 '../../build/apk_test.gypi', | 50 '../../build/apk_test.gypi', |
52 ], | 51 ], |
53 }, | 52 }, |
54 { | 53 { |
55 'target_name': 'common_audio_unittests_apk', | 54 'target_name': 'common_audio_unittests_apk', |
56 'type': 'none', | 55 'type': 'none', |
57 'variables': { | 56 'variables': { |
| 57 'shard_timeout': 900, |
58 'test_suite_name': 'common_audio_unittests', | 58 'test_suite_name': 'common_audio_unittests', |
59 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)common_audio_
unittests<(SHARED_LIB_SUFFIX)', | 59 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)common_audio_
unittests<(SHARED_LIB_SUFFIX)', |
60 'isolate_file': '../common_audio/common_audio_unittests.isolate', | 60 'isolate_file': '../common_audio/common_audio_unittests.isolate', |
61 }, | 61 }, |
62 'dependencies': [ | 62 'dependencies': [ |
63 '<(webrtc_root)/common_audio/common_audio.gyp:common_audio_unittests', | 63 '<(webrtc_root)/common_audio/common_audio.gyp:common_audio_unittests', |
64 ], | 64 ], |
65 'includes': [ | 65 'includes': [ |
66 '../../build/apk_test.gypi', | 66 '../../build/apk_test.gypi', |
67 ], | 67 ], |
68 }, | 68 }, |
69 { | 69 { |
70 'target_name': 'common_video_unittests_apk', | 70 'target_name': 'common_video_unittests_apk', |
71 'type': 'none', | 71 'type': 'none', |
72 'variables': { | 72 'variables': { |
| 73 'shard_timeout': 900, |
73 'test_suite_name': 'common_video_unittests', | 74 'test_suite_name': 'common_video_unittests', |
74 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)common_video_
unittests<(SHARED_LIB_SUFFIX)', | 75 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)common_video_
unittests<(SHARED_LIB_SUFFIX)', |
75 'isolate_file': '../common_video/common_video_unittests.isolate', | 76 'isolate_file': '../common_video/common_video_unittests.isolate', |
76 }, | 77 }, |
77 'dependencies': [ | 78 'dependencies': [ |
78 '<(webrtc_root)/common_video/common_video_unittests.gyp:common_video_uni
ttests', | 79 '<(webrtc_root)/common_video/common_video_unittests.gyp:common_video_uni
ttests', |
79 ], | 80 ], |
80 'includes': [ | 81 'includes': [ |
81 '../../build/apk_test.gypi', | 82 '../../build/apk_test.gypi', |
82 ], | 83 ], |
83 }, | 84 }, |
84 { | 85 { |
85 'target_name': 'modules_tests_apk', | 86 'target_name': 'modules_tests_apk', |
86 'type': 'none', | 87 'type': 'none', |
87 'variables': { | 88 'variables': { |
| 89 'shard_timeout': 900, |
88 'test_suite_name': 'modules_tests', | 90 'test_suite_name': 'modules_tests', |
89 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)modules_tests
<(SHARED_LIB_SUFFIX)', | 91 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)modules_tests
<(SHARED_LIB_SUFFIX)', |
90 'isolate_file': '../modules/modules_tests.isolate', | 92 'isolate_file': '../modules/modules_tests.isolate', |
91 }, | 93 }, |
92 'dependencies': [ | 94 'dependencies': [ |
93 '<(webrtc_root)/modules/modules.gyp:modules_tests', | 95 '<(webrtc_root)/modules/modules.gyp:modules_tests', |
94 ], | 96 ], |
95 'includes': [ | 97 'includes': [ |
96 '../../build/apk_test.gypi', | 98 '../../build/apk_test.gypi', |
97 ], | 99 ], |
98 }, | 100 }, |
99 { | 101 { |
100 'target_name': 'modules_unittests_apk', | 102 'target_name': 'modules_unittests_apk', |
101 'type': 'none', | 103 'type': 'none', |
102 'variables': { | 104 'variables': { |
| 105 'shard_timeout': 900, |
103 'test_suite_name': 'modules_unittests', | 106 'test_suite_name': 'modules_unittests', |
104 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)modules_unitt
ests<(SHARED_LIB_SUFFIX)', | 107 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)modules_unitt
ests<(SHARED_LIB_SUFFIX)', |
105 'isolate_file': '../modules/modules_unittests.isolate', | 108 'isolate_file': '../modules/modules_unittests.isolate', |
106 }, | 109 }, |
107 'dependencies': [ | 110 'dependencies': [ |
108 '<(webrtc_root)/modules/modules.gyp:modules_unittests', | 111 '<(webrtc_root)/modules/modules.gyp:modules_unittests', |
109 'audio_device_java', | 112 'audio_device_java', |
110 ], | 113 ], |
111 'includes': [ | 114 'includes': [ |
112 '../../build/apk_test.gypi', | 115 '../../build/apk_test.gypi', |
113 ], | 116 ], |
114 }, | 117 }, |
115 { | 118 { |
116 'target_name': 'peerconnection_unittests_apk', | 119 'target_name': 'peerconnection_unittests_apk', |
117 'type': 'none', | 120 'type': 'none', |
118 'variables': { | 121 'variables': { |
| 122 'shard_timeout': 900, |
119 'test_suite_name': 'peerconnection_unittests', | 123 'test_suite_name': 'peerconnection_unittests', |
120 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)peerconnectio
n_unittests<(SHARED_LIB_SUFFIX)', | 124 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)peerconnectio
n_unittests<(SHARED_LIB_SUFFIX)', |
121 'isolate_file': '../api/peerconnection_unittests.isolate', | 125 'isolate_file': '../api/peerconnection_unittests.isolate', |
122 }, | 126 }, |
123 'dependencies': [ | 127 'dependencies': [ |
124 '<(webrtc_root)/api/api_tests.gyp:peerconnection_unittests', | 128 '<(webrtc_root)/api/api_tests.gyp:peerconnection_unittests', |
125 '<(webrtc_root)/api/api.gyp:libjingle_peerconnection_java', | 129 '<(webrtc_root)/api/api.gyp:libjingle_peerconnection_java', |
126 ], | 130 ], |
127 'includes': [ | 131 'includes': [ |
128 '../../build/apk_test.gypi', | 132 '../../build/apk_test.gypi', |
129 ], | 133 ], |
130 }, | 134 }, |
131 { | 135 { |
132 'target_name': 'rtc_unittests_apk', | 136 'target_name': 'rtc_unittests_apk', |
133 'type': 'none', | 137 'type': 'none', |
134 'variables': { | 138 'variables': { |
| 139 'shard_timeout': 900, |
135 'test_suite_name': 'rtc_unittests', | 140 'test_suite_name': 'rtc_unittests', |
136 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)rtc_unittests
<(SHARED_LIB_SUFFIX)', | 141 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)rtc_unittests
<(SHARED_LIB_SUFFIX)', |
137 'isolate_file': '../rtc_unittests.isolate', | 142 'isolate_file': '../rtc_unittests.isolate', |
138 }, | 143 }, |
139 'dependencies': [ | 144 'dependencies': [ |
140 '<(webrtc_root)/webrtc.gyp:rtc_unittests', | 145 '<(webrtc_root)/webrtc.gyp:rtc_unittests', |
141 ], | 146 ], |
142 'includes': [ | 147 'includes': [ |
143 '../../build/apk_test.gypi', | 148 '../../build/apk_test.gypi', |
144 ], | 149 ], |
145 }, | 150 }, |
146 { | 151 { |
147 'target_name': 'system_wrappers_unittests_apk', | 152 'target_name': 'system_wrappers_unittests_apk', |
148 'type': 'none', | 153 'type': 'none', |
149 'variables': { | 154 'variables': { |
| 155 'shard_timeout': 900, |
150 'test_suite_name': 'system_wrappers_unittests', | 156 'test_suite_name': 'system_wrappers_unittests', |
151 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)system_wrappe
rs_unittests<(SHARED_LIB_SUFFIX)', | 157 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)system_wrappe
rs_unittests<(SHARED_LIB_SUFFIX)', |
152 'isolate_file': '../system_wrappers/system_wrappers_unittests.isolate', | 158 'isolate_file': '../system_wrappers/system_wrappers_unittests.isolate', |
153 }, | 159 }, |
154 'dependencies': [ | 160 'dependencies': [ |
155 '<(webrtc_root)/system_wrappers/system_wrappers_tests.gyp:system_wrapper
s_unittests', | 161 '<(webrtc_root)/system_wrappers/system_wrappers_tests.gyp:system_wrapper
s_unittests', |
156 ], | 162 ], |
157 'includes': [ | 163 'includes': [ |
158 '../../build/apk_test.gypi', | 164 '../../build/apk_test.gypi', |
159 ], | 165 ], |
160 }, | 166 }, |
161 { | 167 { |
162 'target_name': 'test_support_unittests_apk', | 168 'target_name': 'test_support_unittests_apk', |
163 'type': 'none', | 169 'type': 'none', |
164 'variables': { | 170 'variables': { |
| 171 'shard_timeout': 900, |
165 'test_suite_name': 'test_support_unittests', | 172 'test_suite_name': 'test_support_unittests', |
166 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)test_support_
unittests<(SHARED_LIB_SUFFIX)', | 173 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)test_support_
unittests<(SHARED_LIB_SUFFIX)', |
167 'isolate_file': '../test/test_support_unittests.isolate', | 174 'isolate_file': '../test/test_support_unittests.isolate', |
168 }, | 175 }, |
169 'dependencies': [ | 176 'dependencies': [ |
170 '<(webrtc_root)/test/test.gyp:test_support_unittests', | 177 '<(webrtc_root)/test/test.gyp:test_support_unittests', |
171 ], | 178 ], |
172 'includes': [ | 179 'includes': [ |
173 '../../build/apk_test.gypi', | 180 '../../build/apk_test.gypi', |
174 ], | 181 ], |
175 }, | 182 }, |
176 { | 183 { |
177 'target_name': 'tools_unittests_apk', | 184 'target_name': 'tools_unittests_apk', |
178 'type': 'none', | 185 'type': 'none', |
179 'variables': { | 186 'variables': { |
| 187 'shard_timeout': 900, |
180 'test_suite_name': 'tools_unittests', | 188 'test_suite_name': 'tools_unittests', |
181 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)tools_unittes
ts<(SHARED_LIB_SUFFIX)', | 189 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)tools_unittes
ts<(SHARED_LIB_SUFFIX)', |
182 'isolate_file': '../tools/tools_unittests.isolate', | 190 'isolate_file': '../tools/tools_unittests.isolate', |
183 }, | 191 }, |
184 'dependencies': [ | 192 'dependencies': [ |
185 '<(webrtc_root)/tools/tools.gyp:tools_unittests', | 193 '<(webrtc_root)/tools/tools.gyp:tools_unittests', |
186 ], | 194 ], |
187 'includes': [ | 195 'includes': [ |
188 '../../build/apk_test.gypi', | 196 '../../build/apk_test.gypi', |
189 ], | 197 ], |
190 }, | 198 }, |
191 { | 199 { |
192 'target_name': 'video_engine_tests_apk', | 200 'target_name': 'video_engine_tests_apk', |
193 'type': 'none', | 201 'type': 'none', |
194 'variables': { | 202 'variables': { |
| 203 'shard_timeout': 900, |
195 'test_suite_name': 'video_engine_tests', | 204 'test_suite_name': 'video_engine_tests', |
196 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)video_engine_
tests<(SHARED_LIB_SUFFIX)', | 205 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)video_engine_
tests<(SHARED_LIB_SUFFIX)', |
197 'isolate_file': '../video_engine_tests.isolate', | 206 'isolate_file': '../video_engine_tests.isolate', |
198 }, | 207 }, |
199 'dependencies': [ | 208 'dependencies': [ |
200 '<(webrtc_root)/webrtc.gyp:video_engine_tests', | 209 '<(webrtc_root)/webrtc.gyp:video_engine_tests', |
201 ], | 210 ], |
202 'includes': [ | 211 'includes': [ |
203 '../../build/apk_test.gypi', | 212 '../../build/apk_test.gypi', |
204 ], | 213 ], |
205 }, | 214 }, |
206 { | 215 { |
207 'target_name': 'voice_engine_unittests_apk', | 216 'target_name': 'voice_engine_unittests_apk', |
208 'type': 'none', | 217 'type': 'none', |
209 'variables': { | 218 'variables': { |
| 219 'shard_timeout': 900, |
210 'test_suite_name': 'voice_engine_unittests', | 220 'test_suite_name': 'voice_engine_unittests', |
211 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)voice_engine_
unittests<(SHARED_LIB_SUFFIX)', | 221 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)voice_engine_
unittests<(SHARED_LIB_SUFFIX)', |
212 'isolate_file': '../voice_engine/voice_engine_unittests.isolate', | 222 'isolate_file': '../voice_engine/voice_engine_unittests.isolate', |
213 }, | 223 }, |
214 'dependencies': [ | 224 'dependencies': [ |
215 '<(webrtc_root)/voice_engine/voice_engine.gyp:voice_engine_unittests', | 225 '<(webrtc_root)/voice_engine/voice_engine.gyp:voice_engine_unittests', |
216 ], | 226 ], |
217 'includes': [ | 227 'includes': [ |
218 '../../build/apk_test.gypi', | 228 '../../build/apk_test.gypi', |
219 ], | 229 ], |
(...skipping 11 matching lines...) Expand all Loading... |
231 '<(webrtc_root)/webrtc.gyp:webrtc_perf_tests', | 241 '<(webrtc_root)/webrtc.gyp:webrtc_perf_tests', |
232 ], | 242 ], |
233 'includes': [ | 243 'includes': [ |
234 '../../build/apk_test.gypi', | 244 '../../build/apk_test.gypi', |
235 ], | 245 ], |
236 }, | 246 }, |
237 { | 247 { |
238 'target_name': 'webrtc_nonparallel_tests_apk', | 248 'target_name': 'webrtc_nonparallel_tests_apk', |
239 'type': 'none', | 249 'type': 'none', |
240 'variables': { | 250 'variables': { |
| 251 'shard_timeout': 900, |
241 'test_suite_name': 'webrtc_nonparallel_tests', | 252 'test_suite_name': 'webrtc_nonparallel_tests', |
242 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)webrtc_nonpar
allel_tests<(SHARED_LIB_SUFFIX)', | 253 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)webrtc_nonpar
allel_tests<(SHARED_LIB_SUFFIX)', |
243 'isolate_file': '../webrtc_nonparallel_tests.isolate', | 254 'isolate_file': '../webrtc_nonparallel_tests.isolate', |
244 }, | 255 }, |
245 'dependencies': [ | 256 'dependencies': [ |
246 '<(webrtc_root)/webrtc.gyp:webrtc_nonparallel_tests', | 257 '<(webrtc_root)/webrtc.gyp:webrtc_nonparallel_tests', |
247 ], | 258 ], |
248 'includes': [ | 259 'includes': [ |
249 '../../build/apk_test.gypi', | 260 '../../build/apk_test.gypi', |
250 ], | 261 ], |
251 }, | 262 }, |
252 { | 263 { |
| 264 'target_name': 'android_junit_tests', |
| 265 'type': 'none', |
| 266 'dependencies': [ |
| 267 '<(webrtc_root)/api/api.gyp:libjingle_peerconnection_java', |
| 268 '<(DEPTH)/base/base.gyp:base_java', |
| 269 '<(DEPTH)/base/base.gyp:base_java_test_support', |
| 270 '<(DEPTH)/base/base.gyp:base_junit_test_support', |
| 271 ], |
| 272 'variables': { |
| 273 'main_class': 'org.chromium.testing.local.JunitTestMain', |
| 274 'src_paths': [ |
| 275 '../androidjunit/', |
| 276 ], |
| 277 'test_type': 'junit', |
| 278 'wrapper_script_name': 'helper/<(_target_name)', |
| 279 }, |
| 280 'includes': [ |
| 281 '../../build/android/test_runner.gypi', |
| 282 '../../build/host_jar.gypi', |
| 283 ], |
| 284 }, |
| 285 { |
253 'target_name': 'audio_device_java', | 286 'target_name': 'audio_device_java', |
254 'type': 'none', | 287 'type': 'none', |
255 'variables': { | 288 'variables': { |
256 'java_in_dir': '<(webrtc_root)/modules/audio_device/android/java', | 289 'java_in_dir': '<(webrtc_root)/modules/audio_device/android/java', |
257 'additional_src_dirs': [ '<(webrtc_root)/base/java/src', ], | 290 'additional_src_dirs': [ '<(webrtc_root)/base/java/src', ], |
258 'never_lint': 1, | 291 'never_lint': 1, |
259 }, | 292 }, |
260 'includes': [ | 293 'includes': [ |
261 '../../build/java.gypi', | 294 '../../build/java.gypi', |
262 ], | 295 ], |
263 }, | 296 }, |
264 ], | 297 ], |
265 } | 298 } |
266 | |
267 | |
OLD | NEW |