blob: 7fa5e7a40db83f44b3d16e3c25064a77bb2f5895 [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 },
25 {
Lorenzo Colitti98c83d02022-02-18 17:24:48 +090026 "name": "bpf_existence_test"
27 },
28 {
Ken Chen1647f602021-10-05 21:55:22 +080029 "name": "netd_updatable_unit_test"
30 },
31 {
Remi NGUYEN VANd954bfc2021-05-20 01:25:47 +000032 "name": "TetheringTests"
33 },
34 {
35 "name": "TetheringIntegrationTests"
Wayne Ma7be6bce2022-01-12 16:29:49 +080036 },
37 {
38 "name": "traffic_controller_unit_test"
Ken Chenf426b2b2022-01-23 15:39:13 +080039 },
40 {
41 "name": "libnetworkstats_test"
Remi NGUYEN VAN3b813232022-02-16 12:15:14 +090042 },
43 {
44 "name": "FrameworksNetIntegrationTests"
Remi NGUYEN VANf33b6ea2020-06-03 16:10:43 +090045 }
easoncyleea1b13d62020-06-12 14:14:14 +080046 ],
markchien911cf8f2021-07-19 17:23:54 +080047 "postsubmit": [
48 {
49 "name": "TetheringPrivilegedTests"
Lorenzo Colitti3b38b122022-01-12 16:06:07 +090050 },
Lorenzo Colitti3b38b122022-01-12 16:06:07 +090051 {
Ken Chen1647f602021-10-05 21:55:22 +080052 "name": "netd_updatable_unit_test",
53 "keywords": ["netd-device-kernel-4.9", "netd-device-kernel-4.14"]
54 },
55 {
Hungming Chenaaa8bd82021-12-20 16:43:40 +080056 "name": "libclat_test"
Wayne Ma7be6bce2022-01-12 16:29:49 +080057 },
Wayne Ma320b95d2022-01-23 23:43:11 +080058 {
59 "name": "traffic_controller_unit_test",
Wayne Ma7be6bce2022-01-12 16:29:49 +080060 "keywords": ["netd-device-kernel-4.9", "netd-device-kernel-4.14"]
Ken Chenf426b2b2022-01-23 15:39:13 +080061 },
62 {
63 "name": "libnetworkstats_test"
Remi NGUYEN VAN3b813232022-02-16 12:15:14 +090064 },
65 {
66 "name": "FrameworksNetDeflakeTest"
markchien911cf8f2021-07-19 17:23:54 +080067 }
68 ],
easoncyleea1b13d62020-06-12 14:14:14 +080069 "mainline-presubmit": [
70 {
easoncylee48c4cf62020-10-23 13:10:01 +080071 "name": "CtsNetTestCasesLatestSdk[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]",
easoncyleea1b13d62020-06-12 14:14:14 +080072 "options": [
73 {
74 "exclude-annotation": "com.android.testutils.SkipPresubmit"
Remi NGUYEN VAN9a689f82021-10-28 09:41:21 +090075 },
76 {
77 "exclude-annotation": "androidx.test.filters.RequiresDevice"
easoncyleea1b13d62020-06-12 14:14:14 +080078 }
79 ]
Remi NGUYEN VAN5a1f2f72021-07-01 13:55:49 +000080 },
81 {
Lorenzo Colitti98c83d02022-02-18 17:24:48 +090082 "name": "bpf_existence_test[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]"
83 },
84 {
Ken Chen1647f602021-10-05 21:55:22 +080085 "name": "netd_updatable_unit_test[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]"
86 },
87 {
Remi NGUYEN VAN5a1f2f72021-07-01 13:55:49 +000088 "name": "ConnectivityCoverageTests[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]"
Wayne Ma7be6bce2022-01-12 16:29:49 +080089 },
90 {
91 "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 +080092 },
93 {
94 "name": "libnetworkstats_test[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]"
easoncyleea1b13d62020-06-12 14:14:14 +080095 }
Remi NGUYEN VAN1bc62872020-11-25 07:35:21 +000096 ],
Remi NGUYEN VAN1bc62872020-11-25 07:35:21 +000097 "mainline-postsubmit": [
Remi NGUYEN VANd954bfc2021-05-20 01:25:47 +000098 // Tests on physical devices with SIM cards: postsubmit only for capacity constraints
Remi NGUYEN VAN1bc62872020-11-25 07:35:21 +000099 {
100 "name": "CtsNetTestCasesLatestSdk[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]",
101 "keywords": ["sim"]
Remi NGUYEN VANd954bfc2021-05-20 01:25:47 +0000102 },
Remi NGUYEN VAN3b813232022-02-16 12:15:14 +0900103 // TODO: move to mainline-presubmit when known green.
104 // Test with APK modules only, in cases where APEX is not supported, or the other modules were simply not updated
105 {
106 "name": "CtsNetTestCasesLatestSdk[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk]",
107 "options": [
108 {
109 "exclude-annotation": "com.android.testutils.SkipPresubmit"
110 },
111 {
112 "exclude-annotation": "androidx.test.filters.RequiresDevice"
113 },
114 {
115 "exclude-annotation": "com.android.testutils.ConnectivityModuleTest"
116 }
117 ]
118 },
119 // TODO: move to mainline-presubmit when known green.
Remi NGUYEN VAN73da4782022-02-16 20:34:31 +0900120 // Test with connectivity/tethering module only, to catch integration issues with older versions of other modules.
121 // "new tethering + old NetworkStack" is not a configuration that should really exist in the field, but
122 // there is no strong guarantee, and it is required by MTS testing for module qualification, where modules
123 // are tested independently.
Remi NGUYEN VAN3b813232022-02-16 12:15:14 +0900124 {
125 "name": "CtsNetTestCasesLatestSdk[com.google.android.tethering.apex]",
126 "options": [
127 {
128 "exclude-annotation": "com.android.testutils.SkipPresubmit"
129 },
130 {
131 "exclude-annotation": "androidx.test.filters.RequiresDevice"
132 }
133 ]
134 },
Remi NGUYEN VANd954bfc2021-05-20 01:25:47 +0000135 {
136 "name": "TetheringCoverageTests[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]"
137 }
138 ],
Remi NGUYEN VAN3b813232022-02-16 12:15:14 +0900139 "auto-postsubmit": [
140 // Test tag for automotive targets. These are only running in postsubmit so as to harden the
141 // automotive targets to avoid introducing additional test flake and build time. The plan for
142 // presubmit testing for auto is to augment the existing tests to cover auto use cases as well.
143 // Additionally, this tag is used in targeted test suites to limit resource usage on the test
144 // infra during the hardening phase.
145 // TODO: this tag to be removed once the above is no longer an issue.
146 {
147 "name": "FrameworksNetTests"
148 },
149 {
150 "name": "FrameworksNetIntegrationTests"
151 },
152 {
153 "name": "FrameworksNetDeflakeTest"
154 }
155 ],
Remi NGUYEN VANd954bfc2021-05-20 01:25:47 +0000156 "imports": [
157 {
Remi NGUYEN VANf353baf2021-03-19 16:03:06 +0000158 "path": "frameworks/base/core/java/android/net"
159 },
160 {
Filip Zakrzewski8a5823d2022-01-07 20:47:30 +0000161 "path": "frameworks/opt/net/ethernet"
162 },
163 {
Remi NGUYEN VANf353baf2021-03-19 16:03:06 +0000164 "path": "packages/modules/NetworkStack"
165 },
166 {
167 "path": "packages/modules/CaptivePortalLogin"
Remi NGUYEN VANf353baf2021-03-19 16:03:06 +0000168 }
Remi NGUYEN VANf33b6ea2020-06-03 16:10:43 +0900169 ]
170}