2020-06-03 16:10:43 +09:00
|
|
|
{
|
2020-06-25 03:58:10 +00:00
|
|
|
"presubmit": [
|
2021-07-16 01:36:12 +00:00
|
|
|
{
|
|
|
|
|
"name": "ConnectivityCoverageTests"
|
|
|
|
|
},
|
2022-04-01 11:59:45 +09:00
|
|
|
{
|
|
|
|
|
// In addition to ConnectivityCoverageTests, runs non-connectivity-module tests
|
|
|
|
|
"name": "FrameworksNetTests"
|
|
|
|
|
},
|
2021-03-01 06:48:29 +00:00
|
|
|
// Run in addition to mainline-presubmit as mainline-presubmit is not
|
|
|
|
|
// supported in every branch.
|
|
|
|
|
// CtsNetTestCasesLatestSdk uses stable API shims, so does not exercise
|
|
|
|
|
// some latest APIs. Run CtsNetTestCases to get coverage of newer APIs.
|
2020-06-03 16:10:43 +09:00
|
|
|
{
|
2021-03-01 06:48:29 +00:00
|
|
|
"name": "CtsNetTestCases",
|
2020-06-03 16:10:43 +09:00
|
|
|
"options": [
|
|
|
|
|
{
|
|
|
|
|
"exclude-annotation": "com.android.testutils.SkipPresubmit"
|
2022-05-16 15:51:46 +08:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"exclude-annotation": "androidx.test.filters.RequiresDevice"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
// Also run CtsNetTestCasesLatestSdk to ensure tests using older shims pass.
|
|
|
|
|
{
|
|
|
|
|
"name": "CtsNetTestCasesLatestSdk",
|
|
|
|
|
"options": [
|
|
|
|
|
{
|
|
|
|
|
"exclude-annotation": "com.android.testutils.SkipPresubmit"
|
2021-10-28 09:41:21 +09:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"exclude-annotation": "androidx.test.filters.RequiresDevice"
|
2020-06-03 16:10:43 +09:00
|
|
|
}
|
|
|
|
|
]
|
2021-05-20 01:25:47 +00:00
|
|
|
},
|
2022-02-18 17:24:48 +09:00
|
|
|
{
|
|
|
|
|
"name": "bpf_existence_test"
|
|
|
|
|
},
|
2022-03-03 21:44:30 -08:00
|
|
|
{
|
|
|
|
|
"name": "connectivity_native_test"
|
|
|
|
|
},
|
2021-10-05 21:55:22 +08:00
|
|
|
{
|
|
|
|
|
"name": "netd_updatable_unit_test"
|
|
|
|
|
},
|
2021-05-20 01:25:47 +00:00
|
|
|
{
|
|
|
|
|
"name": "TetheringTests"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "TetheringIntegrationTests"
|
2022-01-12 16:29:49 +08:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "traffic_controller_unit_test"
|
2022-01-23 15:39:13 +08:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "libnetworkstats_test"
|
2022-02-16 12:15:14 +09:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "FrameworksNetIntegrationTests"
|
2020-06-03 16:10:43 +09:00
|
|
|
}
|
2020-06-12 14:14:14 +08:00
|
|
|
],
|
2021-07-19 17:23:54 +08:00
|
|
|
"postsubmit": [
|
|
|
|
|
{
|
|
|
|
|
"name": "TetheringPrivilegedTests"
|
2022-01-12 16:06:07 +09:00
|
|
|
},
|
2021-10-05 21:55:22 +08:00
|
|
|
{
|
|
|
|
|
"name": "netd_updatable_unit_test",
|
|
|
|
|
"keywords": ["netd-device-kernel-4.9", "netd-device-kernel-4.14"]
|
|
|
|
|
},
|
2021-12-20 16:43:40 +08:00
|
|
|
{
|
|
|
|
|
"name": "libclat_test"
|
2022-01-12 16:29:49 +08:00
|
|
|
},
|
2022-01-23 23:43:11 +08:00
|
|
|
{
|
|
|
|
|
"name": "traffic_controller_unit_test",
|
2022-01-12 16:29:49 +08:00
|
|
|
"keywords": ["netd-device-kernel-4.9", "netd-device-kernel-4.14"]
|
2022-01-23 15:39:13 +08:00
|
|
|
},
|
2022-02-16 12:15:14 +09:00
|
|
|
{
|
|
|
|
|
"name": "FrameworksNetDeflakeTest"
|
2021-07-19 17:23:54 +08:00
|
|
|
}
|
|
|
|
|
],
|
2020-06-12 14:14:14 +08:00
|
|
|
"mainline-presubmit": [
|
|
|
|
|
{
|
2020-10-23 13:10:01 +08:00
|
|
|
"name": "CtsNetTestCasesLatestSdk[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]",
|
2020-06-12 14:14:14 +08:00
|
|
|
"options": [
|
|
|
|
|
{
|
|
|
|
|
"exclude-annotation": "com.android.testutils.SkipPresubmit"
|
2021-10-28 09:41:21 +09:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"exclude-annotation": "androidx.test.filters.RequiresDevice"
|
2020-06-12 14:14:14 +08:00
|
|
|
}
|
|
|
|
|
]
|
2021-07-01 13:55:49 +00:00
|
|
|
},
|
2022-02-18 17:24:48 +09:00
|
|
|
{
|
|
|
|
|
"name": "bpf_existence_test[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]"
|
|
|
|
|
},
|
2022-03-03 21:44:30 -08:00
|
|
|
{
|
|
|
|
|
"name": "connectivity_native_test[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]"
|
|
|
|
|
},
|
2021-10-05 21:55:22 +08:00
|
|
|
{
|
|
|
|
|
"name": "netd_updatable_unit_test[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]"
|
|
|
|
|
},
|
2021-07-01 13:55:49 +00:00
|
|
|
{
|
|
|
|
|
"name": "ConnectivityCoverageTests[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]"
|
2022-01-12 16:29:49 +08:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "traffic_controller_unit_test[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]"
|
2022-01-23 15:39:13 +08:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "libnetworkstats_test[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]"
|
2020-06-12 14:14:14 +08:00
|
|
|
}
|
2020-11-25 07:35:21 +00:00
|
|
|
],
|
|
|
|
|
"mainline-postsubmit": [
|
2021-05-20 01:25:47 +00:00
|
|
|
// Tests on physical devices with SIM cards: postsubmit only for capacity constraints
|
2020-11-25 07:35:21 +00:00
|
|
|
{
|
|
|
|
|
"name": "CtsNetTestCasesLatestSdk[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]",
|
|
|
|
|
"keywords": ["sim"]
|
2021-05-20 01:25:47 +00:00
|
|
|
},
|
2022-02-16 12:15:14 +09:00
|
|
|
// TODO: move to mainline-presubmit when known green.
|
|
|
|
|
// Test with APK modules only, in cases where APEX is not supported, or the other modules were simply not updated
|
|
|
|
|
{
|
|
|
|
|
"name": "CtsNetTestCasesLatestSdk[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk]",
|
|
|
|
|
"options": [
|
|
|
|
|
{
|
|
|
|
|
"exclude-annotation": "com.android.testutils.SkipPresubmit"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"exclude-annotation": "androidx.test.filters.RequiresDevice"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"exclude-annotation": "com.android.testutils.ConnectivityModuleTest"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
// TODO: move to mainline-presubmit when known green.
|
2022-02-16 20:34:31 +09:00
|
|
|
// Test with connectivity/tethering module only, to catch integration issues with older versions of other modules.
|
|
|
|
|
// "new tethering + old NetworkStack" is not a configuration that should really exist in the field, but
|
|
|
|
|
// there is no strong guarantee, and it is required by MTS testing for module qualification, where modules
|
|
|
|
|
// are tested independently.
|
2022-02-16 12:15:14 +09:00
|
|
|
{
|
|
|
|
|
"name": "CtsNetTestCasesLatestSdk[com.google.android.tethering.apex]",
|
|
|
|
|
"options": [
|
|
|
|
|
{
|
|
|
|
|
"exclude-annotation": "com.android.testutils.SkipPresubmit"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"exclude-annotation": "androidx.test.filters.RequiresDevice"
|
|
|
|
|
}
|
|
|
|
|
]
|
2021-05-20 01:25:47 +00:00
|
|
|
}
|
|
|
|
|
],
|
2022-02-16 12:15:14 +09:00
|
|
|
"auto-postsubmit": [
|
|
|
|
|
// Test tag for automotive targets. These are only running in postsubmit so as to harden the
|
|
|
|
|
// automotive targets to avoid introducing additional test flake and build time. The plan for
|
|
|
|
|
// presubmit testing for auto is to augment the existing tests to cover auto use cases as well.
|
|
|
|
|
// Additionally, this tag is used in targeted test suites to limit resource usage on the test
|
|
|
|
|
// infra during the hardening phase.
|
|
|
|
|
// TODO: this tag to be removed once the above is no longer an issue.
|
|
|
|
|
{
|
|
|
|
|
"name": "FrameworksNetTests"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "FrameworksNetIntegrationTests"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "FrameworksNetDeflakeTest"
|
|
|
|
|
}
|
|
|
|
|
],
|
2021-03-19 16:03:06 +00:00
|
|
|
"imports": [
|
|
|
|
|
{
|
|
|
|
|
"path": "frameworks/base/core/java/android/net"
|
|
|
|
|
},
|
2022-01-07 20:47:30 +00:00
|
|
|
{
|
|
|
|
|
"path": "frameworks/opt/net/ethernet"
|
|
|
|
|
},
|
2021-03-19 16:03:06 +00:00
|
|
|
{
|
|
|
|
|
"path": "packages/modules/NetworkStack"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"path": "packages/modules/CaptivePortalLogin"
|
|
|
|
|
}
|
2020-06-03 16:10:43 +09:00
|
|
|
]
|
|
|
|
|
}
|