| Remi NGUYEN VAN | f33b6ea | 2020-06-03 16:10:43 +0900 | [diff] [blame] | 1 | { | 
| Remi NGUYEN VAN | a773ccb | 2020-06-25 03:58:10 +0000 | [diff] [blame] | 2 |   "presubmit": [ | 
| Remi NGUYEN VAN | 48c6888 | 2021-07-16 01:36:12 +0000 | [diff] [blame] | 3 |     { | 
 | 4 |       "name": "ConnectivityCoverageTests" | 
 | 5 |     }, | 
| Remi NGUYEN VAN | 40da62d | 2022-04-01 11:59:45 +0900 | [diff] [blame] | 6 |     { | 
 | 7 |       // In addition to ConnectivityCoverageTests, runs non-connectivity-module tests | 
 | 8 |       "name": "FrameworksNetTests" | 
 | 9 |     }, | 
| Remi NGUYEN VAN | ad380c1 | 2021-03-01 06:48:29 +0000 | [diff] [blame] | 10 |     // 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 VAN | f33b6ea | 2020-06-03 16:10:43 +0900 | [diff] [blame] | 14 |     { | 
| Remi NGUYEN VAN | ad380c1 | 2021-03-01 06:48:29 +0000 | [diff] [blame] | 15 |       "name": "CtsNetTestCases", | 
| Remi NGUYEN VAN | f33b6ea | 2020-06-03 16:10:43 +0900 | [diff] [blame] | 16 |       "options": [ | 
 | 17 |         { | 
 | 18 |           "exclude-annotation": "com.android.testutils.SkipPresubmit" | 
| Remi NGUYEN VAN | 9a689f8 | 2021-10-28 09:41:21 +0900 | [diff] [blame] | 19 |         }, | 
 | 20 |         { | 
 | 21 |           "exclude-annotation": "androidx.test.filters.RequiresDevice" | 
| Remi NGUYEN VAN | f33b6ea | 2020-06-03 16:10:43 +0900 | [diff] [blame] | 22 |         } | 
 | 23 |       ] | 
| Remi NGUYEN VAN | d954bfc | 2021-05-20 01:25:47 +0000 | [diff] [blame] | 24 |     }, | 
| Paul Hu | 206e5f0 | 2022-05-16 15:51:46 +0800 | [diff] [blame] | 25 |     // 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 Colitti | 9e61b82 | 2022-05-28 00:20:06 +0900 | [diff] [blame] | 37 |     // CTS tests that target older SDKs. | 
 | 38 |     { | 
 | 39 |       "name": "CtsNetTestCasesMaxTargetSdk31", | 
 | 40 |       "options": [ | 
 | 41 |         { | 
 | 42 |           "exclude-annotation": "com.android.testutils.SkipPresubmit" | 
 | 43 |         }, | 
 | 44 |         { | 
 | 45 |           "exclude-annotation": "androidx.test.filters.RequiresDevice" | 
 | 46 |         } | 
 | 47 |       ] | 
 | 48 |     }, | 
| Remi NGUYEN VAN | d954bfc | 2021-05-20 01:25:47 +0000 | [diff] [blame] | 49 |     { | 
| Lorenzo Colitti | 98c83d0 | 2022-02-18 17:24:48 +0900 | [diff] [blame] | 50 |       "name": "bpf_existence_test" | 
 | 51 |     }, | 
 | 52 |     { | 
| Tyler Wear | b4ab4c3 | 2022-03-03 21:44:30 -0800 | [diff] [blame] | 53 |       "name": "connectivity_native_test" | 
 | 54 |     }, | 
 | 55 |     { | 
| Hungming Chen | 2e6d107 | 2022-05-30 16:18:37 +0800 | [diff] [blame] | 56 |       "name": "libclat_test" | 
 | 57 |     }, | 
 | 58 |     { | 
| Ken Chen | 1647f60 | 2021-10-05 21:55:22 +0800 | [diff] [blame] | 59 |       "name": "netd_updatable_unit_test" | 
 | 60 |     }, | 
 | 61 |     { | 
| Remi NGUYEN VAN | d954bfc | 2021-05-20 01:25:47 +0000 | [diff] [blame] | 62 |       "name": "TetheringTests" | 
 | 63 |     }, | 
 | 64 |     { | 
 | 65 |       "name": "TetheringIntegrationTests" | 
| Wayne Ma | 7be6bce | 2022-01-12 16:29:49 +0800 | [diff] [blame] | 66 |     }, | 
 | 67 |     { | 
 | 68 |       "name": "traffic_controller_unit_test" | 
| Ken Chen | f426b2b | 2022-01-23 15:39:13 +0800 | [diff] [blame] | 69 |     }, | 
 | 70 |     { | 
 | 71 |       "name": "libnetworkstats_test" | 
| Remi NGUYEN VAN | 3b81323 | 2022-02-16 12:15:14 +0900 | [diff] [blame] | 72 |     }, | 
 | 73 |     { | 
 | 74 |       "name": "FrameworksNetIntegrationTests" | 
| Remi NGUYEN VAN | f33b6ea | 2020-06-03 16:10:43 +0900 | [diff] [blame] | 75 |     } | 
| easoncylee | a1b13d6 | 2020-06-12 14:14:14 +0800 | [diff] [blame] | 76 |   ], | 
| markchien | 911cf8f | 2021-07-19 17:23:54 +0800 | [diff] [blame] | 77 |   "postsubmit": [ | 
 | 78 |     { | 
 | 79 |       "name": "TetheringPrivilegedTests" | 
| Lorenzo Colitti | 3b38b12 | 2022-01-12 16:06:07 +0900 | [diff] [blame] | 80 |     }, | 
| Lorenzo Colitti | 3b38b12 | 2022-01-12 16:06:07 +0900 | [diff] [blame] | 81 |     { | 
| Ken Chen | 1647f60 | 2021-10-05 21:55:22 +0800 | [diff] [blame] | 82 |       "name": "netd_updatable_unit_test", | 
 | 83 |       "keywords": ["netd-device-kernel-4.9", "netd-device-kernel-4.14"] | 
 | 84 |     }, | 
 | 85 |     { | 
| Wayne Ma | 320b95d | 2022-01-23 23:43:11 +0800 | [diff] [blame] | 86 |       "name": "traffic_controller_unit_test", | 
| Wayne Ma | 7be6bce | 2022-01-12 16:29:49 +0800 | [diff] [blame] | 87 |       "keywords": ["netd-device-kernel-4.9", "netd-device-kernel-4.14"] | 
| Ken Chen | f426b2b | 2022-01-23 15:39:13 +0800 | [diff] [blame] | 88 |     }, | 
 | 89 |     { | 
| Remi NGUYEN VAN | 3b81323 | 2022-02-16 12:15:14 +0900 | [diff] [blame] | 90 |       "name": "FrameworksNetDeflakeTest" | 
| markchien | 911cf8f | 2021-07-19 17:23:54 +0800 | [diff] [blame] | 91 |     } | 
 | 92 |   ], | 
