blob: 97be91a837be171bbbb40d178af4ef1017c1c000 [file] [log] [blame]
Baligh Uddin6a41dd42020-11-04 04:21:14 +00001// Copyright (C) 2014 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
Bob Badour97e6be22021-02-12 14:45:04 -080015package {
Aditya Choudhary01b5ede2024-01-31 11:08:57 +000016 default_team: "trendy_team_fwk_core_networking",
Bob Badour97e6be22021-02-12 14:45:04 -080017 default_applicable_licenses: ["Android-Apache-2.0"],
18}
19
Lorenzo Colitti64cd28d2024-09-20 13:40:10 +090020java_defaults {
21 name: "CtsHostsideNetworkTestsAllAppDefaults",
22 platform_apis: true,
23 min_sdk_version: "30",
Lorenzo Colitti6a655a02024-09-20 13:42:23 +090024 // Set target SDK to 10000 so that all the test helper apps are always subject to the most
25 // recent (and possibly most restrictive) target SDK behaviour. Also, this matches the target
26 // SDK of the tests themselves, and of other tests such as CtsNetTestCases.
27 // Note that some of the test helper apps (e.g., CtsHostsideNetworkCapTestsAppSdk33) override
28 // this with older SDK versions.
29 // Also note that unlike android_test targets, "current" does not work: the target SDK is set to
30 // something like "VanillaIceCream" instead of 100000. This means that the tests will not run on
31 // released devices with errors such as "Requires development platform VanillaIceCream but this
32 // is a release platform".
33 target_sdk_version: "10000",
Lorenzo Colitti64cd28d2024-09-20 13:40:10 +090034}
35
Baligh Uddin6a41dd42020-11-04 04:21:14 +000036java_test_host {
37 name: "CtsHostsideNetworkTests",
38 defaults: ["cts_defaults"],
39 // Only compile source java files in this apk.
Suprabh Shuklab2e574d2024-01-19 15:22:28 -080040 srcs: [
41 "src/**/*.java",
Suprabh Shuklab2e574d2024-01-19 15:22:28 -080042 ],
Baligh Uddin6a41dd42020-11-04 04:21:14 +000043 libs: [
Junyu Lai7eb00f72023-07-26 13:58:06 +080044 "net-tests-utils-host-device-common",
Baligh Uddin6a41dd42020-11-04 04:21:14 +000045 "cts-tradefed",
46 "tradefed",
47 ],
Taras Antoshchukd9ba7492022-01-07 18:48:25 +000048 static_libs: [
49 "modules-utils-build-testing",
50 ],
Baligh Uddin6a41dd42020-11-04 04:21:14 +000051 // Tag this module as a cts test artifact
52 test_suites: [
53 "cts",
54 "general-tests",
Ken Chenc2cbf842023-12-25 04:01:43 +000055 "mcts-tethering",
56 "mts-tethering",
Aditya Choudhary01b5ede2024-01-31 11:08:57 +000057 "sts",
Baligh Uddin6a41dd42020-11-04 04:21:14 +000058 ],
yangbillc1b8af22022-04-06 17:29:37 +080059 data: [
60 ":CtsHostsideNetworkTestsApp",
61 ":CtsHostsideNetworkTestsApp2",
Yuyang Huang96e8bfe2023-01-27 17:05:07 +090062 ":CtsHostsideNetworkCapTestsAppWithoutProperty",
63 ":CtsHostsideNetworkCapTestsAppWithProperty",
64 ":CtsHostsideNetworkCapTestsAppSdk33",
Lorenzo Colitti0820ccb2024-09-20 14:45:49 +090065 ],
yangbillc1b8af22022-04-06 17:29:37 +080066 per_testcase_directory: true,
Baligh Uddin6a41dd42020-11-04 04:21:14 +000067}