Baligh Uddin | 6a41dd4 | 2020-11-04 04:21:14 +0000 | [diff] [blame] | 1 | // 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 Badour | 97e6be2 | 2021-02-12 14:45:04 -0800 | [diff] [blame] | 15 | package { |
| 16 | default_applicable_licenses: ["Android-Apache-2.0"], |
| 17 | } |
| 18 | |
markchien | 7193a1b | 2021-04-27 01:50:31 +0800 | [diff] [blame] | 19 | java_defaults { |
| 20 | name: "CtsTetheringTestDefaults", |
Baligh Uddin | 6a41dd4 | 2020-11-04 04:21:14 +0000 | [diff] [blame] | 21 | 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 Uddin | 6a41dd4 | 2020-11-04 04:21:14 +0000 | [diff] [blame] | 33 | "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, |
markchien | 7193a1b | 2021-04-27 01:50:31 +0800 | [diff] [blame] | 49 | } |
| 50 | |
| 51 | // Tethering CTS tests that target the latest released SDK. These tests can be installed on release |
| 52 | // devices which has equal or lowner sdk version than target sdk and are useful for qualifying |
| 53 | // mainline modules on release devices. |
| 54 | android_test { |
| 55 | name: "CtsTetheringTestLatestSdk", |
| 56 | defaults: ["CtsTetheringTestDefaults"], |
| 57 | |
| 58 | min_sdk_version: "30", |
Mark Chien | eeeae62 | 2022-05-19 01:01:26 +0800 | [diff] [blame] | 59 | target_sdk_version: "33", |
markchien | 7193a1b | 2021-04-27 01:50:31 +0800 | [diff] [blame] | 60 | |
| 61 | static_libs: [ |
| 62 | "TetheringIntegrationTestsLatestSdkLib", |
| 63 | ], |
| 64 | |
| 65 | test_suites: [ |
| 66 | "general-tests", |
| 67 | "mts-tethering", |
| 68 | ], |
| 69 | |
| 70 | test_config_template: "AndroidTestTemplate.xml", |
| 71 | |
| 72 | // Include both the 32 and 64 bit versions |
| 73 | compile_multilib: "both", |
Remi NGUYEN VAN | 0015f04 | 2021-07-27 14:30:14 +0900 | [diff] [blame] | 74 | jarjar_rules: ":NetworkStackJarJarRules", |
markchien | 7193a1b | 2021-04-27 01:50:31 +0800 | [diff] [blame] | 75 | } |
| 76 | |
| 77 | // Tethering CTS tests for development and release. These tests always target the platform SDK |
| 78 | // version, and are subject to all the restrictions appropriate to that version. Before SDK |
| 79 | // finalization, these tests have a min_sdk_version of 10000, and cannot be installed on release |
| 80 | // devices. |
| 81 | android_test { |
| 82 | name: "CtsTetheringTest", |
| 83 | defaults: ["CtsTetheringTestDefaults"], |
| 84 | |
| 85 | static_libs: [ |
| 86 | "TetheringIntegrationTestsLib", |
| 87 | ], |
Baligh Uddin | 6a41dd4 | 2020-11-04 04:21:14 +0000 | [diff] [blame] | 88 | |
| 89 | // Tag this module as a cts test artifact |
| 90 | test_suites: [ |
| 91 | "cts", |
| 92 | "general-tests", |
Baligh Uddin | 6a41dd4 | 2020-11-04 04:21:14 +0000 | [diff] [blame] | 93 | ], |
| 94 | |
markchien | 7193a1b | 2021-04-27 01:50:31 +0800 | [diff] [blame] | 95 | test_config_template: "AndroidTestTemplate.xml", |
| 96 | |
Baligh Uddin | 6a41dd4 | 2020-11-04 04:21:14 +0000 | [diff] [blame] | 97 | // Include both the 32 and 64 bit versions |
| 98 | compile_multilib: "both", |
Remi NGUYEN VAN | 0015f04 | 2021-07-27 14:30:14 +0900 | [diff] [blame] | 99 | jarjar_rules: ":NetworkStackJarJarRules", |
Baligh Uddin | 6a41dd4 | 2020-11-04 04:21:14 +0000 | [diff] [blame] | 100 | } |