| easoncylee | a1b13d6 | 2020-06-12 14:14:14 +0800 | [diff] [blame] | 93 |   "mainline-presubmit": [ | 
 | 94 |     { | 
| easoncylee | 48c4cf6 | 2020-10-23 13:10:01 +0800 | [diff] [blame] | 95 |       "name": "CtsNetTestCasesLatestSdk[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]", | 
| easoncylee | a1b13d6 | 2020-06-12 14:14:14 +0800 | [diff] [blame] | 96 |       "options": [ | 
 | 97 |         { | 
 | 98 |           "exclude-annotation": "com.android.testutils.SkipPresubmit" | 
| Remi NGUYEN VAN | 9a689f8 | 2021-10-28 09:41:21 +0900 | [diff] [blame] | 99 |         }, | 
 | 100 |         { | 
 | 101 |           "exclude-annotation": "androidx.test.filters.RequiresDevice" | 
| easoncylee | a1b13d6 | 2020-06-12 14:14:14 +0800 | [diff] [blame] | 102 |         } | 
 | 103 |       ] | 
| Remi NGUYEN VAN | 5a1f2f7 | 2021-07-01 13:55:49 +0000 | [diff] [blame] | 104 |     }, | 
 | 105 |     { | 
| Lorenzo Colitti | 9e61b82 | 2022-05-28 00:20:06 +0900 | [diff] [blame] | 106 |       "name": "CtsNetTestCasesMaxTargetSdk31[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]", | 
 | 107 |       "options": [ | 
 | 108 |         { | 
 | 109 |           "exclude-annotation": "com.android.testutils.SkipPresubmit" | 
 | 110 |         }, | 
 | 111 |         { | 
 | 112 |           "exclude-annotation": "androidx.test.filters.RequiresDevice" | 
 | 113 |         } | 
 | 114 |       ] | 
 | 115 |     }, | 
 | 116 |     { | 
| Lorenzo Colitti | 98c83d0 | 2022-02-18 17:24:48 +0900 | [diff] [blame] | 117 |       "name": "bpf_existence_test[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]" | 
 | 118 |     }, | 
 | 119 |     { | 
| Tyler Wear | b4ab4c3 | 2022-03-03 21:44:30 -0800 | [diff] [blame] | 120 |       "name": "connectivity_native_test[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]" | 
 | 121 |     }, | 
 | 122 |     { | 
| Ken Chen | 1647f60 | 2021-10-05 21:55:22 +0800 | [diff] [blame] | 123 |       "name": "netd_updatable_unit_test[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]" | 
 | 124 |     }, | 
 | 125 |     { | 
| Remi NGUYEN VAN | 5a1f2f7 | 2021-07-01 13:55:49 +0000 | [diff] [blame] | 126 |       "name": "ConnectivityCoverageTests[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]" | 
| Wayne Ma | 7be6bce | 2022-01-12 16:29:49 +0800 | [diff] [blame] | 127 |     }, | 
 | 128 |     { | 
 | 129 |       "name": "traffic_controller_unit_test[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]" | 
| Ken Chen | f426b2b | 2022-01-23 15:39:13 +0800 | [diff] [blame] | 130 |     }, | 
 | 131 |     { | 
 | 132 |       "name": "libnetworkstats_test[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]" | 
| easoncylee | a1b13d6 | 2020-06-12 14:14:14 +0800 | [diff] [blame] | 133 |     } | 
| Remi NGUYEN VAN | 1bc6287 | 2020-11-25 07:35:21 +0000 | [diff] [blame] | 134 |   ], | 
| Remi NGUYEN VAN | 1bc6287 | 2020-11-25 07:35:21 +0000 | [diff] [blame] | 135 |   "mainline-postsubmit": [ | 
| Remi NGUYEN VAN | d954bfc | 2021-05-20 01:25:47 +0000 | [diff] [blame] | 136 |     // Tests on physical devices with SIM cards: postsubmit only for capacity constraints | 
| Remi NGUYEN VAN | 1bc6287 | 2020-11-25 07:35:21 +0000 | [diff] [blame] | 137 |     { | 
 | 138 |       "name": "CtsNetTestCasesLatestSdk[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]", | 
 | 139 |       "keywords": ["sim"] | 
| Remi NGUYEN VAN | d954bfc | 2021-05-20 01:25:47 +0000 | [diff] [blame] | 140 |     }, | 
| Remi NGUYEN VAN | 3b81323 | 2022-02-16 12:15:14 +0900 | [diff] [blame] | 141 |     // TODO: move to mainline-presubmit when known green. | 
 | 142 |     // Test with APK modules only, in cases where APEX is not supported, or the other modules were simply not updated | 
 | 143 |     { | 
 | 144 |       "name": "CtsNetTestCasesLatestSdk[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk]", | 
 | 145 |       "options": [ | 
 | 146 |         { | 
 | 147 |           "exclude-annotation": "com.android.testutils.SkipPresubmit" | 
 | 148 |         }, | 
 | 149 |         { | 
 | 150 |           "exclude-annotation": "androidx.test.filters.RequiresDevice" | 
 | 151 |         }, | 
 | 152 |         { | 
 | 153 |           "exclude-annotation": "com.android.testutils.ConnectivityModuleTest" | 
 | 154 |         } | 
 | 155 |       ] | 
 | 156 |     }, | 
 | 157 |     // TODO: move to mainline-presubmit when known green. | 
| Remi NGUYEN VAN | 73da478 | 2022-02-16 20:34:31 +0900 | [diff] [blame] | 158 |     // Test with connectivity/tethering module only, to catch integration issues with older versions of other modules. | 
 | 159 |     // "new tethering + old NetworkStack" is not a configuration that should really exist in the field, but | 
 | 160 |     // there is no strong guarantee, and it is required by MTS testing for module qualification, where modules | 
 | 161 |     // are tested independently. | 
| Remi NGUYEN VAN | 3b81323 | 2022-02-16 12:15:14 +0900 | [diff] [blame] | 162 |     { | 
 | 163 |       "name": "CtsNetTestCasesLatestSdk[com.google.android.tethering.apex]", | 
 | 164 |       "options": [ | 
 | 165 |         { | 
 | 166 |           "exclude-annotation": "com.android.testutils.SkipPresubmit" | 
 | 167 |         }, | 
 | 168 |         { | 
 | 169 |           "exclude-annotation": "androidx.test.filters.RequiresDevice" | 
 | 170 |         } | 
 | 171 |       ] | 
| Remi NGUYEN VAN | d954bfc | 2021-05-20 01:25:47 +0000 | [diff] [blame] | 172 |     } | 
 | 173 |   ], | 
 | 174 |   "imports": [ | 
 | 175 |     { | 
| Remi NGUYEN VAN | f353baf | 2021-03-19 16:03:06 +0000 | [diff] [blame] | 176 |       "path": "frameworks/base/core/java/android/net" | 
 | 177 |     }, | 
 | 178 |     { | 
| Filip Zakrzewski | 8a5823d | 2022-01-07 20:47:30 +0000 | [diff] [blame] | 179 |       "path": "frameworks/opt/net/ethernet" | 
 | 180 |     }, | 
 | 181 |     { | 
| Remi NGUYEN VAN | f353baf | 2021-03-19 16:03:06 +0000 | [diff] [blame] | 182 |       "path": "packages/modules/NetworkStack" | 
 | 183 |     }, | 
 | 184 |     { | 
 | 185 |       "path": "packages/modules/CaptivePortalLogin" | 
| Remi NGUYEN VAN | f353baf | 2021-03-19 16:03:06 +0000 | [diff] [blame] | 186 |     } | 
| Remi NGUYEN VAN | f33b6ea | 2020-06-03 16:10:43 +0900 | [diff] [blame] | 187 |   ] | 
 | 188 | } |