Merge "Add a variant of CtsNetTestCases that targets the released SDK." am: ab9c2b4bef am: 713493d663
Change-Id: Icacd2bdf16988a669a15a64a74f92e2ee66a223c
This commit is contained in:
@@ -12,8 +12,8 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
android_test {
|
java_defaults {
|
||||||
name: "CtsNetTestCases",
|
name: "CtsNetTestCasesDefaults",
|
||||||
defaults: ["cts_defaults"],
|
defaults: ["cts_defaults"],
|
||||||
|
|
||||||
// Include both the 32 and 64 bit versions
|
// Include both the 32 and 64 bit versions
|
||||||
@@ -32,7 +32,6 @@ android_test {
|
|||||||
"libnativehelper_compat_libc++",
|
"libnativehelper_compat_libc++",
|
||||||
],
|
],
|
||||||
|
|
||||||
// include CtsTestServer as a temporary hack to free net.cts from cts.stub.
|
|
||||||
srcs: [
|
srcs: [
|
||||||
"src/**/*.java",
|
"src/**/*.java",
|
||||||
"src/**/*.kt",
|
"src/**/*.kt",
|
||||||
@@ -54,13 +53,33 @@ android_test {
|
|||||||
// uncomment when b/13249961 is fixed
|
// uncomment when b/13249961 is fixed
|
||||||
// sdk_version: "current",
|
// sdk_version: "current",
|
||||||
platform_apis: true,
|
platform_apis: true,
|
||||||
|
}
|
||||||
|
|
||||||
// Tag this module as a cts test artifact
|
// Networking CTS tests for development and release. These tests always target the platform SDK
|
||||||
|
// version, and are subject to all the restrictions appropriate to that version. Before SDK
|
||||||
|
// finalization, these tests have a min_sdk_version of 10000, and cannot be installed on release
|
||||||
|
// devices.
|
||||||
|
android_test {
|
||||||
|
name: "CtsNetTestCases",
|
||||||
|
defaults: ["CtsNetTestCasesDefaults"],
|
||||||
test_suites: [
|
test_suites: [
|
||||||
"cts",
|
"cts",
|
||||||
"vts",
|
"vts",
|
||||||
"general-tests",
|
"general-tests",
|
||||||
|
],
|
||||||
|
test_config_template: "AndroidTestTemplate.xml",
|
||||||
|
}
|
||||||
|
|
||||||
|
// Networking CTS tests that have a min_sdk_version of the latest released SDK. These tests can
|
||||||
|
// be installed on release devices at any point in the release cycle and are useful for qualifying
|
||||||
|
// mainline modules on release devices.
|
||||||
|
android_test {
|
||||||
|
name: "CtsNetTestCasesLatestSdk",
|
||||||
|
defaults: ["CtsNetTestCasesDefaults"],
|
||||||
|
min_sdk_version: "29",
|
||||||
|
target_sdk_version: "29",
|
||||||
|
test_suites: [
|
||||||
"mts",
|
"mts",
|
||||||
],
|
],
|
||||||
|
test_config_template: "AndroidTestTemplate.xml",
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
See the License for the specific language governing permissions and
|
See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
-->
|
-->
|
||||||
<configuration description="Config for CTS Net test cases">
|
<configuration description="Test config for {MODULE}">
|
||||||
<option name="test-suite-tag" value="cts" />
|
<option name="test-suite-tag" value="cts" />
|
||||||
<option name="config-descriptor:metadata" key="component" value="networking" />
|
<option name="config-descriptor:metadata" key="component" value="networking" />
|
||||||
<option name="config-descriptor:metadata" key="token" value="SIM_CARD" />
|
<option name="config-descriptor:metadata" key="token" value="SIM_CARD" />
|
||||||
@@ -22,7 +22,7 @@
|
|||||||
<option name="not-shardable" value="true" />
|
<option name="not-shardable" value="true" />
|
||||||
<target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller">
|
<target_preparer class="com.android.tradefed.targetprep.suite.SuiteApkInstaller">
|
||||||
<option name="cleanup-apks" value="true" />
|
<option name="cleanup-apks" value="true" />
|
||||||
<option name="test-file-name" value="CtsNetTestCases.apk" />
|
<option name="test-file-name" value="{MODULE}.apk" />
|
||||||
</target_preparer>
|
</target_preparer>
|
||||||
<test class="com.android.tradefed.testtype.AndroidJUnitTest" >
|
<test class="com.android.tradefed.testtype.AndroidJUnitTest" >
|
||||||
<option name="package" value="android.net.cts" />
|
<option name="package" value="android.net.cts" />
|
||||||
Reference in New Issue
Block a user