blob: e28c33ff0a7b3e10755fb88d73215821d26d2735 [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",
21 defaults: ["cts_defaults"],
22
23 // Include both the 32 and 64 bit versions
24 compile_multilib: "both",
25
26 libs: [
27 "voip-common",
28 "android.test.base",
29 ],
30
31 jni_libs: [
32 "libcts_jni",
33 "libnativedns_jni",
34 "libnativemultinetwork_jni",
35 "libnativehelper_compat_libc++",
36 ],
37
38 srcs: [
39 "src/**/*.java",
40 "src/**/*.kt",
Yan Yandf246202020-08-11 17:45:58 -070041 ":ike-aes-xcbc",
Baligh Uddin6a41dd42020-11-04 04:21:14 +000042 ],
43 jarjar_rules: "jarjar-rules-shared.txt",
44 static_libs: [
Daulet Zhanguzinbb540132021-02-24 12:58:21 +000045 "bouncycastle-unbundled",
Baligh Uddin6a41dd42020-11-04 04:21:14 +000046 "FrameworksNetCommonTests",
Baligh Uddin6a41dd42020-11-04 04:21:14 +000047 "core-tests-support",
48 "cts-net-utils",
49 "ctstestrunner-axt",
50 "junit",
51 "junit-params",
Lorenzo Colitti2be434a2021-02-24 10:51:11 +090052 "modules-utils-build",
Baligh Uddin6a41dd42020-11-04 04:21:14 +000053 "net-utils-framework-common",
54 "truth-prebuilt",
55 ],
56
57 // uncomment when b/13249961 is fixed
58 // sdk_version: "current",
59 platform_apis: true,
60}
61
62// Networking CTS tests for development and release. These tests always target the platform SDK
63// version, and are subject to all the restrictions appropriate to that version. Before SDK
64// finalization, these tests have a min_sdk_version of 10000, and cannot be installed on release
65// devices.
66android_test {
67 name: "CtsNetTestCases",
68 defaults: ["CtsNetTestCasesDefaults"],
Lorenzo Colitti8060dfe2021-03-01 15:13:09 +090069 // TODO: CTS should not depend on the entirety of the networkstack code.
70 static_libs: [
71 "NetworkStackApiCurrentLib",
72 ],
Baligh Uddin6a41dd42020-11-04 04:21:14 +000073 test_suites: [
74 "cts",
75 "general-tests",
76 ],
77 test_config_template: "AndroidTestTemplate.xml",
78}
79
80// Networking CTS tests that target the latest released SDK. These tests can be installed on release
81// devices at any point in the Android release cycle and are useful for qualifying mainline modules
82// on release devices.
83android_test {
84 name: "CtsNetTestCasesLatestSdk",
85 defaults: ["CtsNetTestCasesDefaults"],
Lorenzo Colitti8060dfe2021-03-01 15:13:09 +090086 // TODO: CTS should not depend on the entirety of the networkstack code.
87 static_libs: [
88 "NetworkStackApiStableLib",
89 ],
Baligh Uddin6a41dd42020-11-04 04:21:14 +000090 jni_uses_sdk_apis: true,
91 min_sdk_version: "29",
92 target_sdk_version: "30",
93 test_suites: [
94 "general-tests",
Kimberly Kreider6413dd82020-12-15 10:59:55 -080095 "mts-dnsresolver",
96 "mts-networking",
97 "mts-tethering",
98 "mts-wifi",
Baligh Uddin6a41dd42020-11-04 04:21:14 +000099 ],
100 test_config_template: "AndroidTestTemplate.xml",
101}