blob: 47e5d5e527a0e384257c18d51c8cbb25916eda9d [file] [log] [blame]
Remi NGUYEN VANf33b6ea2020-06-03 16:10:43 +09001{
Diwas Sharma7621bfb2024-05-14 20:50:42 +00002 "captiveportal-networkstack-resolve-tethering-mainline-presubmit": [
3 {
4 "name": "CtsNetTestCasesLatestSdk",
5 "options": [
6 {
7 "exclude-annotation": "com.android.testutils.SkipPresubmit"
8 },
9 {
10 "exclude-annotation": "com.android.testutils.SkipMainlinePresubmit"
11 },
12 {
13 "exclude-annotation": "androidx.test.filters.RequiresDevice"
14 }
15 ]
16 },
17 {
18 "name": "CtsNetTestCasesMaxTargetSdk30",
19 "options": [
20 {
21 "exclude-annotation": "com.android.testutils.SkipPresubmit"
22 },
23 {
24 "exclude-annotation": "com.android.testutils.SkipMainlinePresubmit"
25 },
26 {
27 "exclude-annotation": "androidx.test.filters.RequiresDevice"
28 }
29 ]
30 },
31 {
32 "name": "CtsNetTestCasesMaxTargetSdk31",
33 "options": [
34 {
35 "exclude-annotation": "com.android.testutils.SkipPresubmit"
36 },
37 {
38 "exclude-annotation": "com.android.testutils.SkipMainlinePresubmit"
39 },
40 {
41 "exclude-annotation": "androidx.test.filters.RequiresDevice"
42 }
43 ]
44 },
45 {
46 "name": "CtsNetTestCasesMaxTargetSdk33",
47 "options": [
48 {
49 "exclude-annotation": "com.android.testutils.SkipPresubmit"
50 },
51 {
52 "exclude-annotation": "com.android.testutils.SkipMainlinePresubmit"
53 },
54 {
55 "exclude-annotation": "androidx.test.filters.RequiresDevice"
56 }
57 ]
58 },
59 {
60 "name": "bpf_existence_test"
61 },
62 {
63 "name": "connectivity_native_test"
64 },
65 {
66 "name": "netd_updatable_unit_test"
67 },
68 {
69 "name": "ConnectivityCoverageTests",
70 "options": [
71 {
72 "exclude-annotation": "com.android.testutils.SkipPresubmit"
73 }
74 ]
75 },
76 {
77 "name": "libnetworkstats_test"
78 },
79 {
Diwas Sharma7621bfb2024-05-14 20:50:42 +000080 "name": "CtsTetheringTestLatestSdk",
81 "options": [
82 {
83 "exclude-annotation": "com.android.testutils.NetworkStackModuleTest"
84 }
85 ]
86 }
87 ],
88 "captiveportal-networkstack-mainline-presubmit": [
89 // Test with APK modules only, in cases where APEX is not supported, or the other modules
90 // were simply not updated
91 {
92 "name": "CtsNetTestCasesLatestSdk",
93 "options": [
94 {
95 "exclude-annotation": "com.android.testutils.SkipPresubmit"
96 },
97 {
98 "exclude-annotation": "com.android.testutils.SkipMainlinePresubmit"
99 },
100 {
101 "exclude-annotation": "androidx.test.filters.RequiresDevice"
102 },
103 {
104 "exclude-annotation": "com.android.testutils.ConnectivityModuleTest"
105 },
106 {
107 "exclude-annotation": "com.android.testutils.DnsResolverModuleTest"
108 }
109 ]
110 }
111 ],
112 "tethering-mainline-presubmit": [
113 // Test with connectivity/tethering module only, to catch integration issues with older versions
114 // of other modules. "new tethering + old NetworkStack" is not a configuration that should
115 // really exist in the field, but there is no strong guarantee, and it is required by MTS
116 // testing for module qualification, where modules are tested independently.
117 {
118 "name": "CtsNetTestCasesLatestSdk",
119 "options": [
120 {
121 "exclude-annotation": "com.android.testutils.SkipPresubmit"
122 },
123 {
124 "exclude-annotation": "com.android.testutils.SkipMainlinePresubmit"
125 },
126 {
127 "exclude-annotation": "androidx.test.filters.RequiresDevice"
128 },
129 {
130 "exclude-annotation": "com.android.testutils.DnsResolverModuleTest"
131 },
132 {
133 "exclude-annotation": "com.android.testutils.NetworkStackModuleTest"
134 }
135 ]
136 }
137 ],
Remi NGUYEN VANa773ccb2020-06-25 03:58:10 +0000138 "presubmit": [
Remi NGUYEN VAN48c68882021-07-16 01:36:12 +0000139 {
Xiao Ma432162d2023-09-29 15:28:49 +0900140 "name": "ConnectivityCoverageTests",
141 "options": [
142 {
143 "exclude-annotation": "com.android.testutils.NetworkStackModuleTest"
Junyu Lai86298be2023-10-17 17:25:10 +0800144 },
145 {
146 "exclude-annotation": "com.android.testutils.SkipPresubmit"
Xiao Ma432162d2023-09-29 15:28:49 +0900147 }
148 ]
Remi NGUYEN VAN48c68882021-07-16 01:36:12 +0000149 },
Remi NGUYEN VAN40da62d2022-04-01 11:59:45 +0900150 {
151 // In addition to ConnectivityCoverageTests, runs non-connectivity-module tests
Junyu Laib8fc7552023-07-26 14:25:49 +0800152 "name": "FrameworksNetTests",
153 "options": [
154 {
155 "exclude-annotation": "com.android.testutils.SkipPresubmit"
156 }
157 ]
Remi NGUYEN VAN40da62d2022-04-01 11:59:45 +0900158 },
Remi NGUYEN VANad380c12021-03-01 06:48:29 +0000159 // Run in addition to mainline-presubmit as mainline-presubmit is not
160 // supported in every branch.
161 // CtsNetTestCasesLatestSdk uses stable API shims, so does not exercise
162 // some latest APIs. Run CtsNetTestCases to get coverage of newer APIs.
Remi NGUYEN VANf33b6ea2020-06-03 16:10:43 +0900163 {
Remi NGUYEN VANad380c12021-03-01 06:48:29 +0000164 "name": "CtsNetTestCases",
Remi NGUYEN VANf33b6ea2020-06-03 16:10:43 +0900165 "options": [
166 {
167 "exclude-annotation": "com.android.testutils.SkipPresubmit"
Remi NGUYEN VAN9a689f82021-10-28 09:41:21 +0900168 },
169 {
170 "exclude-annotation": "androidx.test.filters.RequiresDevice"
Remi NGUYEN VANf33b6ea2020-06-03 16:10:43 +0900171 }
172 ]
Remi NGUYEN VANd954bfc2021-05-20 01:25:47 +0000173 },
Paul Hu206e5f02022-05-16 15:51:46 +0800174 // Also run CtsNetTestCasesLatestSdk to ensure tests using older shims pass.
175 {
176 "name": "CtsNetTestCasesLatestSdk",
177 "options": [
178 {
179 "exclude-annotation": "com.android.testutils.SkipPresubmit"
180 },
181 {
182 "exclude-annotation": "androidx.test.filters.RequiresDevice"
183 }
184 ]
185 },
Lorenzo Colitti9e61b822022-05-28 00:20:06 +0900186 // CTS tests that target older SDKs.
187 {
Remi NGUYEN VAN348bbb02022-07-19 16:33:04 +0900188 "name": "CtsNetTestCasesMaxTargetSdk30",
189 "options": [
190 {
191 "exclude-annotation": "com.android.testutils.SkipPresubmit"
192 },
193 {
194 "exclude-annotation": "androidx.test.filters.RequiresDevice"
195 }
196 ]
197 },
198 {
Lorenzo Colitti9e61b822022-05-28 00:20:06 +0900199 "name": "CtsNetTestCasesMaxTargetSdk31",
200 "options": [
201 {
202 "exclude-annotation": "com.android.testutils.SkipPresubmit"
203 },
204 {
205 "exclude-annotation": "androidx.test.filters.RequiresDevice"
206 }
207 ]
208 },
Remi NGUYEN VANd954bfc2021-05-20 01:25:47 +0000209 {
Yuyang Huang72bc6002023-02-17 17:29:01 +0900210 "name": "CtsNetTestCasesMaxTargetSdk33",
211 "options": [
212 {
213 "exclude-annotation": "com.android.testutils.SkipPresubmit"
214 },
215 {
216 "exclude-annotation": "androidx.test.filters.RequiresDevice"
217 }
218 ]
219 },
220 {
Lorenzo Colitti98c83d02022-02-18 17:24:48 +0900221 "name": "bpf_existence_test"
222 },
223 {
Tyler Wearb4ab4c32022-03-03 21:44:30 -0800224 "name": "connectivity_native_test"
225 },
226 {
Hungming Chen2e6d1072022-05-30 16:18:37 +0800227 "name": "libclat_test"
228 },
229 {
Ken Chen1647f602021-10-05 21:55:22 +0800230 "name": "netd_updatable_unit_test"
231 },
232 {
Remi NGUYEN VANd954bfc2021-05-20 01:25:47 +0000233 "name": "TetheringTests"
234 },
235 {
236 "name": "TetheringIntegrationTests"
Wayne Ma7be6bce2022-01-12 16:29:49 +0800237 },
238 {
Ken Chenf426b2b2022-01-23 15:39:13 +0800239 "name": "libnetworkstats_test"
Remi NGUYEN VAN3b813232022-02-16 12:15:14 +0900240 },
241 {
242 "name": "FrameworksNetIntegrationTests"
Remi NGUYEN VANf33b6ea2020-06-03 16:10:43 +0900243 }
easoncyleea1b13d62020-06-12 14:14:14 +0800244 ],
markchien911cf8f2021-07-19 17:23:54 +0800245 "postsubmit": [
246 {
247 "name": "TetheringPrivilegedTests"
Lorenzo Colitti3b38b122022-01-12 16:06:07 +0900248 },
Lorenzo Colitti3b38b122022-01-12 16:06:07 +0900249 {
Ken Chen1647f602021-10-05 21:55:22 +0800250 "name": "netd_updatable_unit_test",
251 "keywords": ["netd-device-kernel-4.9", "netd-device-kernel-4.14"]
252 },
253 {
Ken Chend4e5c762023-09-13 17:21:36 +0800254 "name": "dns_helper_unit_test"
255 },
256 {
Remi NGUYEN VAN3b813232022-02-16 12:15:14 +0900257 "name": "FrameworksNetDeflakeTest"
Junyu Laib8fc7552023-07-26 14:25:49 +0800258 },
Remi NGUYEN VAN8db52a52023-07-26 16:15:03 +0900259 // Postsubmit on virtual devices to monitor flakiness of @SkipPresubmit methods
260 {
261 "name": "CtsNetTestCases",
262 "options": [
263 {
264 "exclude-annotation": "androidx.test.filters.RequiresDevice"
265 }
266 ]
267 },
Junyu Laib8fc7552023-07-26 14:25:49 +0800268 {
269 "name": "FrameworksNetTests"
Junyu Lai850e6fa2024-06-21 14:34:01 +0800270 },
271 // TODO: Move to presumit after meet SLO requirement.
272 {
273 "name": "NetworkStaticLibHostPythonTests"
markchien911cf8f2021-07-19 17:23:54 +0800274 }
275 ],
easoncyleea1b13d62020-06-12 14:14:14 +0800276 "mainline-presubmit": [
277 {
easoncylee48c4cf62020-10-23 13:10:01 +0800278 "name": "CtsNetTestCasesLatestSdk[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]",
easoncyleea1b13d62020-06-12 14:14:14 +0800279 "options": [
280 {
281 "exclude-annotation": "com.android.testutils.SkipPresubmit"
Remi NGUYEN VAN9a689f82021-10-28 09:41:21 +0900282 },
283 {
Remi NGUYEN VAN8db52a52023-07-26 16:15:03 +0900284 "exclude-annotation": "com.android.testutils.SkipMainlinePresubmit"
285 },
286 {
Remi NGUYEN VAN9a689f82021-10-28 09:41:21 +0900287 "exclude-annotation": "androidx.test.filters.RequiresDevice"
easoncyleea1b13d62020-06-12 14:14:14 +0800288 }
289 ]
Remi NGUYEN VAN5a1f2f72021-07-01 13:55:49 +0000290 },
291 {
Remi NGUYEN VAN348bbb02022-07-19 16:33:04 +0900292 "name": "CtsNetTestCasesMaxTargetSdk30[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]",
293 "options": [
294 {
295 "exclude-annotation": "com.android.testutils.SkipPresubmit"
296 },
297 {
Remi NGUYEN VAN8db52a52023-07-26 16:15:03 +0900298 "exclude-annotation": "com.android.testutils.SkipMainlinePresubmit"
299 },
300 {
Remi NGUYEN VAN348bbb02022-07-19 16:33:04 +0900301 "exclude-annotation": "androidx.test.filters.RequiresDevice"
302 }
303 ]
304 },
305 {
Lorenzo Colitti9e61b822022-05-28 00:20:06 +0900306 "name": "CtsNetTestCasesMaxTargetSdk31[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]",
307 "options": [
308 {
309 "exclude-annotation": "com.android.testutils.SkipPresubmit"
310 },
311 {
Remi NGUYEN VAN8db52a52023-07-26 16:15:03 +0900312 "exclude-annotation": "com.android.testutils.SkipMainlinePresubmit"
313 },
314 {
Lorenzo Colitti9e61b822022-05-28 00:20:06 +0900315 "exclude-annotation": "androidx.test.filters.RequiresDevice"
316 }
317 ]
318 },
Yuyang Huang72bc6002023-02-17 17:29:01 +0900319 {
320 "name": "CtsNetTestCasesMaxTargetSdk33[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]",
321 "options": [
322 {
323 "exclude-annotation": "com.android.testutils.SkipPresubmit"
324 },
325 {
Remi NGUYEN VAN8db52a52023-07-26 16:15:03 +0900326 "exclude-annotation": "com.android.testutils.SkipMainlinePresubmit"
327 },
328 {
Yuyang Huang72bc6002023-02-17 17:29:01 +0900329 "exclude-annotation": "androidx.test.filters.RequiresDevice"
330 }
331 ]
332 },
Remi NGUYEN VAN7d800632022-05-31 10:53:47 +0900333 // Test with APK modules only, in cases where APEX is not supported, or the other modules
334 // were simply not updated
335 {
336 "name": "CtsNetTestCasesLatestSdk[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk]",
337 "options": [
338 {
339 "exclude-annotation": "com.android.testutils.SkipPresubmit"
340 },
341 {
Remi NGUYEN VAN8db52a52023-07-26 16:15:03 +0900342 "exclude-annotation": "com.android.testutils.SkipMainlinePresubmit"
343 },
344 {
Remi NGUYEN VAN7d800632022-05-31 10:53:47 +0900345 "exclude-annotation": "androidx.test.filters.RequiresDevice"
346 },
347 {
348 "exclude-annotation": "com.android.testutils.ConnectivityModuleTest"
Mike Yucc5dbf92023-06-06 11:26:28 +0000349 },
350 {
351 "exclude-annotation": "com.android.testutils.DnsResolverModuleTest"
Remi NGUYEN VAN7d800632022-05-31 10:53:47 +0900352 }
353 ]
354 },
355 // Test with connectivity/tethering module only, to catch integration issues with older versions
356 // of other modules. "new tethering + old NetworkStack" is not a configuration that should
357 // really exist in the field, but there is no strong guarantee, and it is required by MTS
358 // testing for module qualification, where modules are tested independently.
359 {
360 "name": "CtsNetTestCasesLatestSdk[com.google.android.tethering.apex]",
361 "options": [
362 {
363 "exclude-annotation": "com.android.testutils.SkipPresubmit"
364 },
365 {
Remi NGUYEN VAN8db52a52023-07-26 16:15:03 +0900366 "exclude-annotation": "com.android.testutils.SkipMainlinePresubmit"
367 },
368 {
Remi NGUYEN VAN7d800632022-05-31 10:53:47 +0900369 "exclude-annotation": "androidx.test.filters.RequiresDevice"
Mike Yucc5dbf92023-06-06 11:26:28 +0000370 },
371 {
372 "exclude-annotation": "com.android.testutils.DnsResolverModuleTest"
Yuyang Huanga6269582024-03-27 20:11:45 +0900373 },
374 {
375 "exclude-annotation": "com.android.testutils.NetworkStackModuleTest"
Remi NGUYEN VAN7d800632022-05-31 10:53:47 +0900376 }
377 ]
378 },
Lorenzo Colitti9e61b822022-05-28 00:20:06 +0900379 {
Lorenzo Colitti98c83d02022-02-18 17:24:48 +0900380 "name": "bpf_existence_test[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]"
381 },
382 {
Tyler Wearb4ab4c32022-03-03 21:44:30 -0800383 "name": "connectivity_native_test[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]"
384 },
385 {
Ken Chen1647f602021-10-05 21:55:22 +0800386 "name": "netd_updatable_unit_test[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]"
387 },
388 {
Junyu Lai08a4a872023-10-19 10:33:03 +0800389 "name": "ConnectivityCoverageTests[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]",
390 "options": [
391 {
392 "exclude-annotation": "com.android.testutils.SkipPresubmit"
393 }
394 ]
Wayne Ma7be6bce2022-01-12 16:29:49 +0800395 },
396 {
Ken Chenf426b2b2022-01-23 15:39:13 +0800397 "name": "libnetworkstats_test[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]"
Chidera Olibied66799a2023-01-24 20:22:56 +0000398 },
399 {
Xiao Ma161b70c2023-06-01 13:36:46 +0900400 "name": "CtsTetheringTestLatestSdk[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]",
401 "options": [
402 {
403 "exclude-annotation": "com.android.testutils.NetworkStackModuleTest"
404 }
405 ]
easoncyleea1b13d62020-06-12 14:14:14 +0800406 }
Remi NGUYEN VAN1bc62872020-11-25 07:35:21 +0000407 ],
Remi NGUYEN VAN1bc62872020-11-25 07:35:21 +0000408 "mainline-postsubmit": [
Remi NGUYEN VANd954bfc2021-05-20 01:25:47 +0000409 // Tests on physical devices with SIM cards: postsubmit only for capacity constraints
Remi NGUYEN VAN1bc62872020-11-25 07:35:21 +0000410 {
411 "name": "CtsNetTestCasesLatestSdk[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]",
412 "keywords": ["sim"]
Mark Chienf8870fa2022-07-22 09:56:52 +0000413 },
414 {
Xiao Ma161b70c2023-06-01 13:36:46 +0900415 "name": "CtsTetheringTestLatestSdk[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]",
416 "keywords": ["sim"],
417 "options": [
418 {
419 "exclude-annotation": "com.android.testutils.NetworkStackModuleTest"
420 }
421 ]
Remi NGUYEN VAN8db52a52023-07-26 16:15:03 +0900422 },
423 // Postsubmit on virtual devices to monitor flakiness of @SkipMainlinePresubmit methods
424 {
425 "name": "CtsNetTestCasesLatestSdk[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]",
426 "options": [
427 {
428 "exclude-annotation": "androidx.test.filters.RequiresDevice"
429 }
430 ]
Remi NGUYEN VANd954bfc2021-05-20 01:25:47 +0000431 }
432 ],
433 "imports": [
434 {
Remi NGUYEN VANf353baf2021-03-19 16:03:06 +0000435 "path": "frameworks/base/core/java/android/net"
436 },
437 {
Filip Zakrzewski8a5823d2022-01-07 20:47:30 +0000438 "path": "frameworks/opt/net/ethernet"
439 },
440 {
Remi NGUYEN VANf353baf2021-03-19 16:03:06 +0000441 "path": "packages/modules/NetworkStack"
442 },
443 {
444 "path": "packages/modules/CaptivePortalLogin"
Lorenzo Colitti35bf22b2022-08-01 10:23:23 +0900445 },
446 {
Mohannad Farragb824e0f2024-05-02 10:47:59 +0000447 "path": "external/cronet"
448 },
449 {
Lorenzo Colitti35bf22b2022-08-01 10:23:23 +0900450 "path": "vendor/xts/gts-tests/hostsidetests/networkstack"
Remi NGUYEN VANf353baf2021-03-19 16:03:06 +0000451 }
Remi NGUYEN VANf33b6ea2020-06-03 16:10:43 +0900452 ]
453}