Use the same target SDK in ConnectivityCoverageTests and CTS.
Currently, ConnectivityCoverageTests is manually set to target SDK 31. This is different from CtsNetTestCasesLatestSdk, and CtsTetheringTestLatestSdk, which are set to 33 and 31 respectively. Set all of them to 33 via a defaults clause. ConnectivityCoverageTests must have the same target SDK as CTS because it includes many of the CTS tests (e.g., everything in common/). Bug: 236087258 Test: atest ConnectivityCoverageTests Test: atest CtsNetTestCasesLatestSdk Test: atest CtsTetheringTestLatestSdk Change-Id: I88c16dc28d9b73557def25d7f669ed14ae9d360a
This commit is contained in:
parent
30f6fd3818
commit
cc5054bfe3
3 changed files with 19 additions and 4 deletions
|
|
@ -21,6 +21,19 @@ package {
|
|||
default_applicable_licenses: ["Android-Apache-2.0"],
|
||||
}
|
||||
|
||||
// The target SDK version of the "latest released SDK" CTS tests.
|
||||
// This should be updated soon after a new SDK level is finalized.
|
||||
// It is different from the target SDK version of production code (e.g., the Tethering,
|
||||
// NetworkStack, and CaptivePortalLogin APKs):
|
||||
// - The target SDK of production code influences the behaviour of the production code.
|
||||
// - The target SDK of the CTS tests validates the behaviour seen by apps that call production APIs.
|
||||
// - The behaviour seen by apps that target previous SDKs is tested by previous CTS versions
|
||||
// (currently, CTS 10, 11, and 12).
|
||||
java_defaults {
|
||||
name: "ConnectivityTestsLatestSdkDefaults",
|
||||
target_sdk_version: "33",
|
||||
}
|
||||
|
||||
java_library {
|
||||
name: "FrameworksNetCommonTests",
|
||||
defaults: ["framework-connectivity-internal-test-defaults"],
|
||||
|
|
@ -80,9 +93,9 @@ android_test {
|
|||
name: "ConnectivityCoverageTests",
|
||||
// Tethering started on SDK 30
|
||||
min_sdk_version: "30",
|
||||
target_sdk_version: "31",
|
||||
test_suites: ["general-tests", "mts-tethering"],
|
||||
defaults: [
|
||||
"ConnectivityTestsLatestSdkDefaults",
|
||||
"framework-connectivity-internal-test-defaults",
|
||||
"FrameworksNetTests-jni-defaults",
|
||||
"libnetworkstackutilsjni_deps",
|
||||
|
|
|
|||
|
|
@ -98,10 +98,10 @@ java_defaults {
|
|||
android_test {
|
||||
name: "CtsNetTestCasesLatestSdk",
|
||||
defaults: [
|
||||
"ConnectivityTestsLatestSdkDefaults",
|
||||
"CtsNetTestCasesDefaults",
|
||||
"CtsNetTestCasesApiStableDefaults",
|
||||
],
|
||||
target_sdk_version: "33",
|
||||
test_suites: [
|
||||
"general-tests",
|
||||
"mts-dnsresolver",
|
||||
|
|
|
|||
|
|
@ -53,10 +53,12 @@ java_defaults {
|
|||
// mainline modules on release devices.
|
||||
android_test {
|
||||
name: "CtsTetheringTestLatestSdk",
|
||||
defaults: ["CtsTetheringTestDefaults"],
|
||||
defaults: [
|
||||
"ConnectivityTestsLatestSdkDefaults",
|
||||
"CtsTetheringTestDefaults",
|
||||
],
|
||||
|
||||
min_sdk_version: "30",
|
||||
target_sdk_version: "33",
|
||||
|
||||
static_libs: [
|
||||
"TetheringIntegrationTestsLatestSdkLib",
|
||||
|
|
|
|||
Loading…
Reference in a new issue