Baligh Uddin | 6a41dd4 | 2020-11-04 04:21:14 +0000 | [diff] [blame] | 1 | // Copyright (C) 2008 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 | |
Baligh Uddin | 6a41dd4 | 2020-11-04 04:21:14 +0000 | [diff] [blame] | 19 | java_defaults { |
| 20 | name: "CtsNetTestCasesDefaults", |
Remi NGUYEN VAN | eeeed13 | 2021-03-30 08:12:27 +0000 | [diff] [blame] | 21 | defaults: [ |
| 22 | "cts_defaults", |
| 23 | "framework-connectivity-test-defaults", |
| 24 | ], |
Baligh Uddin | 6a41dd4 | 2020-11-04 04:21:14 +0000 | [diff] [blame] | 25 | |
| 26 | // Include both the 32 and 64 bit versions |
| 27 | compile_multilib: "both", |
| 28 | |
| 29 | libs: [ |
| 30 | "voip-common", |
| 31 | "android.test.base", |
| 32 | ], |
| 33 | |
| 34 | jni_libs: [ |
| 35 | "libcts_jni", |
| 36 | "libnativedns_jni", |
| 37 | "libnativemultinetwork_jni", |
| 38 | "libnativehelper_compat_libc++", |
| 39 | ], |
| 40 | |
| 41 | srcs: [ |
| 42 | "src/**/*.java", |
| 43 | "src/**/*.kt", |
Yan Yan | df24620 | 2020-08-11 17:45:58 -0700 | [diff] [blame] | 44 | ":ike-aes-xcbc", |
Baligh Uddin | 6a41dd4 | 2020-11-04 04:21:14 +0000 | [diff] [blame] | 45 | ], |
| 46 | jarjar_rules: "jarjar-rules-shared.txt", |
| 47 | static_libs: [ |
Daulet Zhanguzin | bb54013 | 2021-02-24 12:58:21 +0000 | [diff] [blame] | 48 | "bouncycastle-unbundled", |
Baligh Uddin | 6a41dd4 | 2020-11-04 04:21:14 +0000 | [diff] [blame] | 49 | "FrameworksNetCommonTests", |
Baligh Uddin | 6a41dd4 | 2020-11-04 04:21:14 +0000 | [diff] [blame] | 50 | "core-tests-support", |
| 51 | "cts-net-utils", |
William Escande | 02fc794 | 2022-01-20 17:52:03 +0100 | [diff] [blame^] | 52 | "CtsNetTestsNonUpdatableLib", |
Baligh Uddin | 6a41dd4 | 2020-11-04 04:21:14 +0000 | [diff] [blame] | 53 | "ctstestrunner-axt", |
| 54 | "junit", |
| 55 | "junit-params", |
Lorenzo Colitti | 2be434a | 2021-02-24 10:51:11 +0900 | [diff] [blame] | 56 | "modules-utils-build", |
Baligh Uddin | 6a41dd4 | 2020-11-04 04:21:14 +0000 | [diff] [blame] | 57 | "net-utils-framework-common", |
| 58 | "truth-prebuilt", |
| 59 | ], |
| 60 | |
| 61 | // uncomment when b/13249961 is fixed |
| 62 | // sdk_version: "current", |
| 63 | platform_apis: true, |
Remi NGUYEN VAN | 9c358cd | 2021-10-04 19:50:32 +0900 | [diff] [blame] | 64 | required: ["ConnectivityChecker"], |
Baligh Uddin | 6a41dd4 | 2020-11-04 04:21:14 +0000 | [diff] [blame] | 65 | } |
| 66 | |
| 67 | // Networking CTS tests for development and release. These tests always target the platform SDK |
| 68 | // version, and are subject to all the restrictions appropriate to that version. Before SDK |
| 69 | // finalization, these tests have a min_sdk_version of 10000, and cannot be installed on release |
| 70 | // devices. |
| 71 | android_test { |
| 72 | name: "CtsNetTestCases", |
Taras Antoshchuk | bc3f86d | 2021-11-15 17:40:42 +0100 | [diff] [blame] | 73 | defaults: ["CtsNetTestCasesDefaults", "NetworkStackNextEnableDefaults"], |
Lorenzo Colitti | 8060dfe | 2021-03-01 15:13:09 +0900 | [diff] [blame] | 74 | // TODO: CTS should not depend on the entirety of the networkstack code. |
| 75 | static_libs: [ |
| 76 | "NetworkStackApiCurrentLib", |
| 77 | ], |
Baligh Uddin | 6a41dd4 | 2020-11-04 04:21:14 +0000 | [diff] [blame] | 78 | test_suites: [ |
| 79 | "cts", |
| 80 | "general-tests", |
| 81 | ], |
| 82 | test_config_template: "AndroidTestTemplate.xml", |
| 83 | } |
| 84 | |
| 85 | // Networking CTS tests that target the latest released SDK. These tests can be installed on release |
| 86 | // devices at any point in the Android release cycle and are useful for qualifying mainline modules |
| 87 | // on release devices. |
| 88 | android_test { |
| 89 | name: "CtsNetTestCasesLatestSdk", |
| 90 | defaults: ["CtsNetTestCasesDefaults"], |
Lorenzo Colitti | 8060dfe | 2021-03-01 15:13:09 +0900 | [diff] [blame] | 91 | // TODO: CTS should not depend on the entirety of the networkstack code. |
| 92 | static_libs: [ |
| 93 | "NetworkStackApiStableLib", |
| 94 | ], |
Baligh Uddin | 6a41dd4 | 2020-11-04 04:21:14 +0000 | [diff] [blame] | 95 | jni_uses_sdk_apis: true, |
| 96 | min_sdk_version: "29", |
| 97 | target_sdk_version: "30", |
| 98 | test_suites: [ |
| 99 | "general-tests", |
Kimberly Kreider | 6413dd8 | 2020-12-15 10:59:55 -0800 | [diff] [blame] | 100 | "mts-dnsresolver", |
| 101 | "mts-networking", |
| 102 | "mts-tethering", |
| 103 | "mts-wifi", |
Baligh Uddin | 6a41dd4 | 2020-11-04 04:21:14 +0000 | [diff] [blame] | 104 | ], |
| 105 | test_config_template: "AndroidTestTemplate.xml", |
| 106 | } |