blob: 3b69602638332d6e5fdd55242285876833f452d5 [file] [log] [blame]
Baligh Uddin4cf61e42020-11-04 04:17:54 +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 "vts10",
66 "general-tests",
67 ],
68 test_config_template: "AndroidTestTemplate.xml",
69}
70
71// Networking CTS tests that target the latest released SDK. These tests can be installed on release
72// devices at any point in the Android release cycle and are useful for qualifying mainline modules
73// on release devices.
74android_test {
75 name: "CtsNetTestCasesLatestSdk",
76 defaults: ["CtsNetTestCasesDefaults"],
77 jni_uses_sdk_apis: true,
78 min_sdk_version: "29",
79 target_sdk_version: "30",
80 test_suites: [
81 "general-tests",
82 "mts",
83 ],
84 test_config_template: "AndroidTestTemplate.xml",
85}