blob: 46308afa341a8f4c62040dbf53a3648693f32fa3 [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 {
103 "name": "traffic_controller_unit_test"
Ken Chenf426b2b2022-01-23 15:39:13 +0800104 },
105 {
106 "name": "libnetworkstats_test"
Remi NGUYEN VAN3b813232022-02-16 12:15:14 +0900107 },
108 {
109 "name": "FrameworksNetIntegrationTests"
Chidera Olibie71578372023-02-13 14:29:03 +0000110 },
111 // Runs both NetHttpTests and CtsNetHttpTestCases
112 {
Chidera Olibie356b74c2023-04-03 14:40:01 +0000113 "name": "NetHttpCoverageTests",
114 "options": [
115 {
Chidera Olibiecd038a02023-07-25 20:29:51 +0000116 "exclude-annotation": "com.android.testutils.SkipPresubmit"
117 },
118 {
Chidera Olibie356b74c2023-04-03 14:40:01 +0000119 // These sometimes take longer than 1 min which is the presubmit timeout
120 "exclude-annotation": "androidx.test.filters.LargeTest"
121 }
122 ]
Remi NGUYEN VANf33b6ea2020-06-03 16:10:43 +0900123 }
easoncyleea1b13d62020-06-12 14:14:14 +0800124 ],
markchien911cf8f2021-07-19 17:23:54 +0800125 "postsubmit": [
126 {
127 "name": "TetheringPrivilegedTests"
Lorenzo Colitti3b38b122022-01-12 16:06:07 +0900128 },
Lorenzo Colitti3b38b122022-01-12 16:06:07 +0900129 {
Ken Chen1647f602021-10-05 21:55:22 +0800130 "name": "netd_updatable_unit_test",
131 "keywords": ["netd-device-kernel-4.9", "netd-device-kernel-4.14"]
132 },
133 {
Wayne Ma320b95d2022-01-23 23:43:11 +0800134 "name": "traffic_controller_unit_test",
Wayne Ma7be6bce2022-01-12 16:29:49 +0800135 "keywords": ["netd-device-kernel-4.9", "netd-device-kernel-4.14"]
Ken Chenf426b2b2022-01-23 15:39:13 +0800136 },
137 {
Remi NGUYEN VAN3b813232022-02-16 12:15:14 +0900138 "name": "FrameworksNetDeflakeTest"
Junyu Laib8fc7552023-07-26 14:25:49 +0800139 },
Remi NGUYEN VAN8db52a52023-07-26 16:15:03 +0900140 // Postsubmit on virtual devices to monitor flakiness of @SkipPresubmit methods
141 {
142 "name": "CtsNetTestCases",
143 "options": [
144 {
145 "exclude-annotation": "androidx.test.filters.RequiresDevice"
146 }
147 ]
148 },
Junyu Laib8fc7552023-07-26 14:25:49 +0800149 {
150 "name": "FrameworksNetTests"
Chidera Olibiebe9f3512023-08-09 09:50:36 +0000151 },
152 {
153 "name": "NetHttpCoverageTests"
markchien911cf8f2021-07-19 17:23:54 +0800154 }
155 ],
easoncyleea1b13d62020-06-12 14:14:14 +0800156 "mainline-presubmit": [
157 {
easoncylee48c4cf62020-10-23 13:10:01 +0800158 "name": "CtsNetTestCasesLatestSdk[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]",
easoncyleea1b13d62020-06-12 14:14:14 +0800159 "options": [
160 {
161 "exclude-annotation": "com.android.testutils.SkipPresubmit"
Remi NGUYEN VAN9a689f82021-10-28 09:41:21 +0900162 },
163 {
Remi NGUYEN VAN8db52a52023-07-26 16:15:03 +0900164 "exclude-annotation": "com.android.testutils.SkipMainlinePresubmit"
165 },
166 {
Remi NGUYEN VAN9a689f82021-10-28 09:41:21 +0900167 "exclude-annotation": "androidx.test.filters.RequiresDevice"
easoncyleea1b13d62020-06-12 14:14:14 +0800168 }
169 ]
Remi NGUYEN VAN5a1f2f72021-07-01 13:55:49 +0000170 },
171 {
Remi NGUYEN VAN348bbb02022-07-19 16:33:04 +0900172 "name": "CtsNetTestCasesMaxTargetSdk30[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]",
173 "options": [
174 {
175 "exclude-annotation": "com.android.testutils.SkipPresubmit"
176 },
177 {
Remi NGUYEN VAN8db52a52023-07-26 16:15:03 +0900178 "exclude-annotation": "com.android.testutils.SkipMainlinePresubmit"
179 },
180 {
Remi NGUYEN VAN348bbb02022-07-19 16:33:04 +0900181 "exclude-annotation": "androidx.test.filters.RequiresDevice"
182 }
183 ]
184 },
185 {
Lorenzo Colitti9e61b822022-05-28 00:20:06 +0900186 "name": "CtsNetTestCasesMaxTargetSdk31[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]",
187 "options": [
188 {
189 "exclude-annotation": "com.android.testutils.SkipPresubmit"
190 },
191 {
Remi NGUYEN VAN8db52a52023-07-26 16:15:03 +0900192 "exclude-annotation": "com.android.testutils.SkipMainlinePresubmit"
193 },
194 {
Lorenzo Colitti9e61b822022-05-28 00:20:06 +0900195 "exclude-annotation": "androidx.test.filters.RequiresDevice"
196 }
197 ]
198 },
Yuyang Huang72bc6002023-02-17 17:29:01 +0900199 {
200 "name": "CtsNetTestCasesMaxTargetSdk33[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]",
201 "options": [
202 {
203 "exclude-annotation": "com.android.testutils.SkipPresubmit"
204 },
205 {
Remi NGUYEN VAN8db52a52023-07-26 16:15:03 +0900206 "exclude-annotation": "com.android.testutils.SkipMainlinePresubmit"
207 },
208 {
Yuyang Huang72bc6002023-02-17 17:29:01 +0900209 "exclude-annotation": "androidx.test.filters.RequiresDevice"
210 }
211 ]
212 },
Remi NGUYEN VAN7d800632022-05-31 10:53:47 +0900213 // Test with APK modules only, in cases where APEX is not supported, or the other modules
214 // were simply not updated
215 {
216 "name": "CtsNetTestCasesLatestSdk[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk]",
217 "options": [
218 {
219 "exclude-annotation": "com.android.testutils.SkipPresubmit"
220 },
221 {
Remi NGUYEN VAN8db52a52023-07-26 16:15:03 +0900222 "exclude-annotation": "com.android.testutils.SkipMainlinePresubmit"
223 },
224 {
Remi NGUYEN VAN7d800632022-05-31 10:53:47 +0900225 "exclude-annotation": "androidx.test.filters.RequiresDevice"
226 },
227 {
228 "exclude-annotation": "com.android.testutils.ConnectivityModuleTest"
Mike Yucc5dbf92023-06-06 11:26:28 +0000229 },
230 {
231 "exclude-annotation": "com.android.testutils.DnsResolverModuleTest"
Remi NGUYEN VAN7d800632022-05-31 10:53:47 +0900232 }
233 ]
234 },
235 // Test with connectivity/tethering module only, to catch integration issues with older versions
236 // of other modules. "new tethering + old NetworkStack" is not a configuration that should
237 // really exist in the field, but there is no strong guarantee, and it is required by MTS
238 // testing for module qualification, where modules are tested independently.
239 {
240 "name": "CtsNetTestCasesLatestSdk[com.google.android.tethering.apex]",
241 "options": [
242 {
243 "exclude-annotation": "com.android.testutils.SkipPresubmit"
244 },
245 {
Remi NGUYEN VAN8db52a52023-07-26 16:15:03 +0900246 "exclude-annotation": "com.android.testutils.SkipMainlinePresubmit"
247 },
248 {
Remi NGUYEN VAN7d800632022-05-31 10:53:47 +0900249 "exclude-annotation": "androidx.test.filters.RequiresDevice"
Mike Yucc5dbf92023-06-06 11:26:28 +0000250 },
251 {
252 "exclude-annotation": "com.android.testutils.DnsResolverModuleTest"
Remi NGUYEN VAN7d800632022-05-31 10:53:47 +0900253 }
254 ]
255 },
Lorenzo Colitti9e61b822022-05-28 00:20:06 +0900256 {
Lorenzo Colitti98c83d02022-02-18 17:24:48 +0900257 "name": "bpf_existence_test[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]"
258 },
259 {
Tyler Wearb4ab4c32022-03-03 21:44:30 -0800260 "name": "connectivity_native_test[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]"
261 },
262 {
Ken Chen1647f602021-10-05 21:55:22 +0800263 "name": "netd_updatable_unit_test[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]"
264 },
265 {
Junyu Lai08a4a872023-10-19 10:33:03 +0800266 "name": "ConnectivityCoverageTests[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]",
267 "options": [
268 {
269 "exclude-annotation": "com.android.testutils.SkipPresubmit"
270 }
271 ]
Wayne Ma7be6bce2022-01-12 16:29:49 +0800272 },
273 {
274 "name": "traffic_controller_unit_test[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]"
Ken Chenf426b2b2022-01-23 15:39:13 +0800275 },
276 {
277 "name": "libnetworkstats_test[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]"
Chidera Olibied66799a2023-01-24 20:22:56 +0000278 },
279 {
Chidera Olibie356b74c2023-04-03 14:40:01 +0000280 "name": "NetHttpCoverageTests[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]",
281 "options": [
282 {
Chidera Olibiecd038a02023-07-25 20:29:51 +0000283 "exclude-annotation": "com.android.testutils.SkipPresubmit"
284 },
285 {
Chidera Olibie356b74c2023-04-03 14:40:01 +0000286 // These sometimes take longer than 1 min which is the presubmit timeout
287 "exclude-annotation": "androidx.test.filters.LargeTest"
288 }
289 ]
Mark Chienf8870fa2022-07-22 09:56:52 +0000290 },
291 {
Xiao Ma161b70c2023-06-01 13:36:46 +0900292 "name": "CtsTetheringTestLatestSdk[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]",
293 "options": [
294 {
295 "exclude-annotation": "com.android.testutils.NetworkStackModuleTest"
296 }
297 ]
easoncyleea1b13d62020-06-12 14:14:14 +0800298 }
Remi NGUYEN VAN1bc62872020-11-25 07:35:21 +0000299 ],
Remi NGUYEN VAN1bc62872020-11-25 07:35:21 +0000300 "mainline-postsubmit": [
Remi NGUYEN VANd954bfc2021-05-20 01:25:47 +0000301 // Tests on physical devices with SIM cards: postsubmit only for capacity constraints
Remi NGUYEN VAN1bc62872020-11-25 07:35:21 +0000302 {
303 "name": "CtsNetTestCasesLatestSdk[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]",
304 "keywords": ["sim"]
Mark Chienf8870fa2022-07-22 09:56:52 +0000305 },
306 {
Xiao Ma161b70c2023-06-01 13:36:46 +0900307 "name": "CtsTetheringTestLatestSdk[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]",
308 "keywords": ["sim"],
309 "options": [
310 {
311 "exclude-annotation": "com.android.testutils.NetworkStackModuleTest"
312 }
313 ]
Remi NGUYEN VAN8db52a52023-07-26 16:15:03 +0900314 },
315 // Postsubmit on virtual devices to monitor flakiness of @SkipMainlinePresubmit methods
316 {
317 "name": "CtsNetTestCasesLatestSdk[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]",
318 "options": [
319 {
320 "exclude-annotation": "androidx.test.filters.RequiresDevice"
321 }
322 ]
Remi NGUYEN VANd954bfc2021-05-20 01:25:47 +0000323 }
324 ],
325 "imports": [
326 {
Remi NGUYEN VANf353baf2021-03-19 16:03:06 +0000327 "path": "frameworks/base/core/java/android/net"
328 },
329 {
Filip Zakrzewski8a5823d2022-01-07 20:47:30 +0000330 "path": "frameworks/opt/net/ethernet"
331 },
332 {
Remi NGUYEN VANf353baf2021-03-19 16:03:06 +0000333 "path": "packages/modules/NetworkStack"
334 },
335 {
336 "path": "packages/modules/CaptivePortalLogin"
Lorenzo Colitti35bf22b2022-08-01 10:23:23 +0900337 },
338 {
339 "path": "vendor/xts/gts-tests/hostsidetests/networkstack"
Remi NGUYEN VANf353baf2021-03-19 16:03:06 +0000340 }
Remi NGUYEN VANf33b6ea2020-06-03 16:10:43 +0900341 ]
342}