Baligh Uddin | 6a41dd4 | 2020-11-04 04:21:14 +0000 | [diff] [blame] | 1 | // 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 | |
Aditya Choudhary | 01b5ede | 2024-01-31 11:08:57 +0000 | [diff] [blame] | 15 | next_app_data = [":CtsHostsideNetworkTestsAppNext"] |
Yuyang Huang | 626b350 | 2023-02-20 18:40:36 +0900 | [diff] [blame] | 16 | |
| 17 | // The above line is put in place to prevent any future automerger merge conflict between aosp, |
| 18 | // downstream branches. The CtsHostsideNetworkTestsAppNext target will not exist in |
| 19 | // some downstream branches, but it should exist in aosp and some downstream branches. |
| 20 | |
Bob Badour | 97e6be2 | 2021-02-12 14:45:04 -0800 | [diff] [blame] | 21 | package { |
Aditya Choudhary | 01b5ede | 2024-01-31 11:08:57 +0000 | [diff] [blame] | 22 | default_team: "trendy_team_fwk_core_networking", |
Bob Badour | 97e6be2 | 2021-02-12 14:45:04 -0800 | [diff] [blame] | 23 | default_applicable_licenses: ["Android-Apache-2.0"], |
| 24 | } |
| 25 | |
Lorenzo Colitti | 64cd28d | 2024-09-20 13:40:10 +0900 | [diff] [blame] | 26 | java_defaults { |
| 27 | name: "CtsHostsideNetworkTestsAllAppDefaults", |
| 28 | platform_apis: true, |
| 29 | min_sdk_version: "30", |
Lorenzo Colitti | 6a655a0 | 2024-09-20 13:42:23 +0900 | [diff] [blame^] | 30 | // Set target SDK to 10000 so that all the test helper apps are always subject to the most |
| 31 | // recent (and possibly most restrictive) target SDK behaviour. Also, this matches the target |
| 32 | // SDK of the tests themselves, and of other tests such as CtsNetTestCases. |
| 33 | // Note that some of the test helper apps (e.g., CtsHostsideNetworkCapTestsAppSdk33) override |
| 34 | // this with older SDK versions. |
| 35 | // Also note that unlike android_test targets, "current" does not work: the target SDK is set to |
| 36 | // something like "VanillaIceCream" instead of 100000. This means that the tests will not run on |
| 37 | // released devices with errors such as "Requires development platform VanillaIceCream but this |
| 38 | // is a release platform". |
| 39 | target_sdk_version: "10000", |
Lorenzo Colitti | 64cd28d | 2024-09-20 13:40:10 +0900 | [diff] [blame] | 40 | } |
| 41 | |
Baligh Uddin | 6a41dd4 | 2020-11-04 04:21:14 +0000 | [diff] [blame] | 42 | java_test_host { |
| 43 | name: "CtsHostsideNetworkTests", |
| 44 | defaults: ["cts_defaults"], |
| 45 | // Only compile source java files in this apk. |
Suprabh Shukla | b2e574d | 2024-01-19 15:22:28 -0800 | [diff] [blame] | 46 | srcs: [ |
| 47 | "src/**/*.java", |
Suprabh Shukla | b2e574d | 2024-01-19 15:22:28 -0800 | [diff] [blame] | 48 | ], |
Baligh Uddin | 6a41dd4 | 2020-11-04 04:21:14 +0000 | [diff] [blame] | 49 | libs: [ |
Junyu Lai | 7eb00f7 | 2023-07-26 13:58:06 +0800 | [diff] [blame] | 50 | "net-tests-utils-host-device-common", |
Baligh Uddin | 6a41dd4 | 2020-11-04 04:21:14 +0000 | [diff] [blame] | 51 | "cts-tradefed", |
| 52 | "tradefed", |
| 53 | ], |
Taras Antoshchuk | d9ba749 | 2022-01-07 18:48:25 +0000 | [diff] [blame] | 54 | static_libs: [ |
| 55 | "modules-utils-build-testing", |
| 56 | ], |
Baligh Uddin | 6a41dd4 | 2020-11-04 04:21:14 +0000 | [diff] [blame] | 57 | // Tag this module as a cts test artifact |
| 58 | test_suites: [ |
| 59 | "cts", |
| 60 | "general-tests", |
Ken Chen | c2cbf84 | 2023-12-25 04:01:43 +0000 | [diff] [blame] | 61 | "mcts-tethering", |
| 62 | "mts-tethering", |
Aditya Choudhary | 01b5ede | 2024-01-31 11:08:57 +0000 | [diff] [blame] | 63 | "sts", |
Baligh Uddin | 6a41dd4 | 2020-11-04 04:21:14 +0000 | [diff] [blame] | 64 | ], |
yangbill | c1b8af2 | 2022-04-06 17:29:37 +0800 | [diff] [blame] | 65 | data: [ |
| 66 | ":CtsHostsideNetworkTestsApp", |
| 67 | ":CtsHostsideNetworkTestsApp2", |
Yuyang Huang | 96e8bfe | 2023-01-27 17:05:07 +0900 | [diff] [blame] | 68 | ":CtsHostsideNetworkCapTestsAppWithoutProperty", |
| 69 | ":CtsHostsideNetworkCapTestsAppWithProperty", |
| 70 | ":CtsHostsideNetworkCapTestsAppSdk33", |
Yuyang Huang | 626b350 | 2023-02-20 18:40:36 +0900 | [diff] [blame] | 71 | ] + next_app_data, |
yangbill | c1b8af2 | 2022-04-06 17:29:37 +0800 | [diff] [blame] | 72 | per_testcase_directory: true, |
Baligh Uddin | 6a41dd4 | 2020-11-04 04:21:14 +0000 | [diff] [blame] | 73 | } |