2020-06-03 07:10:43 +00:00
|
|
|
{
|
2020-06-25 03:58:10 +00:00
|
|
|
"presubmit": [
|
2021-07-16 01:36:12 +00:00
|
|
|
{
|
|
|
|
"name": "ConnectivityCoverageTests"
|
|
|
|
},
|
2022-04-01 02:59:45 +00: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 07:10:43 +00:00
|
|
|
{
|
2021-03-01 06:48:29 +00:00
|
|
|
"name": "CtsNetTestCases",
|
2020-06-03 07:10:43 +00:00
|
|
|
"options": [
|
|
|
|
{
|
|
|
|
"exclude-annotation": "com.android.testutils.SkipPresubmit"
|
2022-05-16 07:51:46 +00: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 00:41:21 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"exclude-annotation": "androidx.test.filters.RequiresDevice"
|
2020-06-03 07:10:43 +00:00
|
|
|
}
|
|
|
|
]
|
2021-05-20 01:25:47 +00:00
|
|
|
},
|
2022-05-27 15:20:06 +00:00
|
|
|
// CTS tests that target older SDKs.
|
2022-07-19 07:33:04 +00:00
|
|
|
{
|
|
|
|
"name": "CtsNetTestCasesMaxTargetSdk30",
|
|
|
|
"options": [
|
|
|
|
{
|
|
|
|
"exclude-annotation": "com.android.testutils.SkipPresubmit"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"exclude-annotation": "androidx.test.filters.RequiresDevice"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2022-05-27 15:20:06 +00:00
|
|
|
{
|
|
|
|
"name": "CtsNetTestCasesMaxTargetSdk31",
|
|
|
|
"options": [
|
|
|
|
{
|
|
|
|
"exclude-annotation": "com.android.testutils.SkipPresubmit"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"exclude-annotation": "androidx.test.filters.RequiresDevice"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2023-02-17 08:29:01 +00:00
|
|
|
{
|
|
|
|
"name": "CtsNetTestCasesMaxTargetSdk33",
|
|
|
|
"options": [
|
|
|
|
{
|
|
|
|
"exclude-annotation": "com.android.testutils.SkipPresubmit"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"exclude-annotation": "androidx.test.filters.RequiresDevice"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2022-02-18 08:24:48 +00:00
|
|
|
{
|
|
|
|
"name": "bpf_existence_test"
|
|
|
|
},
|
2022-03-04 05:44:30 +00:00
|
|
|
{
|
|
|
|
"name": "connectivity_native_test"
|
|
|
|
},
|
2022-05-30 08:18:37 +00:00
|
|
|
{
|
|
|
|
"name": "libclat_test"
|
|
|
|
},
|
2021-10-05 13:55:22 +00:00
|
|
|
{
|
|
|
|
"name": "netd_updatable_unit_test"
|
|
|
|
},
|
2021-05-20 01:25:47 +00:00
|
|
|
{
|
|
|
|
"name": "TetheringTests"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "TetheringIntegrationTests"
|
2022-01-12 08:29:49 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "traffic_controller_unit_test"
|
2022-01-23 07:39:13 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "libnetworkstats_test"
|
2022-02-16 03:15:14 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "FrameworksNetIntegrationTests"
|
2023-02-13 14:29:03 +00:00
|
|
|
},
|
|
|
|
// Runs both NetHttpTests and CtsNetHttpTestCases
|
|
|
|
{
|
2023-04-03 14:40:01 +00:00
|
|
|
"name": "NetHttpCoverageTests",
|
|
|
|
"options": [
|
|
|
|
{
|
|
|
|
// These sometimes take longer than 1 min which is the presubmit timeout
|
|
|
|
"exclude-annotation": "androidx.test.filters.LargeTest"
|
|
|
|
}
|
|
|
|
]
|
2020-06-03 07:10:43 +00:00
|
|
|
}
|
2020-06-12 06:14:14 +00:00
|
|
|
],
|
2021-07-19 09:23:54 +00:00
|
|
|
"postsubmit": [
|
|
|
|
{
|
|
|
|
"name": "TetheringPrivilegedTests"
|
2022-01-12 07:06:07 +00:00
|
|
|
},
|
2021-10-05 13:55:22 +00:00
|
|
|
{
|
|
|
|
"name": "netd_updatable_unit_test",
|
|
|
|
"keywords": ["netd-device-kernel-4.9", "netd-device-kernel-4.14"]
|
|
|
|
},
|
2022-01-23 15:43:11 +00:00
|
|
|
{
|
|
|
|
"name": "traffic_controller_unit_test",
|
2022-01-12 08:29:49 +00:00
|
|
|
"keywords": ["netd-device-kernel-4.9", "netd-device-kernel-4.14"]
|
2022-01-23 07:39:13 +00:00
|
|
|
},
|
2022-02-16 03:15:14 +00:00
|
|
|
{
|
|
|
|
"name": "FrameworksNetDeflakeTest"
|
2021-07-19 09:23:54 +00:00
|
|
|
}
|
|
|
|
],
|
2020-06-12 06:14:14 +00:00
|
|
|
"mainline-presubmit": [
|
|
|
|
{
|
2020-10-23 05:10:01 +00:00
|
|
|
"name": "CtsNetTestCasesLatestSdk[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]",
|
2020-06-12 06:14:14 +00:00
|
|
|
"options": [
|
|
|
|
{
|
|
|
|
"exclude-annotation": "com.android.testutils.SkipPresubmit"
|
2021-10-28 00:41:21 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"exclude-annotation": "androidx.test.filters.RequiresDevice"
|
2020-06-12 06:14:14 +00:00
|
|
|
}
|
|
|
|
]
|
2021-07-01 13:55:49 +00:00
|
|
|
},
|
2022-07-19 07:33:04 +00:00
|
|
|
{
|
|
|
|
"name": "CtsNetTestCasesMaxTargetSdk30[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]",
|
|
|
|
"options": [
|
|
|
|
{
|
|
|
|
"exclude-annotation": "com.android.testutils.SkipPresubmit"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"exclude-annotation": "androidx.test.filters.RequiresDevice"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2022-05-27 15:20:06 +00:00
|
|
|
{
|
|
|
|
"name": "CtsNetTestCasesMaxTargetSdk31[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]",
|
|
|
|
"options": [
|
|
|
|
{
|
|
|
|
"exclude-annotation": "com.android.testutils.SkipPresubmit"
|
2023-02-17 08:29:01 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"exclude-annotation": "androidx.test.filters.RequiresDevice"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "CtsNetTestCasesMaxTargetSdk33[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]",
|
|
|
|
"options": [
|
|
|
|
{
|
|
|
|
"exclude-annotation": "com.android.testutils.SkipPresubmit"
|
2022-05-27 15:20:06 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"exclude-annotation": "androidx.test.filters.RequiresDevice"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2022-05-31 01:53:47 +00:00
|
|
|
// Test with APK modules only, in cases where APEX is not supported, or the other modules
|
|
|
|
// were simply not updated
|
2022-02-16 03:15:14 +00:00
|
|
|
{
|
|
|
|
"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"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2022-05-31 01:53:47 +00: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 03:15:14 +00:00
|
|
|
{
|
|
|
|
"name": "CtsNetTestCasesLatestSdk[com.google.android.tethering.apex]",
|
|
|
|
"options": [
|
|
|
|
{
|
|
|
|
"exclude-annotation": "com.android.testutils.SkipPresubmit"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"exclude-annotation": "androidx.test.filters.RequiresDevice"
|
|
|
|
}
|
|
|
|
]
|
2022-05-31 01:53:47 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "bpf_existence_test[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "connectivity_native_test[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "netd_updatable_unit_test[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "ConnectivityCoverageTests[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "traffic_controller_unit_test[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "libnetworkstats_test[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]"
|
2023-01-24 20:22:56 +00:00
|
|
|
},
|
|
|
|
{
|
2023-04-03 14:40:01 +00:00
|
|
|
"name": "NetHttpCoverageTests[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]",
|
|
|
|
"options": [
|
|
|
|
{
|
|
|
|
// These sometimes take longer than 1 min which is the presubmit timeout
|
|
|
|
"exclude-annotation": "androidx.test.filters.LargeTest"
|
|
|
|
}
|
|
|
|
]
|
2022-05-31 01:53:47 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"mainline-postsubmit": [
|
|
|
|
// Tests on physical devices with SIM cards: postsubmit only for capacity constraints
|
|
|
|
{
|
|
|
|
"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
|
|
|
}
|
|
|
|
],
|
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"
|
2022-08-01 01:23:23 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"path": "vendor/xts/gts-tests/hostsidetests/networkstack"
|
2021-03-19 16:03:06 +00:00
|
|
|
}
|
2020-06-03 07:10:43 +00:00
|
|
|
]
|
|
|
|
}
|