| 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 | ad380c1 | 2021-03-01 06:48:29 +0000 | [diff] [blame] | 6 | // 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 VAN | f33b6ea | 2020-06-03 16:10:43 +0900 | [diff] [blame] | 10 | { | 
| Remi NGUYEN VAN | ad380c1 | 2021-03-01 06:48:29 +0000 | [diff] [blame] | 11 | "name": "CtsNetTestCases", | 
| Remi NGUYEN VAN | f33b6ea | 2020-06-03 16:10:43 +0900 | [diff] [blame] | 12 | "options": [ | 
|  | 13 | { | 
|  | 14 | "exclude-annotation": "com.android.testutils.SkipPresubmit" | 
| Remi NGUYEN VAN | 9a689f8 | 2021-10-28 09:41:21 +0900 | [diff] [blame] | 15 | }, | 
|  | 16 | { | 
|  | 17 | "exclude-annotation": "androidx.test.filters.RequiresDevice" | 
| Remi NGUYEN VAN | f33b6ea | 2020-06-03 16:10:43 +0900 | [diff] [blame] | 18 | } | 
|  | 19 | ] | 
| Remi NGUYEN VAN | d954bfc | 2021-05-20 01:25:47 +0000 | [diff] [blame] | 20 | }, | 
|  | 21 | { | 
| Ken Chen | 1647f60 | 2021-10-05 21:55:22 +0800 | [diff] [blame] | 22 | "name": "netd_updatable_unit_test" | 
|  | 23 | }, | 
|  | 24 | { | 
| Remi NGUYEN VAN | d954bfc | 2021-05-20 01:25:47 +0000 | [diff] [blame] | 25 | "name": "TetheringTests" | 
|  | 26 | }, | 
|  | 27 | { | 
|  | 28 | "name": "TetheringIntegrationTests" | 
| Wayne Ma | 7be6bce | 2022-01-12 16:29:49 +0800 | [diff] [blame] | 29 | }, | 
|  | 30 | { | 
|  | 31 | "name": "traffic_controller_unit_test" | 
| Ken Chen | f426b2b | 2022-01-23 15:39:13 +0800 | [diff] [blame] | 32 | }, | 
|  | 33 | { | 
|  | 34 | "name": "libnetworkstats_test" | 
| Remi NGUYEN VAN | 3b81323 | 2022-02-16 12:15:14 +0900 | [diff] [blame] | 35 | }, | 
|  | 36 | { | 
|  | 37 | "name": "FrameworksNetIntegrationTests" | 
| Remi NGUYEN VAN | f33b6ea | 2020-06-03 16:10:43 +0900 | [diff] [blame] | 38 | } | 
| easoncylee | a1b13d6 | 2020-06-12 14:14:14 +0800 | [diff] [blame] | 39 | ], | 
| markchien | 911cf8f | 2021-07-19 17:23:54 +0800 | [diff] [blame] | 40 | "postsubmit": [ | 
|  | 41 | { | 
|  | 42 | "name": "TetheringPrivilegedTests" | 
| Lorenzo Colitti | 3b38b12 | 2022-01-12 16:06:07 +0900 | [diff] [blame] | 43 | }, | 
|  | 44 | // TODO: move to presubmit when known green. | 
|  | 45 | { | 
|  | 46 | "name": "bpf_existence_test" | 
| Hungming Chen | aaa8bd8 | 2021-12-20 16:43:40 +0800 | [diff] [blame] | 47 | }, | 
|  | 48 | { | 
| Ken Chen | 1647f60 | 2021-10-05 21:55:22 +0800 | [diff] [blame] | 49 | "name": "netd_updatable_unit_test", | 
|  | 50 | "keywords": ["netd-device-kernel-4.9", "netd-device-kernel-4.14"] | 
|  | 51 | }, | 
|  | 52 | { | 
| Hungming Chen | aaa8bd8 | 2021-12-20 16:43:40 +0800 | [diff] [blame] | 53 | "name": "libclat_test" | 
| Wayne Ma | 7be6bce | 2022-01-12 16:29:49 +0800 | [diff] [blame] | 54 | }, | 
| Wayne Ma | 320b95d | 2022-01-23 23:43:11 +0800 | [diff] [blame] | 55 | { | 
|  | 56 | "name": "traffic_controller_unit_test", | 
| Wayne Ma | 7be6bce | 2022-01-12 16:29:49 +0800 | [diff] [blame] | 57 | "keywords": ["netd-device-kernel-4.9", "netd-device-kernel-4.14"] | 
| Ken Chen | f426b2b | 2022-01-23 15:39:13 +0800 | [diff] [blame] | 58 | }, | 
|  | 59 | { | 
|  | 60 | "name": "libnetworkstats_test" | 
| Remi NGUYEN VAN | 3b81323 | 2022-02-16 12:15:14 +0900 | [diff] [blame] | 61 | }, | 
|  | 62 | { | 
|  | 63 | "name": "FrameworksNetDeflakeTest" | 
| markchien | 911cf8f | 2021-07-19 17:23:54 +0800 | [diff] [blame] | 64 | } | 
|  | 65 | ], | 
| easoncylee | a1b13d6 | 2020-06-12 14:14:14 +0800 | [diff] [blame] | 66 | "mainline-presubmit": [ | 
|  | 67 | { | 
| easoncylee | 48c4cf6 | 2020-10-23 13:10:01 +0800 | [diff] [blame] | 68 | "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] | 69 | "options": [ | 
|  | 70 | { | 
|  | 71 | "exclude-annotation": "com.android.testutils.SkipPresubmit" | 
| Remi NGUYEN VAN | 9a689f8 | 2021-10-28 09:41:21 +0900 | [diff] [blame] | 72 | }, | 
|  | 73 | { | 
|  | 74 | "exclude-annotation": "androidx.test.filters.RequiresDevice" | 
| easoncylee | a1b13d6 | 2020-06-12 14:14:14 +0800 | [diff] [blame] | 75 | } | 
|  | 76 | ] | 
| Remi NGUYEN VAN | 5a1f2f7 | 2021-07-01 13:55:49 +0000 | [diff] [blame] | 77 | }, | 
|  | 78 | { | 
| Ken Chen | 1647f60 | 2021-10-05 21:55:22 +0800 | [diff] [blame] | 79 | "name": "netd_updatable_unit_test[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]" | 
|  | 80 | }, | 
|  | 81 | { | 
| Remi NGUYEN VAN | 5a1f2f7 | 2021-07-01 13:55:49 +0000 | [diff] [blame] | 82 | "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] | 83 | }, | 
|  | 84 | { | 
|  | 85 | "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] | 86 | }, | 
|  | 87 | { | 
|  | 88 | "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] | 89 | } | 
| Remi NGUYEN VAN | 1bc6287 | 2020-11-25 07:35:21 +0000 | [diff] [blame] | 90 | ], | 
| Remi NGUYEN VAN | 1bc6287 | 2020-11-25 07:35:21 +0000 | [diff] [blame] | 91 | "mainline-postsubmit": [ | 
| Remi NGUYEN VAN | d954bfc | 2021-05-20 01:25:47 +0000 | [diff] [blame] | 92 | // 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] | 93 | { | 
|  | 94 | "name": "CtsNetTestCasesLatestSdk[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]", | 
|  | 95 | "keywords": ["sim"] | 
| Remi NGUYEN VAN | d954bfc | 2021-05-20 01:25:47 +0000 | [diff] [blame] | 96 | }, | 
| Remi NGUYEN VAN | 3b81323 | 2022-02-16 12:15:14 +0900 | [diff] [blame] | 97 | // TODO: move to mainline-presubmit when known green. | 
|  | 98 | // Test with APK modules only, in cases where APEX is not supported, or the other modules were simply not updated | 
|  | 99 | { | 
|  | 100 | "name": "CtsNetTestCasesLatestSdk[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk]", | 
|  | 101 | "options": [ | 
|  | 102 | { | 
|  | 103 | "exclude-annotation": "com.android.testutils.SkipPresubmit" | 
|  | 104 | }, | 
|  | 105 | { | 
|  | 106 | "exclude-annotation": "androidx.test.filters.RequiresDevice" | 
|  | 107 | }, | 
|  | 108 | { | 
|  | 109 | "exclude-annotation": "com.android.testutils.ConnectivityModuleTest" | 
|  | 110 | } | 
|  | 111 | ] | 
|  | 112 | }, | 
|  | 113 | // TODO: move to mainline-presubmit when known green. | 
| Remi NGUYEN VAN | 73da478 | 2022-02-16 20:34:31 +0900 | [diff] [blame] | 114 | // Test with connectivity/tethering module only, to catch integration issues with older versions of other modules. | 
|  | 115 | // "new tethering + old NetworkStack" is not a configuration that should really exist in the field, but | 
|  | 116 | // there is no strong guarantee, and it is required by MTS testing for module qualification, where modules | 
|  | 117 | // are tested independently. | 
| Remi NGUYEN VAN | 3b81323 | 2022-02-16 12:15:14 +0900 | [diff] [blame] | 118 | { | 
|  | 119 | "name": "CtsNetTestCasesLatestSdk[com.google.android.tethering.apex]", | 
|  | 120 | "options": [ | 
|  | 121 | { | 
|  | 122 | "exclude-annotation": "com.android.testutils.SkipPresubmit" | 
|  | 123 | }, | 
|  | 124 | { | 
|  | 125 | "exclude-annotation": "androidx.test.filters.RequiresDevice" | 
|  | 126 | } | 
|  | 127 | ] | 
|  | 128 | }, | 
| Remi NGUYEN VAN | d954bfc | 2021-05-20 01:25:47 +0000 | [diff] [blame] | 129 | { | 
|  | 130 | "name": "TetheringCoverageTests[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]" | 
| Lorenzo Colitti | 3b38b12 | 2022-01-12 16:06:07 +0900 | [diff] [blame] | 131 | }, | 
|  | 132 | // TODO: move to mainline-presubmit when known green. | 
|  | 133 | { | 
|  | 134 | "name": "bpf_existence_test[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]" | 
| Remi NGUYEN VAN | d954bfc | 2021-05-20 01:25:47 +0000 | [diff] [blame] | 135 | } | 
|  | 136 | ], | 
| Remi NGUYEN VAN | 3b81323 | 2022-02-16 12:15:14 +0900 | [diff] [blame] | 137 | "auto-postsubmit": [ | 
|  | 138 | // Test tag for automotive targets. These are only running in postsubmit so as to harden the | 
|  | 139 | // automotive targets to avoid introducing additional test flake and build time. The plan for | 
|  | 140 | // presubmit testing for auto is to augment the existing tests to cover auto use cases as well. | 
|  | 141 | // Additionally, this tag is used in targeted test suites to limit resource usage on the test | 
|  | 142 | // infra during the hardening phase. | 
|  | 143 | // TODO: this tag to be removed once the above is no longer an issue. | 
|  | 144 | { | 
|  | 145 | "name": "FrameworksNetTests" | 
|  | 146 | }, | 
|  | 147 | { | 
|  | 148 | "name": "FrameworksNetIntegrationTests" | 
|  | 149 | }, | 
|  | 150 | { | 
|  | 151 | "name": "FrameworksNetDeflakeTest" | 
|  | 152 | } | 
|  | 153 | ], | 
| Remi NGUYEN VAN | d954bfc | 2021-05-20 01:25:47 +0000 | [diff] [blame] | 154 | "imports": [ | 
|  | 155 | { | 
| Remi NGUYEN VAN | f353baf | 2021-03-19 16:03:06 +0000 | [diff] [blame] | 156 | "path": "frameworks/base/core/java/android/net" | 
|  | 157 | }, | 
|  | 158 | { | 
| Filip Zakrzewski | 8a5823d | 2022-01-07 20:47:30 +0000 | [diff] [blame] | 159 | "path": "frameworks/opt/net/ethernet" | 
|  | 160 | }, | 
|  | 161 | { | 
| Remi NGUYEN VAN | f353baf | 2021-03-19 16:03:06 +0000 | [diff] [blame] | 162 | "path": "packages/modules/NetworkStack" | 
|  | 163 | }, | 
|  | 164 | { | 
|  | 165 | "path": "packages/modules/CaptivePortalLogin" | 
| Remi NGUYEN VAN | f353baf | 2021-03-19 16:03:06 +0000 | [diff] [blame] | 166 | } | 
| Remi NGUYEN VAN | f33b6ea | 2020-06-03 16:10:43 +0900 | [diff] [blame] | 167 | ] | 
|  | 168 | } |