blob: 76e4af8f8f4ef231be26c73e4765aecd1dace674 [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 {
4 "name": "ConnectivityCoverageTests"
5 },
Remi NGUYEN VAN40da62d2022-04-01 11:59:45 +09006 {
7 // In addition to ConnectivityCoverageTests, runs non-connectivity-module tests
Junyu Laib8fc7552023-07-26 14:25:49 +08008 "name": "FrameworksNetTests",
9 "options": [
10 {
11 "exclude-annotation": "com.android.testutils.SkipPresubmit"
12 }
13 ]
Remi NGUYEN VAN40da62d2022-04-01 11:59:45 +090014 },
Remi NGUYEN VANad380c12021-03-01 06:48:29 +000015 // Run in addition to mainline-presubmit as mainline-presubmit is not
16 // supported in every branch.
17 // CtsNetTestCasesLatestSdk uses stable API shims, so does not exercise
18 // some latest APIs. Run CtsNetTestCases to get coverage of newer APIs.
Remi NGUYEN VANf33b6ea2020-06-03 16:10:43 +090019 {
Remi NGUYEN VANad380c12021-03-01 06:48:29 +000020 "name": "CtsNetTestCases",
Remi NGUYEN VANf33b6ea2020-06-03 16:10:43 +090021 "options": [
22 {
23 "exclude-annotation": "com.android.testutils.SkipPresubmit"
Remi NGUYEN VAN9a689f82021-10-28 09:41:21 +090024 },
25 {
26 "exclude-annotation": "androidx.test.filters.RequiresDevice"
Remi NGUYEN VANf33b6ea2020-06-03 16:10:43 +090027 }
28 ]
Remi NGUYEN VANd954bfc2021-05-20 01:25:47 +000029 },
Paul Hu206e5f02022-05-16 15:51:46 +080030 // Also run CtsNetTestCasesLatestSdk to ensure tests using older shims pass.
31 {
32 "name": "CtsNetTestCasesLatestSdk",
33 "options": [
34 {
35 "exclude-annotation": "com.android.testutils.SkipPresubmit"
36 },
37 {
38 "exclude-annotation": "androidx.test.filters.RequiresDevice"
39 }
40 ]
41 },
Lorenzo Colitti9e61b822022-05-28 00:20:06 +090042 // CTS tests that target older SDKs.
43 {
Remi NGUYEN VAN348bbb02022-07-19 16:33:04 +090044 "name": "CtsNetTestCasesMaxTargetSdk30",
45 "options": [
46 {
47 "exclude-annotation": "com.android.testutils.SkipPresubmit"
48 },
49 {
50 "exclude-annotation": "androidx.test.filters.RequiresDevice"
51 }
52 ]
53 },
54 {
Lorenzo Colitti9e61b822022-05-28 00:20:06 +090055 "name": "CtsNetTestCasesMaxTargetSdk31",
56 "options": [
57 {
58 "exclude-annotation": "com.android.testutils.SkipPresubmit"
59 },
60 {
61 "exclude-annotation": "androidx.test.filters.RequiresDevice"
62 }
63 ]
64 },
Remi NGUYEN VANd954bfc2021-05-20 01:25:47 +000065 {
Yuyang Huang72bc6002023-02-17 17:29:01 +090066 "name": "CtsNetTestCasesMaxTargetSdk33",
67 "options": [
68 {
69 "exclude-annotation": "com.android.testutils.SkipPresubmit"
70 },
71 {
72 "exclude-annotation": "androidx.test.filters.RequiresDevice"
73 }
74 ]
75 },
76 {
Lorenzo Colitti98c83d02022-02-18 17:24:48 +090077 "name": "bpf_existence_test"
78 },
79 {
Tyler Wearb4ab4c32022-03-03 21:44:30 -080080 "name": "connectivity_native_test"
81 },
82 {
Hungming Chen2e6d1072022-05-30 16:18:37 +080083 "name": "libclat_test"
84 },
85 {
Ken Chen1647f602021-10-05 21:55:22 +080086 "name": "netd_updatable_unit_test"
87 },
88 {
Remi NGUYEN VANd954bfc2021-05-20 01:25:47 +000089 "name": "TetheringTests"
90 },
91 {
92 "name": "TetheringIntegrationTests"
Wayne Ma7be6bce2022-01-12 16:29:49 +080093 },
94 {
95 "name": "traffic_controller_unit_test"
Ken Chenf426b2b2022-01-23 15:39:13 +080096 },
97 {
98 "name": "libnetworkstats_test"
Remi NGUYEN VAN3b813232022-02-16 12:15:14 +090099 },
100 {
101 "name": "FrameworksNetIntegrationTests"
Chidera Olibie71578372023-02-13 14:29:03 +0000102 },
103 // Runs both NetHttpTests and CtsNetHttpTestCases
104 {
Chidera Olibie356b74c2023-04-03 14:40:01 +0000105 "name": "NetHttpCoverageTests",
106 "options": [
107 {
Chidera Olibiecd038a02023-07-25 20:29:51 +0000108 "exclude-annotation": "com.android.testutils.SkipPresubmit"
109 },
110 {
Chidera Olibie356b74c2023-04-03 14:40:01 +0000111 // These sometimes take longer than 1 min which is the presubmit timeout
112 "exclude-annotation": "androidx.test.filters.LargeTest"
113 }
114 ]
Remi NGUYEN VANf33b6ea2020-06-03 16:10:43 +0900115 }
easoncyleea1b13d62020-06-12 14:14:14 +0800116 ],
markchien911cf8f2021-07-19 17:23:54 +0800117 "postsubmit": [
118 {
119 "name": "TetheringPrivilegedTests"
Lorenzo Colitti3b38b122022-01-12 16:06:07 +0900120 },
Lorenzo Colitti3b38b122022-01-12 16:06:07 +0900121 {
Ken Chen1647f602021-10-05 21:55:22 +0800122 "name": "netd_updatable_unit_test",
123 "keywords": ["netd-device-kernel-4.9", "netd-device-kernel-4.14"]
124 },
125 {
Wayne Ma320b95d2022-01-23 23:43:11 +0800126 "name": "traffic_controller_unit_test",
Wayne Ma7be6bce2022-01-12 16:29:49 +0800127 "keywords": ["netd-device-kernel-4.9", "netd-device-kernel-4.14"]
Ken Chenf426b2b2022-01-23 15:39:13 +0800128 },
129 {
Remi NGUYEN VAN3b813232022-02-16 12:15:14 +0900130 "name": "FrameworksNetDeflakeTest"
Junyu Laib8fc7552023-07-26 14:25:49 +0800131 },
Remi NGUYEN VAN8db52a52023-07-26 16:15:03 +0900132 // Postsubmit on virtual devices to monitor flakiness of @SkipPresubmit methods
133 {
134 "name": "CtsNetTestCases",
135 "options": [
136 {
137 "exclude-annotation": "androidx.test.filters.RequiresDevice"
138 }
139 ]
140 },
Junyu Laib8fc7552023-07-26 14:25:49 +0800141 {
142 "name": "FrameworksNetTests"
markchien911cf8f2021-07-19 17:23:54 +0800143 }
144 ],
easoncyleea1b13d62020-06-12 14:14:14 +0800145 "mainline-presubmit": [
146 {
easoncylee48c4cf62020-10-23 13:10:01 +0800147 "name": "CtsNetTestCasesLatestSdk[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]",
easoncyleea1b13d62020-06-12 14:14:14 +0800148 "options": [
149 {
150 "exclude-annotation": "com.android.testutils.SkipPresubmit"
Remi NGUYEN VAN9a689f82021-10-28 09:41:21 +0900151 },
152 {
Remi NGUYEN VAN8db52a52023-07-26 16:15:03 +0900153 "exclude-annotation": "com.android.testutils.SkipMainlinePresubmit"
154 },
155 {
Remi NGUYEN VAN9a689f82021-10-28 09:41:21 +0900156 "exclude-annotation": "androidx.test.filters.RequiresDevice"
easoncyleea1b13d62020-06-12 14:14:14 +0800157 }
158 ]
Remi NGUYEN VAN5a1f2f72021-07-01 13:55:49 +0000159 },
160 {
Remi NGUYEN VAN348bbb02022-07-19 16:33:04 +0900161 "name": "CtsNetTestCasesMaxTargetSdk30[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]",
162 "options": [
163 {
164 "exclude-annotation": "com.android.testutils.SkipPresubmit"
165 },
166 {
Remi NGUYEN VAN8db52a52023-07-26 16:15:03 +0900167 "exclude-annotation": "com.android.testutils.SkipMainlinePresubmit"
168 },
169 {
Remi NGUYEN VAN348bbb02022-07-19 16:33:04 +0900170 "exclude-annotation": "androidx.test.filters.RequiresDevice"
171 }
172 ]
173 },
174 {
Lorenzo Colitti9e61b822022-05-28 00:20:06 +0900175 "name": "CtsNetTestCasesMaxTargetSdk31[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]",
176 "options": [
177 {
178 "exclude-annotation": "com.android.testutils.SkipPresubmit"
179 },
180 {
Remi NGUYEN VAN8db52a52023-07-26 16:15:03 +0900181 "exclude-annotation": "com.android.testutils.SkipMainlinePresubmit"
182 },
183 {
Lorenzo Colitti9e61b822022-05-28 00:20:06 +0900184 "exclude-annotation": "androidx.test.filters.RequiresDevice"
185 }
186 ]
187 },
Yuyang Huang72bc6002023-02-17 17:29:01 +0900188 {
189 "name": "CtsNetTestCasesMaxTargetSdk33[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]",
190 "options": [
191 {
192 "exclude-annotation": "com.android.testutils.SkipPresubmit"
193 },
194 {
Remi NGUYEN VAN8db52a52023-07-26 16:15:03 +0900195 "exclude-annotation": "com.android.testutils.SkipMainlinePresubmit"
196 },
197 {
Yuyang Huang72bc6002023-02-17 17:29:01 +0900198 "exclude-annotation": "androidx.test.filters.RequiresDevice"
199 }
200 ]
201 },
Remi NGUYEN VAN7d800632022-05-31 10:53:47 +0900202 // Test with APK modules only, in cases where APEX is not supported, or the other modules
203 // were simply not updated
204 {
205 "name": "CtsNetTestCasesLatestSdk[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk]",
206 "options": [
207 {
208 "exclude-annotation": "com.android.testutils.SkipPresubmit"
209 },
210 {
Remi NGUYEN VAN8db52a52023-07-26 16:15:03 +0900211 "exclude-annotation": "com.android.testutils.SkipMainlinePresubmit"
212 },
213 {
Remi NGUYEN VAN7d800632022-05-31 10:53:47 +0900214 "exclude-annotation": "androidx.test.filters.RequiresDevice"
215 },
216 {
217 "exclude-annotation": "com.android.testutils.ConnectivityModuleTest"
Mike Yucc5dbf92023-06-06 11:26:28 +0000218 },
219 {
220 "exclude-annotation": "com.android.testutils.DnsResolverModuleTest"
Remi NGUYEN VAN7d800632022-05-31 10:53:47 +0900221 }
222 ]
223 },
224 // Test with connectivity/tethering module only, to catch integration issues with older versions
225 // of other modules. "new tethering + old NetworkStack" is not a configuration that should
226 // really exist in the field, but there is no strong guarantee, and it is required by MTS
227 // testing for module qualification, where modules are tested independently.
228 {
229 "name": "CtsNetTestCasesLatestSdk[com.google.android.tethering.apex]",
230 "options": [
231 {
232 "exclude-annotation": "com.android.testutils.SkipPresubmit"
233 },
234 {
Remi NGUYEN VAN8db52a52023-07-26 16:15:03 +0900235 "exclude-annotation": "com.android.testutils.SkipMainlinePresubmit"
236 },
237 {
Remi NGUYEN VAN7d800632022-05-31 10:53:47 +0900238 "exclude-annotation": "androidx.test.filters.RequiresDevice"
Mike Yucc5dbf92023-06-06 11:26:28 +0000239 },
240 {
241 "exclude-annotation": "com.android.testutils.DnsResolverModuleTest"
Remi NGUYEN VAN7d800632022-05-31 10:53:47 +0900242 }
243 ]
244 },
Lorenzo Colitti9e61b822022-05-28 00:20:06 +0900245 {
Lorenzo Colitti98c83d02022-02-18 17:24:48 +0900246 "name": "bpf_existence_test[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]"
247 },
248 {
Tyler Wearb4ab4c32022-03-03 21:44:30 -0800249 "name": "connectivity_native_test[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]"
250 },
251 {
Ken Chen1647f602021-10-05 21:55:22 +0800252 "name": "netd_updatable_unit_test[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]"
253 },
254 {
Remi NGUYEN VAN5a1f2f72021-07-01 13:55:49 +0000255 "name": "ConnectivityCoverageTests[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]"
Wayne Ma7be6bce2022-01-12 16:29:49 +0800256 },
257 {
258 "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 +0800259 },
260 {
261 "name": "libnetworkstats_test[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]"
Chidera Olibied66799a2023-01-24 20:22:56 +0000262 },
263 {
Chidera Olibie356b74c2023-04-03 14:40:01 +0000264 "name": "NetHttpCoverageTests[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]",
265 "options": [
266 {
Chidera Olibiecd038a02023-07-25 20:29:51 +0000267 "exclude-annotation": "com.android.testutils.SkipPresubmit"
268 },
269 {
Chidera Olibie356b74c2023-04-03 14:40:01 +0000270 // These sometimes take longer than 1 min which is the presubmit timeout
271 "exclude-annotation": "androidx.test.filters.LargeTest"
272 }
273 ]
Mark Chienf8870fa2022-07-22 09:56:52 +0000274 },
275 {
Xiao Ma161b70c2023-06-01 13:36:46 +0900276 "name": "CtsTetheringTestLatestSdk[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]",
277 "options": [
278 {
279 "exclude-annotation": "com.android.testutils.NetworkStackModuleTest"
280 }
281 ]
easoncyleea1b13d62020-06-12 14:14:14 +0800282 }
Remi NGUYEN VAN1bc62872020-11-25 07:35:21 +0000283 ],
Remi NGUYEN VAN1bc62872020-11-25 07:35:21 +0000284 "mainline-postsubmit": [
Remi NGUYEN VANd954bfc2021-05-20 01:25:47 +0000285 // Tests on physical devices with SIM cards: postsubmit only for capacity constraints
Remi NGUYEN VAN1bc62872020-11-25 07:35:21 +0000286 {
287 "name": "CtsNetTestCasesLatestSdk[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]",
288 "keywords": ["sim"]
Mark Chienf8870fa2022-07-22 09:56:52 +0000289 },
290 {
Xiao Ma161b70c2023-06-01 13:36:46 +0900291 "name": "CtsTetheringTestLatestSdk[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]",
292 "keywords": ["sim"],
293 "options": [
294 {
295 "exclude-annotation": "com.android.testutils.NetworkStackModuleTest"
296 }
297 ]
Remi NGUYEN VAN8db52a52023-07-26 16:15:03 +0900298 },
299 // Postsubmit on virtual devices to monitor flakiness of @SkipMainlinePresubmit methods
300 {
301 "name": "CtsNetTestCasesLatestSdk[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]",
302 "options": [
303 {
304 "exclude-annotation": "androidx.test.filters.RequiresDevice"
305 }
306 ]
Remi NGUYEN VANd954bfc2021-05-20 01:25:47 +0000307 }
308 ],
309 "imports": [
310 {
Remi NGUYEN VANf353baf2021-03-19 16:03:06 +0000311 "path": "frameworks/base/core/java/android/net"
312 },
313 {
Filip Zakrzewski8a5823d2022-01-07 20:47:30 +0000314 "path": "frameworks/opt/net/ethernet"
315 },
316 {
Remi NGUYEN VANf353baf2021-03-19 16:03:06 +0000317 "path": "packages/modules/NetworkStack"
318 },
319 {
320 "path": "packages/modules/CaptivePortalLogin"
Lorenzo Colitti35bf22b2022-08-01 10:23:23 +0900321 },
322 {
323 "path": "vendor/xts/gts-tests/hostsidetests/networkstack"
Remi NGUYEN VANf353baf2021-03-19 16:03:06 +0000324 }
Remi NGUYEN VANf33b6ea2020-06-03 16:10:43 +0900325 ]
326}