blob: ab3ed66bfcaaa4bb730580bb5f6737b352827c7b [file] [log] [blame]
Remi NGUYEN VANf33b6ea2020-06-03 16:10:43 +09001{
Remi NGUYEN VANa773ccb2020-06-25 03:58:10 +00002 "presubmit": [
Remi NGUYEN VAN48c68882021-07-16 01:36:12 +00003 {
Xiao Ma432162d2023-09-29 15:28:49 +09004 "name": "ConnectivityCoverageTests",
5 "options": [
6 {
7 "exclude-annotation": "com.android.testutils.NetworkStackModuleTest"
Junyu Lai86298be2023-10-17 17:25:10 +08008 },
9 {
10 "exclude-annotation": "com.android.testutils.SkipPresubmit"
Xiao Ma432162d2023-09-29 15:28:49 +090011 }
12 ]
Remi NGUYEN VAN48c68882021-07-16 01:36:12 +000013 },
Remi NGUYEN VAN40da62d2022-04-01 11:59:45 +090014 {
15 // In addition to ConnectivityCoverageTests, runs non-connectivity-module tests
Junyu Laib8fc7552023-07-26 14:25:49 +080016 "name": "FrameworksNetTests",
17 "options": [
18 {
19 "exclude-annotation": "com.android.testutils.SkipPresubmit"
20 }
21 ]
Remi NGUYEN VAN40da62d2022-04-01 11:59:45 +090022 },
Remi NGUYEN VANad380c12021-03-01 06:48:29 +000023 // Run in addition to mainline-presubmit as mainline-presubmit is not
24 // supported in every branch.
25 // CtsNetTestCasesLatestSdk uses stable API shims, so does not exercise
26 // some latest APIs. Run CtsNetTestCases to get coverage of newer APIs.
Remi NGUYEN VANf33b6ea2020-06-03 16:10:43 +090027 {
Remi NGUYEN VANad380c12021-03-01 06:48:29 +000028 "name": "CtsNetTestCases",
Remi NGUYEN VANf33b6ea2020-06-03 16:10:43 +090029 "options": [
30 {
31 "exclude-annotation": "com.android.testutils.SkipPresubmit"
Remi NGUYEN VAN9a689f82021-10-28 09:41:21 +090032 },
33 {
34 "exclude-annotation": "androidx.test.filters.RequiresDevice"
Remi NGUYEN VANf33b6ea2020-06-03 16:10:43 +090035 }
36 ]
Remi NGUYEN VANd954bfc2021-05-20 01:25:47 +000037 },
Paul Hu206e5f02022-05-16 15:51:46 +080038 // Also run CtsNetTestCasesLatestSdk to ensure tests using older shims pass.
39 {
40 "name": "CtsNetTestCasesLatestSdk",
41 "options": [
42 {
43 "exclude-annotation": "com.android.testutils.SkipPresubmit"
44 },
45 {
46 "exclude-annotation": "androidx.test.filters.RequiresDevice"
47 }
48 ]
49 },
Lorenzo Colitti9e61b822022-05-28 00:20:06 +090050 // CTS tests that target older SDKs.
51 {
Remi NGUYEN VAN348bbb02022-07-19 16:33:04 +090052 "name": "CtsNetTestCasesMaxTargetSdk30",
53 "options": [
54 {
55 "exclude-annotation": "com.android.testutils.SkipPresubmit"
56 },
57 {
58 "exclude-annotation": "androidx.test.filters.RequiresDevice"
59 }
60 ]
61 },
62 {
Lorenzo Colitti9e61b822022-05-28 00:20:06 +090063 "name": "CtsNetTestCasesMaxTargetSdk31",
64 "options": [
65 {
66 "exclude-annotation": "com.android.testutils.SkipPresubmit"
67 },
68 {
69 "exclude-annotation": "androidx.test.filters.RequiresDevice"
70 }
71 ]
72 },
Remi NGUYEN VANd954bfc2021-05-20 01:25:47 +000073 {
Yuyang Huang72bc6002023-02-17 17:29:01 +090074 "name": "CtsNetTestCasesMaxTargetSdk33",
75 "options": [
76 {
77 "exclude-annotation": "com.android.testutils.SkipPresubmit"
78 },
79 {
80 "exclude-annotation": "androidx.test.filters.RequiresDevice"
81 }
82 ]
83 },
84 {
Lorenzo Colitti98c83d02022-02-18 17:24:48 +090085 "name": "bpf_existence_test"
86 },
87 {
Tyler Wearb4ab4c32022-03-03 21:44:30 -080088 "name": "connectivity_native_test"
89 },
90 {
Hungming Chen2e6d1072022-05-30 16:18:37 +080091 "name": "libclat_test"
92 },
93 {
Ken Chen1647f602021-10-05 21:55:22 +080094 "name": "netd_updatable_unit_test"
95 },
96 {
Remi NGUYEN VANd954bfc2021-05-20 01:25:47 +000097 "name": "TetheringTests"
98 },
99 {
100 "name": "TetheringIntegrationTests"
Wayne Ma7be6bce2022-01-12 16:29:49 +0800101 },
102 {
Ken Chenf426b2b2022-01-23 15:39:13 +0800103 "name": "libnetworkstats_test"
Remi NGUYEN VAN3b813232022-02-16 12:15:14 +0900104 },
105 {
106 "name": "FrameworksNetIntegrationTests"
Chidera Olibie71578372023-02-13 14:29:03 +0000107 },
108 // Runs both NetHttpTests and CtsNetHttpTestCases
109 {
Chidera Olibie356b74c2023-04-03 14:40:01 +0000110 "name": "NetHttpCoverageTests",
111 "options": [
112 {
Chidera Olibiecd038a02023-07-25 20:29:51 +0000113 "exclude-annotation": "com.android.testutils.SkipPresubmit"
114 },
115 {
Chidera Olibie356b74c2023-04-03 14:40:01 +0000116 // These sometimes take longer than 1 min which is the presubmit timeout
117 "exclude-annotation": "androidx.test.filters.LargeTest"
118 }
119 ]
Remi NGUYEN VANf33b6ea2020-06-03 16:10:43 +0900120 }
easoncyleea1b13d62020-06-12 14:14:14 +0800121 ],
markchien911cf8f2021-07-19 17:23:54 +0800122 "postsubmit": [
123 {
124 "name": "TetheringPrivilegedTests"
Lorenzo Colitti3b38b122022-01-12 16:06:07 +0900125 },
Lorenzo Colitti3b38b122022-01-12 16:06:07 +0900126 {
Ken Chen1647f602021-10-05 21:55:22 +0800127 "name": "netd_updatable_unit_test",
128 "keywords": ["netd-device-kernel-4.9", "netd-device-kernel-4.14"]
129 },
130 {
Ken Chend4e5c762023-09-13 17:21:36 +0800131 "name": "dns_helper_unit_test"
132 },
133 {
Remi NGUYEN VAN3b813232022-02-16 12:15:14 +0900134 "name": "FrameworksNetDeflakeTest"
Junyu Laib8fc7552023-07-26 14:25:49 +0800135 },
Remi NGUYEN VAN8db52a52023-07-26 16:15:03 +0900136 // Postsubmit on virtual devices to monitor flakiness of @SkipPresubmit methods
137 {
138 "name": "CtsNetTestCases",
139 "options": [
140 {
141 "exclude-annotation": "androidx.test.filters.RequiresDevice"
142 }
143 ]
144 },
Junyu Laib8fc7552023-07-26 14:25:49 +0800145 {
146 "name": "FrameworksNetTests"
Chidera Olibiebe9f3512023-08-09 09:50:36 +0000147 },
148 {
149 "name": "NetHttpCoverageTests"
markchien911cf8f2021-07-19 17:23:54 +0800150 }
151 ],
easoncyleea1b13d62020-06-12 14:14:14 +0800152 "mainline-presubmit": [
153 {
easoncylee48c4cf62020-10-23 13:10:01 +0800154 "name": "CtsNetTestCasesLatestSdk[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]",
easoncyleea1b13d62020-06-12 14:14:14 +0800155 "options": [
156 {
157 "exclude-annotation": "com.android.testutils.SkipPresubmit"
Remi NGUYEN VAN9a689f82021-10-28 09:41:21 +0900158 },
159 {
Remi NGUYEN VAN8db52a52023-07-26 16:15:03 +0900160 "exclude-annotation": "com.android.testutils.SkipMainlinePresubmit"
161 },
162 {
Remi NGUYEN VAN9a689f82021-10-28 09:41:21 +0900163 "exclude-annotation": "androidx.test.filters.RequiresDevice"
easoncyleea1b13d62020-06-12 14:14:14 +0800164 }
165 ]
Remi NGUYEN VAN5a1f2f72021-07-01 13:55:49 +0000166 },
167 {
Remi NGUYEN VAN348bbb02022-07-19 16:33:04 +0900168 "name": "CtsNetTestCasesMaxTargetSdk30[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]",
169 "options": [
170 {
171 "exclude-annotation": "com.android.testutils.SkipPresubmit"
172 },
173 {
Remi NGUYEN VAN8db52a52023-07-26 16:15:03 +0900174 "exclude-annotation": "com.android.testutils.SkipMainlinePresubmit"
175 },
176 {
Remi NGUYEN VAN348bbb02022-07-19 16:33:04 +0900177 "exclude-annotation": "androidx.test.filters.RequiresDevice"
178 }
179 ]
180 },
181 {
Lorenzo Colitti9e61b822022-05-28 00:20:06 +0900182 "name": "CtsNetTestCasesMaxTargetSdk31[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]",
183 "options": [
184 {
185 "exclude-annotation": "com.android.testutils.SkipPresubmit"
186 },
187 {
Remi NGUYEN VAN8db52a52023-07-26 16:15:03 +0900188 "exclude-annotation": "com.android.testutils.SkipMainlinePresubmit"
189 },
190 {
Lorenzo Colitti9e61b822022-05-28 00:20:06 +0900191 "exclude-annotation": "androidx.test.filters.RequiresDevice"
192 }
193 ]
194 },
Yuyang Huang72bc6002023-02-17 17:29:01 +0900195 {
196 "name": "CtsNetTestCasesMaxTargetSdk33[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]",
197 "options": [
198 {
199 "exclude-annotation": "com.android.testutils.SkipPresubmit"
200 },
201 {
Remi NGUYEN VAN8db52a52023-07-26 16:15:03 +0900202 "exclude-annotation": "com.android.testutils.SkipMainlinePresubmit"
203 },
204 {
Yuyang Huang72bc6002023-02-17 17:29:01 +0900205 "exclude-annotation": "androidx.test.filters.RequiresDevice"
206 }
207 ]
208 },
Remi NGUYEN VAN7d800632022-05-31 10:53:47 +0900209 // Test with APK modules only, in cases where APEX is not supported, or the other modules
210 // were simply not updated
211 {
212 "name": "CtsNetTestCasesLatestSdk[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk]",
213 "options": [
214 {
215 "exclude-annotation": "com.android.testutils.SkipPresubmit"
216 },
217 {
Remi NGUYEN VAN8db52a52023-07-26 16:15:03 +0900218 "exclude-annotation": "com.android.testutils.SkipMainlinePresubmit"
219 },
220 {
Remi NGUYEN VAN7d800632022-05-31 10:53:47 +0900221 "exclude-annotation": "androidx.test.filters.RequiresDevice"
222 },
223 {
224 "exclude-annotation": "com.android.testutils.ConnectivityModuleTest"
Mike Yucc5dbf92023-06-06 11:26:28 +0000225 },
226 {
227 "exclude-annotation": "com.android.testutils.DnsResolverModuleTest"
Remi NGUYEN VAN7d800632022-05-31 10:53:47 +0900228 }
229 ]
230 },
231 // Test with connectivity/tethering module only, to catch integration issues with older versions
232 // of other modules. "new tethering + old NetworkStack" is not a configuration that should
233 // really exist in the field, but there is no strong guarantee, and it is required by MTS
234 // testing for module qualification, where modules are tested independently.
235 {
236 "name": "CtsNetTestCasesLatestSdk[com.google.android.tethering.apex]",
237 "options": [
238 {
239 "exclude-annotation": "com.android.testutils.SkipPresubmit"
240 },
241 {
Remi NGUYEN VAN8db52a52023-07-26 16:15:03 +0900242 "exclude-annotation": "com.android.testutils.SkipMainlinePresubmit"
243 },
244 {
Remi NGUYEN VAN7d800632022-05-31 10:53:47 +0900245 "exclude-annotation": "androidx.test.filters.RequiresDevice"
Mike Yucc5dbf92023-06-06 11:26:28 +0000246 },
247 {
248 "exclude-annotation": "com.android.testutils.DnsResolverModuleTest"
Remi NGUYEN VAN7d800632022-05-31 10:53:47 +0900249 }
250 ]
251 },
Lorenzo Colitti9e61b822022-05-28 00:20:06 +0900252 {
Lorenzo Colitti98c83d02022-02-18 17:24:48 +0900253 "name": "bpf_existence_test[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]"
254 },
255 {
Tyler Wearb4ab4c32022-03-03 21:44:30 -0800256 "name": "connectivity_native_test[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]"
257 },
258 {
Ken Chen1647f602021-10-05 21:55:22 +0800259 "name": "netd_updatable_unit_test[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]"
260 },
261 {
Junyu Lai08a4a872023-10-19 10:33:03 +0800262 "name": "ConnectivityCoverageTests[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]",
263 "options": [
264 {
265 "exclude-annotation": "com.android.testutils.SkipPresubmit"
266 }
267 ]
Wayne Ma7be6bce2022-01-12 16:29:49 +0800268 },
269 {
Ken Chenf426b2b2022-01-23 15:39:13 +0800270 "name": "libnetworkstats_test[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]"
Chidera Olibied66799a2023-01-24 20:22:56 +0000271 },
272 {
Chidera Olibie356b74c2023-04-03 14:40:01 +0000273 "name": "NetHttpCoverageTests[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]",
274 "options": [
275 {
Chidera Olibiecd038a02023-07-25 20:29:51 +0000276 "exclude-annotation": "com.android.testutils.SkipPresubmit"
277 },
278 {
Chidera Olibie356b74c2023-04-03 14:40:01 +0000279 // These sometimes take longer than 1 min which is the presubmit timeout
280 "exclude-annotation": "androidx.test.filters.LargeTest"
281 }
282 ]
Mark Chienf8870fa2022-07-22 09:56:52 +0000283 },
284 {
Xiao Ma161b70c2023-06-01 13:36:46 +0900285 "name": "CtsTetheringTestLatestSdk[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]",
286 "options": [
287 {
288 "exclude-annotation": "com.android.testutils.NetworkStackModuleTest"
289 }
290 ]
easoncyleea1b13d62020-06-12 14:14:14 +0800291 }
Remi NGUYEN VAN1bc62872020-11-25 07:35:21 +0000292 ],
Remi NGUYEN VAN1bc62872020-11-25 07:35:21 +0000293 "mainline-postsubmit": [
Remi NGUYEN VANd954bfc2021-05-20 01:25:47 +0000294 // Tests on physical devices with SIM cards: postsubmit only for capacity constraints
Remi NGUYEN VAN1bc62872020-11-25 07:35:21 +0000295 {
296 "name": "CtsNetTestCasesLatestSdk[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]",
297 "keywords": ["sim"]
Mark Chienf8870fa2022-07-22 09:56:52 +0000298 },
299 {
Xiao Ma161b70c2023-06-01 13:36:46 +0900300 "name": "CtsTetheringTestLatestSdk[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]",
301 "keywords": ["sim"],
302 "options": [
303 {
304 "exclude-annotation": "com.android.testutils.NetworkStackModuleTest"
305 }
306 ]
Remi NGUYEN VAN8db52a52023-07-26 16:15:03 +0900307 },
308 // Postsubmit on virtual devices to monitor flakiness of @SkipMainlinePresubmit methods
309 {
310 "name": "CtsNetTestCasesLatestSdk[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]",
311 "options": [
312 {
313 "exclude-annotation": "androidx.test.filters.RequiresDevice"
314 }
315 ]
Remi NGUYEN VANd954bfc2021-05-20 01:25:47 +0000316 }
317 ],
318 "imports": [
319 {
Remi NGUYEN VANf353baf2021-03-19 16:03:06 +0000320 "path": "frameworks/base/core/java/android/net"
321 },
322 {
Filip Zakrzewski8a5823d2022-01-07 20:47:30 +0000323 "path": "frameworks/opt/net/ethernet"
324 },
325 {
Remi NGUYEN VANf353baf2021-03-19 16:03:06 +0000326 "path": "packages/modules/NetworkStack"
327 },
328 {
329 "path": "packages/modules/CaptivePortalLogin"
Lorenzo Colitti35bf22b2022-08-01 10:23:23 +0900330 },
331 {
332 "path": "vendor/xts/gts-tests/hostsidetests/networkstack"
Remi NGUYEN VANf353baf2021-03-19 16:03:06 +0000333 }
Remi NGUYEN VANf33b6ea2020-06-03 16:10:43 +0900334 ]
335}