blob: b720c0bd6dd8eb412ff3fd7268210b25262cd6d1 [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 VANad380c12021-03-01 06:48:29 +00006 // Run in addition to mainline-presubmit as mainline-presubmit is not
7 // supported in every branch.
8 // CtsNetTestCasesLatestSdk uses stable API shims, so does not exercise
9 // some latest APIs. Run CtsNetTestCases to get coverage of newer APIs.
Remi NGUYEN VANf33b6ea2020-06-03 16:10:43 +090010 {
Remi NGUYEN VANad380c12021-03-01 06:48:29 +000011 "name": "CtsNetTestCases",
Remi NGUYEN VANf33b6ea2020-06-03 16:10:43 +090012 "options": [
13 {
14 "exclude-annotation": "com.android.testutils.SkipPresubmit"
Remi NGUYEN VAN9a689f82021-10-28 09:41:21 +090015 },
16 {
17 "exclude-annotation": "androidx.test.filters.RequiresDevice"
Remi NGUYEN VANf33b6ea2020-06-03 16:10:43 +090018 }
19 ]
Remi NGUYEN VANd954bfc2021-05-20 01:25:47 +000020 },
21 {
Lorenzo Colitti98c83d02022-02-18 17:24:48 +090022 "name": "bpf_existence_test"
23 },
24 {
Tyler Wearb4ab4c32022-03-03 21:44:30 -080025 "name": "connectivity_native_test"
26 },
27 {
Ken Chen1647f602021-10-05 21:55:22 +080028 "name": "netd_updatable_unit_test"
29 },
30 {
Remi NGUYEN VANd954bfc2021-05-20 01:25:47 +000031 "name": "TetheringTests"
32 },
33 {
34 "name": "TetheringIntegrationTests"
Wayne Ma7be6bce2022-01-12 16:29:49 +080035 },
36 {
37 "name": "traffic_controller_unit_test"
Ken Chenf426b2b2022-01-23 15:39:13 +080038 },
39 {
40 "name": "libnetworkstats_test"
Remi NGUYEN VAN3b813232022-02-16 12:15:14 +090041 },
42 {
43 "name": "FrameworksNetIntegrationTests"
Remi NGUYEN VANf33b6ea2020-06-03 16:10:43 +090044 }
easoncyleea1b13d62020-06-12 14:14:14 +080045 ],
markchien911cf8f2021-07-19 17:23:54 +080046 "postsubmit": [
47 {
48 "name": "TetheringPrivilegedTests"
Lorenzo Colitti3b38b122022-01-12 16:06:07 +090049 },
Lorenzo Colitti3b38b122022-01-12 16:06:07 +090050 {
Ken Chen1647f602021-10-05 21:55:22 +080051 "name": "netd_updatable_unit_test",
52 "keywords": ["netd-device-kernel-4.9", "netd-device-kernel-4.14"]
53 },
54 {
Hungming Chenaaa8bd82021-12-20 16:43:40 +080055 "name": "libclat_test"
Wayne Ma7be6bce2022-01-12 16:29:49 +080056 },
Wayne Ma320b95d2022-01-23 23:43:11 +080057 {
58 "name": "traffic_controller_unit_test",
Wayne Ma7be6bce2022-01-12 16:29:49 +080059 "keywords": ["netd-device-kernel-4.9", "netd-device-kernel-4.14"]
Ken Chenf426b2b2022-01-23 15:39:13 +080060 },
61 {
62 "name": "libnetworkstats_test"
Remi NGUYEN VAN3b813232022-02-16 12:15:14 +090063 },
64 {
65 "name": "FrameworksNetDeflakeTest"
markchien911cf8f2021-07-19 17:23:54 +080066 }
67 ],
easoncyleea1b13d62020-06-12 14:14:14 +080068 "mainline-presubmit": [
69 {
easoncylee48c4cf62020-10-23 13:10:01 +080070 "name": "CtsNetTestCasesLatestSdk[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]",
easoncyleea1b13d62020-06-12 14:14:14 +080071 "options": [
72 {
73 "exclude-annotation": "com.android.testutils.SkipPresubmit"
Remi NGUYEN VAN9a689f82021-10-28 09:41:21 +090074 },
75 {
76 "exclude-annotation": "androidx.test.filters.RequiresDevice"
easoncyleea1b13d62020-06-12 14:14:14 +080077 }
78 ]
Remi NGUYEN VAN5a1f2f72021-07-01 13:55:49 +000079 },
80 {
Lorenzo Colitti98c83d02022-02-18 17:24:48 +090081 "name": "bpf_existence_test[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]"
82 },
83 {
Tyler Wearb4ab4c32022-03-03 21:44:30 -080084 "name": "connectivity_native_test[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]"
85 },
86 {
Ken Chen1647f602021-10-05 21:55:22 +080087 "name": "netd_updatable_unit_test[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]"
88 },
89 {
Remi NGUYEN VAN5a1f2f72021-07-01 13:55:49 +000090 "name": "ConnectivityCoverageTests[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]"
Wayne Ma7be6bce2022-01-12 16:29:49 +080091 },
92 {
93 "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 +080094 },
95 {
96 "name": "libnetworkstats_test[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]"
easoncyleea1b13d62020-06-12 14:14:14 +080097 }
Remi NGUYEN VAN1bc62872020-11-25 07:35:21 +000098 ],
Remi NGUYEN VAN1bc62872020-11-25 07:35:21 +000099 "mainline-postsubmit": [
Remi NGUYEN VANd954bfc2021-05-20 01:25:47 +0000100 // Tests on physical devices with SIM cards: postsubmit only for capacity constraints
Remi NGUYEN VAN1bc62872020-11-25 07:35:21 +0000101 {
102 "name": "CtsNetTestCasesLatestSdk[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]",
103 "keywords": ["sim"]
Remi NGUYEN VANd954bfc2021-05-20 01:25:47 +0000104 },
Remi NGUYEN VAN3b813232022-02-16 12:15:14 +0900105 // TODO: move to mainline-presubmit when known green.
106 // Test with APK modules only, in cases where APEX is not supported, or the other modules were simply not updated
107 {
108 "name": "CtsNetTestCasesLatestSdk[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk]",
109 "options": [
110 {
111 "exclude-annotation": "com.android.testutils.SkipPresubmit"
112 },
113 {
114 "exclude-annotation": "androidx.test.filters.RequiresDevice"
115 },
116 {
117 "exclude-annotation": "com.android.testutils.ConnectivityModuleTest"
118 }
119 ]
120 },
121 // TODO: move to mainline-presubmit when known green.
Remi NGUYEN VAN73da4782022-02-16 20:34:31 +0900122 // Test with connectivity/tethering module only, to catch integration issues with older versions of other modules.
123 // "new tethering + old NetworkStack" is not a configuration that should really exist in the field, but
124 // there is no strong guarantee, and it is required by MTS testing for module qualification, where modules
125 // are tested independently.
Remi NGUYEN VAN3b813232022-02-16 12:15:14 +0900126 {
127 "name": "CtsNetTestCasesLatestSdk[com.google.android.tethering.apex]",
128 "options": [
129 {
130 "exclude-annotation": "com.android.testutils.SkipPresubmit"
131 },
132 {
133 "exclude-annotation": "androidx.test.filters.RequiresDevice"
134 }
135 ]
136 },
Remi NGUYEN VANd954bfc2021-05-20 01:25:47 +0000137 {
138 "name": "TetheringCoverageTests[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]"
139 }
140 ],
Remi NGUYEN VAN3b813232022-02-16 12:15:14 +0900141 "auto-postsubmit": [
142 // Test tag for automotive targets. These are only running in postsubmit so as to harden the
143 // automotive targets to avoid introducing additional test flake and build time. The plan for
144 // presubmit testing for auto is to augment the existing tests to cover auto use cases as well.
145 // Additionally, this tag is used in targeted test suites to limit resource usage on the test
146 // infra during the hardening phase.
147 // TODO: this tag to be removed once the above is no longer an issue.
148 {
149 "name": "FrameworksNetTests"
150 },
151 {
152 "name": "FrameworksNetIntegrationTests"
153 },
154 {
155 "name": "FrameworksNetDeflakeTest"
156 }
157 ],
Remi NGUYEN VANd954bfc2021-05-20 01:25:47 +0000158 "imports": [
159 {
Remi NGUYEN VANf353baf2021-03-19 16:03:06 +0000160 "path": "frameworks/base/core/java/android/net"
161 },
162 {
Filip Zakrzewski8a5823d2022-01-07 20:47:30 +0000163 "path": "frameworks/opt/net/ethernet"
164 },
165 {
Remi NGUYEN VANf353baf2021-03-19 16:03:06 +0000166 "path": "packages/modules/NetworkStack"
167 },
168 {
169 "path": "packages/modules/CaptivePortalLogin"
Remi NGUYEN VANf353baf2021-03-19 16:03:06 +0000170 }
Remi NGUYEN VANf33b6ea2020-06-03 16:10:43 +0900171 ]
172}