blob: 528171a0366e13cae1ba6288b6c85d573b9aa6b7 [file] [log] [blame]
Luke Huang971b7952019-04-24 21:27:40 -07001// 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
Lorenzo Colittia32d4552020-02-06 22:37:07 +090015java_defaults {
16 name: "CtsNetTestCasesDefaults",
Luke Huang971b7952019-04-24 21:27:40 -070017 defaults: ["cts_defaults"],
18
19 // Include both the 32 and 64 bit versions
20 compile_multilib: "both",
21
22 libs: [
23 "voip-common",
Jiyong Park616e2992020-05-19 21:12:39 +090024 "android.test.base",
Luke Huang971b7952019-04-24 21:27:40 -070025 ],
26
27 jni_libs: [
28 "libcts_jni",
29 "libnativedns_jni",
30 "libnativemultinetwork_jni",
31 "libnativehelper_compat_libc++",
32 ],
33
Luke Huang971b7952019-04-24 21:27:40 -070034 srcs: [
35 "src/**/*.java",
36 "src/**/*.kt",
37 ],
Luke Huang1eebfa32020-06-20 11:49:40 +080038 jarjar_rules: "jarjar-rules-shared.txt",
Luke Huang971b7952019-04-24 21:27:40 -070039 static_libs: [
40 "FrameworksNetCommonTests",
Remi NGUYEN VANbe872652020-05-12 18:07:17 +090041 "TestNetworkStackLib",
Luke Huang1eebfa32020-06-20 11:49:40 +080042 "core-tests-support",
paulhu3cdc25c2019-05-23 19:16:47 +080043 "cts-net-utils",
Luke Huang971b7952019-04-24 21:27:40 -070044 "ctstestrunner-axt",
Luke Huang971b7952019-04-24 21:27:40 -070045 "junit",
46 "junit-params",
Luke Huang1eebfa32020-06-20 11:49:40 +080047 "net-utils-framework-common",
Luke Huang971b7952019-04-24 21:27:40 -070048 "truth-prebuilt",
49 ],
50
51 // uncomment when b/13249961 is fixed
52 // sdk_version: "current",
53 platform_apis: true,
Lorenzo Colittia32d4552020-02-06 22:37:07 +090054}
Luke Huang971b7952019-04-24 21:27:40 -070055
Lorenzo Colittia32d4552020-02-06 22:37:07 +090056// 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"],
Luke Huang971b7952019-04-24 21:27:40 -070063 test_suites: [
64 "cts",
Luke Huang971b7952019-04-24 21:27:40 -070065 "general-tests",
Lorenzo Colittia32d4552020-02-06 22:37:07 +090066 ],
67 test_config_template: "AndroidTestTemplate.xml",
68}
69
Lorenzo Colitti53430122020-06-13 00:47:44 +090070// 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.
Lorenzo Colittia32d4552020-02-06 22:37:07 +090073android_test {
74 name: "CtsNetTestCasesLatestSdk",
75 defaults: ["CtsNetTestCasesDefaults"],
Ken Chen5dd02e32020-05-18 19:55:29 +080076 jni_uses_sdk_apis: true,
Lorenzo Colittia32d4552020-02-06 22:37:07 +090077 min_sdk_version: "29",
Lorenzo Colitti53430122020-06-13 00:47:44 +090078 target_sdk_version: "30",
Lorenzo Colittia32d4552020-02-06 22:37:07 +090079 test_suites: [
easoncyleea1b13d62020-06-12 14:14:14 +080080 "general-tests",
Chen Zhuc3bd8342019-08-16 16:33:04 -070081 "mts",
Luke Huang971b7952019-04-24 21:27:40 -070082 ],
Lorenzo Colittia32d4552020-02-06 22:37:07 +090083 test_config_template: "AndroidTestTemplate.xml",
Luke Huang971b7952019-04-24 21:27:40 -070084}