blob: 4284f56a9101e0b5da56e544bd182047b4e765cd [file] [log] [blame]
Baligh Uddin6a41dd42020-11-04 04:21:14 +00001// Copyright (C) 2019 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 {
16 default_applicable_licenses: ["Android-Apache-2.0"],
17}
18
markchien7193a1b2021-04-27 01:50:31 +080019java_defaults {
20 name: "CtsTetheringTestDefaults",
Baligh Uddin6a41dd42020-11-04 04:21:14 +000021 defaults: ["cts_defaults"],
22
23 libs: [
24 "android.test.base",
25 ],
26
27 srcs: [
28 "src/**/*.java",
29 ],
30
31 static_libs: [
32 "TetheringCommonTests",
Baligh Uddin6a41dd42020-11-04 04:21:14 +000033 "compatibility-device-util-axt",
34 "cts-net-utils",
35 "net-tests-utils",
36 "ctstestrunner-axt",
37 "junit",
38 "junit-params",
39 ],
40
41 jni_libs: [
42 // For mockito extended
43 "libdexmakerjvmtiagent",
44 "libstaticjvmtiagent",
45 ],
46
47 // Change to system current when TetheringManager move to bootclass path.
48 platform_apis: true,
Mark Chien9bfe8572023-03-14 05:54:08 +000049 host_required: ["net-tests-utils-host-common"],
markchien7193a1b2021-04-27 01:50:31 +080050}
51
52// Tethering CTS tests that target the latest released SDK. These tests can be installed on release
53// devices which has equal or lowner sdk version than target sdk and are useful for qualifying
54// mainline modules on release devices.
55android_test {
56 name: "CtsTetheringTestLatestSdk",
Lorenzo Colitticc5054b2022-07-22 12:37:17 +090057 defaults: [
58 "ConnectivityTestsLatestSdkDefaults",
59 "CtsTetheringTestDefaults",
60 ],
markchien7193a1b2021-04-27 01:50:31 +080061
62 min_sdk_version: "30",
markchien7193a1b2021-04-27 01:50:31 +080063
64 static_libs: [
65 "TetheringIntegrationTestsLatestSdkLib",
66 ],
67
68 test_suites: [
69 "general-tests",
70 "mts-tethering",
71 ],
72
73 test_config_template: "AndroidTestTemplate.xml",
74
75 // Include both the 32 and 64 bit versions
76 compile_multilib: "both",
Remi NGUYEN VAN0015f042021-07-27 14:30:14 +090077 jarjar_rules: ":NetworkStackJarJarRules",
markchien7193a1b2021-04-27 01:50:31 +080078}
79
80// Tethering CTS tests for development and release. These tests always target the platform SDK
81// version, and are subject to all the restrictions appropriate to that version. Before SDK
82// finalization, these tests have a min_sdk_version of 10000, and cannot be installed on release
83// devices.
84android_test {
85 name: "CtsTetheringTest",
86 defaults: ["CtsTetheringTestDefaults"],
87
88 static_libs: [
89 "TetheringIntegrationTestsLib",
90 ],
Baligh Uddin6a41dd42020-11-04 04:21:14 +000091
92 // Tag this module as a cts test artifact
93 test_suites: [
94 "cts",
95 "general-tests",
Baligh Uddin6a41dd42020-11-04 04:21:14 +000096 ],
97
markchien7193a1b2021-04-27 01:50:31 +080098 test_config_template: "AndroidTestTemplate.xml",
99
Baligh Uddin6a41dd42020-11-04 04:21:14 +0000100 // Include both the 32 and 64 bit versions
101 compile_multilib: "both",
Remi NGUYEN VAN0015f042021-07-27 14:30:14 +0900102 jarjar_rules: ":NetworkStackJarJarRules",
Baligh Uddin6a41dd42020-11-04 04:21:14 +0000103}