blob: 25596a907cd1d65fd6e446f27fa4a453a09f54cb [file] [log] [blame]
Baligh Uddin6a41dd42020-11-04 04:21:14 +00001// 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 Badour97e6be22021-02-12 14:45:04 -080015package {
16 default_applicable_licenses: ["Android-Apache-2.0"],
17}
18
Baligh Uddin6a41dd42020-11-04 04:21:14 +000019java_defaults {
20 name: "CtsNetTestCasesDefaults",
Remi NGUYEN VANeeeed132021-03-30 08:12:27 +000021 defaults: [
22 "cts_defaults",
23 "framework-connectivity-test-defaults",
24 ],
Baligh Uddin6a41dd42020-11-04 04:21:14 +000025
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",
44 ],
45 jarjar_rules: "jarjar-rules-shared.txt",
46 static_libs: [
Daulet Zhanguzinbb540132021-02-24 12:58:21 +000047 "bouncycastle-unbundled",
Baligh Uddin6a41dd42020-11-04 04:21:14 +000048 "FrameworksNetCommonTests",
Baligh Uddin6a41dd42020-11-04 04:21:14 +000049 "core-tests-support",
50 "cts-net-utils",
51 "ctstestrunner-axt",
52 "junit",
53 "junit-params",
Lorenzo Colitti2be434a2021-02-24 10:51:11 +090054 "modules-utils-build",
Baligh Uddin6a41dd42020-11-04 04:21:14 +000055 "net-utils-framework-common",
56 "truth-prebuilt",
57 ],
58
59 // uncomment when b/13249961 is fixed
60 // sdk_version: "current",
61 platform_apis: true,
62}
63
64// Networking CTS tests for development and release. These tests always target the platform SDK
65// version, and are subject to all the restrictions appropriate to that version. Before SDK
66// finalization, these tests have a min_sdk_version of 10000, and cannot be installed on release
67// devices.
68android_test {
69 name: "CtsNetTestCases",
70 defaults: ["CtsNetTestCasesDefaults"],
Lorenzo Colitti8060dfe2021-03-01 15:13:09 +090071 // TODO: CTS should not depend on the entirety of the networkstack code.
72 static_libs: [
73 "NetworkStackApiCurrentLib",
74 ],
Baligh Uddin6a41dd42020-11-04 04:21:14 +000075 test_suites: [
76 "cts",
77 "general-tests",
78 ],
79 test_config_template: "AndroidTestTemplate.xml",
80}
81
82// Networking CTS tests that target the latest released SDK. These tests can be installed on release
83// devices at any point in the Android release cycle and are useful for qualifying mainline modules
84// on release devices.
85android_test {
86 name: "CtsNetTestCasesLatestSdk",
87 defaults: ["CtsNetTestCasesDefaults"],
Lorenzo Colitti8060dfe2021-03-01 15:13:09 +090088 // TODO: CTS should not depend on the entirety of the networkstack code.
89 static_libs: [
90 "NetworkStackApiStableLib",
91 ],
Baligh Uddin6a41dd42020-11-04 04:21:14 +000092 jni_uses_sdk_apis: true,
93 min_sdk_version: "29",
94 target_sdk_version: "30",
95 test_suites: [
96 "general-tests",
Kimberly Kreider6413dd82020-12-15 10:59:55 -080097 "mts-dnsresolver",
98 "mts-networking",
99 "mts-tethering",
100 "mts-wifi",
Baligh Uddin6a41dd42020-11-04 04:21:14 +0000101 ],
102 test_config_template: "AndroidTestTemplate.xml",
103}