blob: 1e8babf8a6805df6114c3eea53a248ea03eacefc [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
8 "name": "FrameworksNetTests"
9 },
Remi NGUYEN VANad380c12021-03-01 06:48:29 +000010 // Run in addition to mainline-presubmit as mainline-presubmit is not
11 // supported in every branch.
12 // CtsNetTestCasesLatestSdk uses stable API shims, so does not exercise
13 // some latest APIs. Run CtsNetTestCases to get coverage of newer APIs.
Remi NGUYEN VANf33b6ea2020-06-03 16:10:43 +090014 {
Remi NGUYEN VANad380c12021-03-01 06:48:29 +000015 "name": "CtsNetTestCases",
Remi NGUYEN VANf33b6ea2020-06-03 16:10:43 +090016 "options": [
17 {
18 "exclude-annotation": "com.android.testutils.SkipPresubmit"
Remi NGUYEN VAN9a689f82021-10-28 09:41:21 +090019 },
20 {
21 "exclude-annotation": "androidx.test.filters.RequiresDevice"
Remi NGUYEN VANf33b6ea2020-06-03 16:10:43 +090022 }
23 ]
Remi NGUYEN VANd954bfc2021-05-20 01:25:47 +000024 },
Paul Hu206e5f02022-05-16 15:51:46 +080025 // Also run CtsNetTestCasesLatestSdk to ensure tests using older shims pass.
26 {
27 "name": "CtsNetTestCasesLatestSdk",
28 "options": [
29 {
30 "exclude-annotation": "com.android.testutils.SkipPresubmit"
31 },
32 {
33 "exclude-annotation": "androidx.test.filters.RequiresDevice"
34 }
35 ]
36 },
Lorenzo Colitti9e61b822022-05-28 00:20:06 +090037 // CTS tests that target older SDKs.
38 {
Remi NGUYEN VAN348bbb02022-07-19 16:33:04 +090039 "name": "CtsNetTestCasesMaxTargetSdk30",
40 "options": [
41 {
42 "exclude-annotation": "com.android.testutils.SkipPresubmit"
43 },
44 {
45 "exclude-annotation": "androidx.test.filters.RequiresDevice"
46 }
47 ]
48 },
49 {
Lorenzo Colitti9e61b822022-05-28 00:20:06 +090050 "name": "CtsNetTestCasesMaxTargetSdk31",
51 "options": [
52 {
53 "exclude-annotation": "com.android.testutils.SkipPresubmit"
54 },
55 {
56 "exclude-annotation": "androidx.test.filters.RequiresDevice"
57 }
58 ]
59 },
Remi NGUYEN VANd954bfc2021-05-20 01:25:47 +000060 {
Lorenzo Colitti98c83d02022-02-18 17:24:48 +090061 "name": "bpf_existence_test"
62 },
63 {
Tyler Wearb4ab4c32022-03-03 21:44:30 -080064 "name": "connectivity_native_test"
65 },
66 {
Hungming Chen2e6d1072022-05-30 16:18:37 +080067 "name": "libclat_test"
68 },
69 {
Ken Chen1647f602021-10-05 21:55:22 +080070 "name": "netd_updatable_unit_test"
71 },
72 {
Remi NGUYEN VANd954bfc2021-05-20 01:25:47 +000073 "name": "TetheringTests"
74 },
75 {
76 "name": "TetheringIntegrationTests"
Wayne Ma7be6bce2022-01-12 16:29:49 +080077 },
78 {
79 "name": "traffic_controller_unit_test"
Ken Chenf426b2b2022-01-23 15:39:13 +080080 },
81 {
82 "name": "libnetworkstats_test"
Remi NGUYEN VAN3b813232022-02-16 12:15:14 +090083 },
84 {
85 "name": "FrameworksNetIntegrationTests"
Remi NGUYEN VANf33b6ea2020-06-03 16:10:43 +090086 }
easoncyleea1b13d62020-06-12 14:14:14 +080087 ],
markchien911cf8f2021-07-19 17:23:54 +080088 "postsubmit": [
89 {
90 "name": "TetheringPrivilegedTests"
Lorenzo Colitti3b38b122022-01-12 16:06:07 +090091 },
Lorenzo Colitti3b38b122022-01-12 16:06:07 +090092 {
Ken Chen1647f602021-10-05 21:55:22 +080093 "name": "netd_updatable_unit_test",
94 "keywords": ["netd-device-kernel-4.9", "netd-device-kernel-4.14"]
95 },
96 {
Wayne Ma320b95d2022-01-23 23:43:11 +080097 "name": "traffic_controller_unit_test",
Wayne Ma7be6bce2022-01-12 16:29:49 +080098 "keywords": ["netd-device-kernel-4.9", "netd-device-kernel-4.14"]
Ken Chenf426b2b2022-01-23 15:39:13 +080099 },
100 {
Remi NGUYEN VAN3b813232022-02-16 12:15:14 +0900101 "name": "FrameworksNetDeflakeTest"
markchien911cf8f2021-07-19 17:23:54 +0800102 }
103 ],
easoncyleea1b13d62020-06-12 14:14:14 +0800104 "mainline-presubmit": [
105 {
easoncylee48c4cf62020-10-23 13:10:01 +0800106 "name": "CtsNetTestCasesLatestSdk[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]",
easoncyleea1b13d62020-06-12 14:14:14 +0800107 "options": [
108 {
109 "exclude-annotation": "com.android.testutils.SkipPresubmit"
Remi NGUYEN VAN9a689f82021-10-28 09:41:21 +0900110 },
111 {
112 "exclude-annotation": "androidx.test.filters.RequiresDevice"
easoncyleea1b13d62020-06-12 14:14:14 +0800113 }
114 ]
Remi NGUYEN VAN5a1f2f72021-07-01 13:55:49 +0000115 },
116 {
Remi NGUYEN VAN348bbb02022-07-19 16:33:04 +0900117 "name": "CtsNetTestCasesMaxTargetSdk30[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]",
118 "options": [
119 {
120 "exclude-annotation": "com.android.testutils.SkipPresubmit"
121 },
122 {
123 "exclude-annotation": "androidx.test.filters.RequiresDevice"
124 }
125 ]
126 },
127 {
Lorenzo Colitti9e61b822022-05-28 00:20:06 +0900128 "name": "CtsNetTestCasesMaxTargetSdk31[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]",
129 "options": [
130 {
131 "exclude-annotation": "com.android.testutils.SkipPresubmit"
132 },
133 {
134 "exclude-annotation": "androidx.test.filters.RequiresDevice"
135 }
136 ]
137 },
138 {
Lorenzo Colitti98c83d02022-02-18 17:24:48 +0900139 "name": "bpf_existence_test[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]"
140 },
141 {
Tyler Wearb4ab4c32022-03-03 21:44:30 -0800142 "name": "connectivity_native_test[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]"
143 },
144 {
Ken Chen1647f602021-10-05 21:55:22 +0800145 "name": "netd_updatable_unit_test[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]"
146 },
147 {
Remi NGUYEN VAN5a1f2f72021-07-01 13:55:49 +0000148 "name": "ConnectivityCoverageTests[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]"
Wayne Ma7be6bce2022-01-12 16:29:49 +0800149 },
150 {
151 "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 +0800152 },
153 {
154 "name": "libnetworkstats_test[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]"
easoncyleea1b13d62020-06-12 14:14:14 +0800155 }
Remi NGUYEN VAN1bc62872020-11-25 07:35:21 +0000156 ],
Remi NGUYEN VAN1bc62872020-11-25 07:35:21 +0000157 "mainline-postsubmit": [
Remi NGUYEN VANd954bfc2021-05-20 01:25:47 +0000158 // Tests on physical devices with SIM cards: postsubmit only for capacity constraints
Remi NGUYEN VAN1bc62872020-11-25 07:35:21 +0000159 {
160 "name": "CtsNetTestCasesLatestSdk[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]",
161 "keywords": ["sim"]
Remi NGUYEN VANd954bfc2021-05-20 01:25:47 +0000162 },
Remi NGUYEN VAN3b813232022-02-16 12:15:14 +0900163 // TODO: move to mainline-presubmit when known green.
164 // Test with APK modules only, in cases where APEX is not supported, or the other modules were simply not updated
165 {
166 "name": "CtsNetTestCasesLatestSdk[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk]",
167 "options": [
168 {
169 "exclude-annotation": "com.android.testutils.SkipPresubmit"
170 },
171 {
172 "exclude-annotation": "androidx.test.filters.RequiresDevice"
173 },
174 {
175 "exclude-annotation": "com.android.testutils.ConnectivityModuleTest"
176 }
177 ]
178 },
179 // TODO: move to mainline-presubmit when known green.
Remi NGUYEN VAN73da4782022-02-16 20:34:31 +0900180 // Test with connectivity/tethering module only, to catch integration issues with older versions of other modules.
181 // "new tethering + old NetworkStack" is not a configuration that should really exist in the field, but
182 // there is no strong guarantee, and it is required by MTS testing for module qualification, where modules
183 // are tested independently.
Remi NGUYEN VAN3b813232022-02-16 12:15:14 +0900184 {
185 "name": "CtsNetTestCasesLatestSdk[com.google.android.tethering.apex]",
186 "options": [
187 {
188 "exclude-annotation": "com.android.testutils.SkipPresubmit"
189 },
190 {
191 "exclude-annotation": "androidx.test.filters.RequiresDevice"
192 }
193 ]
Remi NGUYEN VANd954bfc2021-05-20 01:25:47 +0000194 }
195 ],
196 "imports": [
197 {
Remi NGUYEN VANf353baf2021-03-19 16:03:06 +0000198 "path": "frameworks/base/core/java/android/net"
199 },
200 {
Filip Zakrzewski8a5823d2022-01-07 20:47:30 +0000201 "path": "frameworks/opt/net/ethernet"
202 },
203 {
Remi NGUYEN VANf353baf2021-03-19 16:03:06 +0000204 "path": "packages/modules/NetworkStack"
205 },
206 {
207 "path": "packages/modules/CaptivePortalLogin"
Remi NGUYEN VANf353baf2021-03-19 16:03:06 +0000208 }
Remi NGUYEN VANf33b6ea2020-06-03 16:10:43 +0900209 ]
210}