Test: atest CtsHostsideNetworkTests Flag: TEST_ONLY Change-Id: If7f8cd614f0528248ca87be1d3aac5396b64e071
68 lines
2.5 KiB
Text
68 lines
2.5 KiB
Text
// Copyright (C) 2014 The Android Open Source Project
|
|
//
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
// you may not use this file except in compliance with the License.
|
|
// You may obtain a copy of the License at
|
|
//
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
// See the License for the specific language governing permissions and
|
|
// limitations under the License.
|
|
|
|
package {
|
|
default_team: "trendy_team_fwk_core_networking",
|
|
default_applicable_licenses: ["Android-Apache-2.0"],
|
|
}
|
|
|
|
java_defaults {
|
|
name: "CtsHostsideNetworkTestsAllAppDefaults",
|
|
platform_apis: true,
|
|
min_sdk_version: "30",
|
|
// Set target SDK to 10000 so that all the test helper apps are always subject to the most
|
|
// recent (and possibly most restrictive) target SDK behaviour. Also, this matches the target
|
|
// SDK of the tests themselves, and of other tests such as CtsNetTestCases.
|
|
// Note that some of the test helper apps (e.g., CtsHostsideNetworkCapTestsAppSdk33) override
|
|
// this with older SDK versions.
|
|
// Also note that unlike android_test targets, "current" does not work: the target SDK is set to
|
|
// something like "VanillaIceCream" instead of 10000. This means that the tests will not run on
|
|
// released devices with errors such as "Requires development platform VanillaIceCream but this
|
|
// is a release platform".
|
|
target_sdk_version: "10000",
|
|
}
|
|
|
|
java_test_host {
|
|
name: "CtsHostsideNetworkTests",
|
|
defaults: ["cts_defaults"],
|
|
// Only compile source java files in this apk.
|
|
srcs: [
|
|
"src/**/*.java",
|
|
],
|
|
libs: [
|
|
"net-tests-utils-host-device-common",
|
|
"cts-tradefed",
|
|
"tradefed",
|
|
],
|
|
static_libs: [
|
|
"modules-utils-build-testing",
|
|
"net-tests-utils-host-common",
|
|
],
|
|
// Tag this module as a cts test artifact
|
|
test_suites: [
|
|
"cts",
|
|
"general-tests",
|
|
"mcts-tethering",
|
|
"mts-tethering",
|
|
"sts",
|
|
],
|
|
device_common_data: [
|
|
":CtsHostsideNetworkTestsApp",
|
|
":CtsHostsideNetworkTestsApp2",
|
|
":CtsHostsideNetworkCapTestsAppWithoutProperty",
|
|
":CtsHostsideNetworkCapTestsAppWithProperty",
|
|
":CtsHostsideNetworkCapTestsAppSdk33",
|
|
],
|
|
per_testcase_directory: true,
|
|
}
|