blob: 528171a0366e13cae1ba6288b6c85d573b9aa6b7 [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
15java_defaults {
16 name: "CtsNetTestCasesDefaults",
17 defaults: ["cts_defaults"],
18
19 // Include both the 32 and 64 bit versions
20 compile_multilib: "both",
21
22 libs: [
23 "voip-common",
24 "android.test.base",
25 ],
26
27 jni_libs: [
28 "libcts_jni",
29 "libnativedns_jni",
30 "libnativemultinetwork_jni",
31 "libnativehelper_compat_libc++",
32 ],
33
34 srcs: [
35 "src/**/*.java",
36 "src/**/*.kt",
37 ],
38 jarjar_rules: "jarjar-rules-shared.txt",
39 static_libs: [
40 "FrameworksNetCommonTests",
41 "TestNetworkStackLib",
42 "core-tests-support",
43 "cts-net-utils",
44 "ctstestrunner-axt",
45 "junit",
46 "junit-params",
47 "net-utils-framework-common",
48 "truth-prebuilt",
49 ],
50
51 // uncomment when b/13249961 is fixed
52 // sdk_version: "current",
53 platform_apis: true,
54}
55
56// Networking CTS tests for development and release. These tests always target the platform SDK
57// version, and are subject to all the restrictions appropriate to that version. Before SDK
58// finalization, these tests have a min_sdk_version of 10000, and cannot be installed on release
59// devices.
60android_test {
61 name: "CtsNetTestCases",
62 defaults: ["CtsNetTestCasesDefaults"],
63 test_suites: [
64 "cts",
65 "general-tests",
66 ],
67 test_config_template: "AndroidTestTemplate.xml",
68}
69
70// Networking CTS tests that target the latest released SDK. These tests can be installed on release
71// devices at any point in the Android release cycle and are useful for qualifying mainline modules
72// on release devices.
73android_test {
74 name: "CtsNetTestCasesLatestSdk",
75 defaults: ["CtsNetTestCasesDefaults"],
76 jni_uses_sdk_apis: true,
77 min_sdk_version: "29",
78 target_sdk_version: "30",
79 test_suites: [
80 "general-tests",
81 "mts",
82 ],
83 test_config_template: "AndroidTestTemplate.xml",
84}