blob: a5b97a1c47e226a0522a9cd0fef35b36cd2701ae [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 {
Ken Chen1647f602021-10-05 21:55:22 +080025 "name": "netd_updatable_unit_test"
26 },
27 {
Remi NGUYEN VANd954bfc2021-05-20 01:25:47 +000028 "name": "TetheringTests"
29 },
30 {
31 "name": "TetheringIntegrationTests"
Wayne Ma7be6bce2022-01-12 16:29:49 +080032 },
33 {
34 "name": "traffic_controller_unit_test"
Ken Chenf426b2b2022-01-23 15:39:13 +080035 },
36 {
37 "name": "libnetworkstats_test"
Remi NGUYEN VAN3b813232022-02-16 12:15:14 +090038 },
39 {
40 "name": "FrameworksNetIntegrationTests"
Remi NGUYEN VANf33b6ea2020-06-03 16:10:43 +090041 }
easoncyleea1b13d62020-06-12 14:14:14 +080042 ],
markchien911cf8f2021-07-19 17:23:54 +080043 "postsubmit": [
44 {
45 "name": "TetheringPrivilegedTests"
Lorenzo Colitti3b38b122022-01-12 16:06:07 +090046 },
Lorenzo Colitti3b38b122022-01-12 16:06:07 +090047 {
Ken Chen1647f602021-10-05 21:55:22 +080048 "name": "netd_updatable_unit_test",
49 "keywords": ["netd-device-kernel-4.9", "netd-device-kernel-4.14"]
50 },
51 {
Hungming Chenaaa8bd82021-12-20 16:43:40 +080052 "name": "libclat_test"
Wayne Ma7be6bce2022-01-12 16:29:49 +080053 },
Wayne Ma320b95d2022-01-23 23:43:11 +080054 {
55 "name": "traffic_controller_unit_test",
Wayne Ma7be6bce2022-01-12 16:29:49 +080056 "keywords": ["netd-device-kernel-4.9", "netd-device-kernel-4.14"]
Ken Chenf426b2b2022-01-23 15:39:13 +080057 },
58 {
59 "name": "libnetworkstats_test"
Remi NGUYEN VAN3b813232022-02-16 12:15:14 +090060 },
61 {
62 "name": "FrameworksNetDeflakeTest"
markchien911cf8f2021-07-19 17:23:54 +080063 }
64 ],
easoncyleea1b13d62020-06-12 14:14:14 +080065 "mainline-presubmit": [
66 {
easoncylee48c4cf62020-10-23 13:10:01 +080067 "name": "CtsNetTestCasesLatestSdk[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]",
easoncyleea1b13d62020-06-12 14:14:14 +080068 "options": [
69 {
70 "exclude-annotation": "com.android.testutils.SkipPresubmit"
Remi NGUYEN VAN9a689f82021-10-28 09:41:21 +090071 },
72 {
73 "exclude-annotation": "androidx.test.filters.RequiresDevice"
easoncyleea1b13d62020-06-12 14:14:14 +080074 }
75 ]
Remi NGUYEN VAN5a1f2f72021-07-01 13:55:49 +000076 },
77 {
Lorenzo Colitti98c83d02022-02-18 17:24:48 +090078 "name": "bpf_existence_test[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]"
79 },
80 {
Ken Chen1647f602021-10-05 21:55:22 +080081 "name": "netd_updatable_unit_test[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]"
82 },
83 {
Remi NGUYEN VAN5a1f2f72021-07-01 13:55:49 +000084 "name": "ConnectivityCoverageTests[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]"
Wayne Ma7be6bce2022-01-12 16:29:49 +080085 },
86 {
87 "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 +080088 },
89 {
90 "name": "libnetworkstats_test[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]"
easoncyleea1b13d62020-06-12 14:14:14 +080091 }
Remi NGUYEN VAN1bc62872020-11-25 07:35:21 +000092 ],
Remi NGUYEN VAN1bc62872020-11-25 07:35:21 +000093 "mainline-postsubmit": [
Remi NGUYEN VANd954bfc2021-05-20 01:25:47 +000094 // Tests on physical devices with SIM cards: postsubmit only for capacity constraints
Remi NGUYEN VAN1bc62872020-11-25 07:35:21 +000095 {
96 "name": "CtsNetTestCasesLatestSdk[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]",
97 "keywords": ["sim"]
Remi NGUYEN VANd954bfc2021-05-20 01:25:47 +000098 },
Remi NGUYEN VAN3b813232022-02-16 12:15:14 +090099 // TODO: move to mainline-presubmit when known green.
100 // Test with APK modules only, in cases where APEX is not supported, or the other modules were simply not updated
101 {
102 "name": "CtsNetTestCasesLatestSdk[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk]",
103 "options": [
104 {
105 "exclude-annotation": "com.android.testutils.SkipPresubmit"
106 },
107 {
108 "exclude-annotation": "androidx.test.filters.RequiresDevice"
109 },
110 {
111 "exclude-annotation": "com.android.testutils.ConnectivityModuleTest"
112 }
113 ]
114 },
115 // TODO: move to mainline-presubmit when known green.
Remi NGUYEN VAN73da4782022-02-16 20:34:31 +0900116 // Test with connectivity/tethering module only, to catch integration issues with older versions of other modules.
117 // "new tethering + old NetworkStack" is not a configuration that should really exist in the field, but
118 // there is no strong guarantee, and it is required by MTS testing for module qualification, where modules
119 // are tested independently.
Remi NGUYEN VAN3b813232022-02-16 12:15:14 +0900120 {
121 "name": "CtsNetTestCasesLatestSdk[com.google.android.tethering.apex]",
122 "options": [
123 {
124 "exclude-annotation": "com.android.testutils.SkipPresubmit"
125 },
126 {
127 "exclude-annotation": "androidx.test.filters.RequiresDevice"
128 }
129 ]
130 },
Remi NGUYEN VANd954bfc2021-05-20 01:25:47 +0000131 {
132 "name": "TetheringCoverageTests[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]"
133 }
134 ],
Remi NGUYEN VAN3b813232022-02-16 12:15:14 +0900135 "auto-postsubmit": [
136 // Test tag for automotive targets. These are only running in postsubmit so as to harden the
137 // automotive targets to avoid introducing additional test flake and build time. The plan for
138 // presubmit testing for auto is to augment the existing tests to cover auto use cases as well.
139 // Additionally, this tag is used in targeted test suites to limit resource usage on the test
140 // infra during the hardening phase.
141 // TODO: this tag to be removed once the above is no longer an issue.
142 {
143 "name": "FrameworksNetTests"
144 },
145 {
146 "name": "FrameworksNetIntegrationTests"
147 },
148 {
149 "name": "FrameworksNetDeflakeTest"
150 }
151 ],
Remi NGUYEN VANd954bfc2021-05-20 01:25:47 +0000152 "imports": [
153 {
Remi NGUYEN VANf353baf2021-03-19 16:03:06 +0000154 "path": "frameworks/base/core/java/android/net"
155 },
156 {
Filip Zakrzewski8a5823d2022-01-07 20:47:30 +0000157 "path": "frameworks/opt/net/ethernet"
158 },
159 {
Remi NGUYEN VANf353baf2021-03-19 16:03:06 +0000160 "path": "packages/modules/NetworkStack"
161 },
162 {
163 "path": "packages/modules/CaptivePortalLogin"
Remi NGUYEN VANf353baf2021-03-19 16:03:06 +0000164 }
Remi NGUYEN VANf33b6ea2020-06-03 16:10:43 +0900165 ]
166}