blob: 85072a756ff3393c36d4885a6d0eed229a8697a2 [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 },
Remi NGUYEN VANd954bfc2021-05-20 01:25:47 +000037 {
Lorenzo Colitti98c83d02022-02-18 17:24:48 +090038 "name": "bpf_existence_test"
39 },
40 {
Tyler Wearb4ab4c32022-03-03 21:44:30 -080041 "name": "connectivity_native_test"
42 },
43 {
Ken Chen1647f602021-10-05 21:55:22 +080044 "name": "netd_updatable_unit_test"
45 },
46 {
Remi NGUYEN VANd954bfc2021-05-20 01:25:47 +000047 "name": "TetheringTests"
48 },
49 {
50 "name": "TetheringIntegrationTests"
Wayne Ma7be6bce2022-01-12 16:29:49 +080051 },
52 {
53 "name": "traffic_controller_unit_test"
Ken Chenf426b2b2022-01-23 15:39:13 +080054 },
55 {
56 "name": "libnetworkstats_test"
Remi NGUYEN VAN3b813232022-02-16 12:15:14 +090057 },
58 {
59 "name": "FrameworksNetIntegrationTests"
Remi NGUYEN VANf33b6ea2020-06-03 16:10:43 +090060 }
easoncyleea1b13d62020-06-12 14:14:14 +080061 ],
markchien911cf8f2021-07-19 17:23:54 +080062 "postsubmit": [
63 {
64 "name": "TetheringPrivilegedTests"
Lorenzo Colitti3b38b122022-01-12 16:06:07 +090065 },
Lorenzo Colitti3b38b122022-01-12 16:06:07 +090066 {
Ken Chen1647f602021-10-05 21:55:22 +080067 "name": "netd_updatable_unit_test",
68 "keywords": ["netd-device-kernel-4.9", "netd-device-kernel-4.14"]
69 },
70 {
Hungming Chenaaa8bd82021-12-20 16:43:40 +080071 "name": "libclat_test"
Wayne Ma7be6bce2022-01-12 16:29:49 +080072 },
Wayne Ma320b95d2022-01-23 23:43:11 +080073 {
74 "name": "traffic_controller_unit_test",
Wayne Ma7be6bce2022-01-12 16:29:49 +080075 "keywords": ["netd-device-kernel-4.9", "netd-device-kernel-4.14"]
Ken Chenf426b2b2022-01-23 15:39:13 +080076 },
77 {
Remi NGUYEN VAN3b813232022-02-16 12:15:14 +090078 "name": "FrameworksNetDeflakeTest"
markchien911cf8f2021-07-19 17:23:54 +080079 }
80 ],
easoncyleea1b13d62020-06-12 14:14:14 +080081 "mainline-presubmit": [
82 {
easoncylee48c4cf62020-10-23 13:10:01 +080083 "name": "CtsNetTestCasesLatestSdk[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]",
easoncyleea1b13d62020-06-12 14:14:14 +080084 "options": [
85 {
86 "exclude-annotation": "com.android.testutils.SkipPresubmit"
Remi NGUYEN VAN9a689f82021-10-28 09:41:21 +090087 },
88 {
89 "exclude-annotation": "androidx.test.filters.RequiresDevice"
easoncyleea1b13d62020-06-12 14:14:14 +080090 }
91 ]
Remi NGUYEN VAN5a1f2f72021-07-01 13:55:49 +000092 },
93 {
Lorenzo Colitti98c83d02022-02-18 17:24:48 +090094 "name": "bpf_existence_test[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]"
95 },
96 {
Tyler Wearb4ab4c32022-03-03 21:44:30 -080097 "name": "connectivity_native_test[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]"
98 },
99 {
Ken Chen1647f602021-10-05 21:55:22 +0800100 "name": "netd_updatable_unit_test[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]"
101 },
102 {
Remi NGUYEN VAN5a1f2f72021-07-01 13:55:49 +0000103 "name": "ConnectivityCoverageTests[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]"
Wayne Ma7be6bce2022-01-12 16:29:49 +0800104 },
105 {
106 "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 +0800107 },
108 {
109 "name": "libnetworkstats_test[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]"
easoncyleea1b13d62020-06-12 14:14:14 +0800110 }
Remi NGUYEN VAN1bc62872020-11-25 07:35:21 +0000111 ],
Remi NGUYEN VAN1bc62872020-11-25 07:35:21 +0000112 "mainline-postsubmit": [
Remi NGUYEN VANd954bfc2021-05-20 01:25:47 +0000113 // Tests on physical devices with SIM cards: postsubmit only for capacity constraints
Remi NGUYEN VAN1bc62872020-11-25 07:35:21 +0000114 {
115 "name": "CtsNetTestCasesLatestSdk[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]",
116 "keywords": ["sim"]
Remi NGUYEN VANd954bfc2021-05-20 01:25:47 +0000117 },
Remi NGUYEN VAN3b813232022-02-16 12:15:14 +0900118 // TODO: move to mainline-presubmit when known green.
119 // Test with APK modules only, in cases where APEX is not supported, or the other modules were simply not updated
120 {
121 "name": "CtsNetTestCasesLatestSdk[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk]",
122 "options": [
123 {
124 "exclude-annotation": "com.android.testutils.SkipPresubmit"
125 },
126 {
127 "exclude-annotation": "androidx.test.filters.RequiresDevice"
128 },
129 {
130 "exclude-annotation": "com.android.testutils.ConnectivityModuleTest"
131 }
132 ]
133 },
134 // TODO: move to mainline-presubmit when known green.
Remi NGUYEN VAN73da4782022-02-16 20:34:31 +0900135 // Test with connectivity/tethering module only, to catch integration issues with older versions of other modules.
136 // "new tethering + old NetworkStack" is not a configuration that should really exist in the field, but
137 // there is no strong guarantee, and it is required by MTS testing for module qualification, where modules
138 // are tested independently.
Remi NGUYEN VAN3b813232022-02-16 12:15:14 +0900139 {
140 "name": "CtsNetTestCasesLatestSdk[com.google.android.tethering.apex]",
141 "options": [
142 {
143 "exclude-annotation": "com.android.testutils.SkipPresubmit"
144 },
145 {
146 "exclude-annotation": "androidx.test.filters.RequiresDevice"
147 }
148 ]
Remi NGUYEN VANd954bfc2021-05-20 01:25:47 +0000149 }
150 ],
Remi NGUYEN VAN3b813232022-02-16 12:15:14 +0900151 "auto-postsubmit": [
152 // Test tag for automotive targets. These are only running in postsubmit so as to harden the
153 // automotive targets to avoid introducing additional test flake and build time. The plan for
154 // presubmit testing for auto is to augment the existing tests to cover auto use cases as well.
155 // Additionally, this tag is used in targeted test suites to limit resource usage on the test
156 // infra during the hardening phase.
157 // TODO: this tag to be removed once the above is no longer an issue.
158 {
159 "name": "FrameworksNetTests"
160 },
161 {
162 "name": "FrameworksNetIntegrationTests"
163 },
164 {
165 "name": "FrameworksNetDeflakeTest"
166 }
167 ],
Remi NGUYEN VANd954bfc2021-05-20 01:25:47 +0000168 "imports": [
169 {
Remi NGUYEN VANf353baf2021-03-19 16:03:06 +0000170 "path": "frameworks/base/core/java/android/net"
171 },
172 {
Filip Zakrzewski8a5823d2022-01-07 20:47:30 +0000173 "path": "frameworks/opt/net/ethernet"
174 },
175 {
Remi NGUYEN VANf353baf2021-03-19 16:03:06 +0000176 "path": "packages/modules/NetworkStack"
177 },
178 {
179 "path": "packages/modules/CaptivePortalLogin"
Remi NGUYEN VANf353baf2021-03-19 16:03:06 +0000180 }
Remi NGUYEN VANf33b6ea2020-06-03 16:10:43 +0900181 ]
182}