blob: 9dad96908cdde7af148ddd168f7c1f3165cd0a69 [file] [log] [blame]
Dan Willemsen59e086f2016-07-25 17:13:45 -07001//
2// Copyright (C) 2014 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
16
Chih-Hung Hsiehd1acbbc2017-10-05 13:38:28 -070017cc_defaults {
18 name: "binder_test_defaults",
19 cflags: [
20 "-Wall",
21 "-Werror",
Chih-Hung Hsiehd1acbbc2017-10-05 13:38:28 -070022 ],
23}
24
Dan Willemsen59e086f2016-07-25 17:13:45 -070025cc_test {
Hsin-Yi Chen69295752017-06-07 18:05:05 +080026 name: "binderDriverInterfaceTest_IPC_32",
Chih-Hung Hsiehd1acbbc2017-10-05 13:38:28 -070027 defaults: ["binder_test_defaults"],
Steven Morelandc7a30c82019-07-10 13:12:23 -070028 srcs: ["binderDriverInterfaceTest.cpp"],
Hsin-Yi Chen69295752017-06-07 18:05:05 +080029 compile_multilib: "32",
30 cflags: ["-DBINDER_IPC_32BIT=1"],
31}
32
33cc_test {
Steven Morelandc7a30c82019-07-10 13:12:23 -070034 name: "binderDriverInterfaceTest",
35 defaults: ["binder_test_defaults"],
Dan Willemsen59e086f2016-07-25 17:13:45 -070036 product_variables: {
37 binder32bit: {
38 cflags: ["-DBINDER_IPC_32BIT=1"],
39 },
40 },
41
Dan Willemsen59e086f2016-07-25 17:13:45 -070042 srcs: ["binderDriverInterfaceTest.cpp"],
Dan Shieb25b672020-03-26 11:43:04 -070043 test_suites: ["device-tests", "vts"],
Dan Willemsen59e086f2016-07-25 17:13:45 -070044}
45
46cc_test {
Hsin-Yi Chenec18c022017-07-06 11:40:20 +080047 name: "binderLibTest_IPC_32",
Chih-Hung Hsiehd1acbbc2017-10-05 13:38:28 -070048 defaults: ["binder_test_defaults"],
Steven Morelandc7a30c82019-07-10 13:12:23 -070049 srcs: ["binderLibTest.cpp"],
Hsin-Yi Chenec18c022017-07-06 11:40:20 +080050 shared_libs: [
51 "libbinder",
52 "libutils",
53 ],
54 compile_multilib: "32",
55 cflags: ["-DBINDER_IPC_32BIT=1"],
56}
57
58cc_test {
Steven Morelandc7a30c82019-07-10 13:12:23 -070059 name: "binderLibTest",
60 defaults: ["binder_test_defaults"],
Hsin-Yi Chenec18c022017-07-06 11:40:20 +080061 product_variables: {
62 binder32bit: {
63 cflags: ["-DBINDER_IPC_32BIT=1"],
64 },
65 },
66
Dan Willemsen59e086f2016-07-25 17:13:45 -070067 srcs: ["binderLibTest.cpp"],
68 shared_libs: [
69 "libbinder",
70 "libutils",
71 ],
Dan Shieb25b672020-03-26 11:43:04 -070072 test_suites: ["device-tests", "vts"],
Dan Shi80ada592019-09-13 09:17:17 -070073 require_root: true,
Dan Willemsen59e086f2016-07-25 17:13:45 -070074}
75
76cc_test {
77 name: "binderThroughputTest",
Chih-Hung Hsiehd1acbbc2017-10-05 13:38:28 -070078 defaults: ["binder_test_defaults"],
Steven Morelandc7a30c82019-07-10 13:12:23 -070079 srcs: ["binderThroughputTest.cpp"],
Dan Willemsen59e086f2016-07-25 17:13:45 -070080 shared_libs: [
81 "libbinder",
82 "libutils",
83 ],
84 clang: true,
85 cflags: [
86 "-g",
Dan Willemsen59e086f2016-07-25 17:13:45 -070087 "-Wno-missing-field-initializers",
88 "-Wno-sign-compare",
89 "-O3",
90 ],
91}
Wei Wang78f2a372016-10-20 23:18:17 -070092
93cc_test {
94 name: "binderTextOutputTest",
Chih-Hung Hsiehd1acbbc2017-10-05 13:38:28 -070095 defaults: ["binder_test_defaults"],
Steven Morelandc7a30c82019-07-10 13:12:23 -070096 srcs: ["binderTextOutputTest.cpp"],
Wei Wang78f2a372016-10-20 23:18:17 -070097 shared_libs: [
98 "libbinder",
99 "libutils",
100 "libbase",
101 ],
Steven Moreland67812c22019-07-10 13:50:40 -0700102 test_suites: ["device-tests"],
Wei Wang78f2a372016-10-20 23:18:17 -0700103}
Howard Chenc135dbc2017-03-25 17:12:59 +0800104
105cc_test {
106 name: "schd-dbg",
Chih-Hung Hsiehd1acbbc2017-10-05 13:38:28 -0700107 defaults: ["binder_test_defaults"],
Steven Morelandc7a30c82019-07-10 13:12:23 -0700108 srcs: ["schd-dbg.cpp"],
Howard Chenc135dbc2017-03-25 17:12:59 +0800109 shared_libs: [
110 "libbinder",
111 "libutils",
112 "libbase",
113 ],
114}
Dan Stozad630e522016-12-01 15:16:31 -0800115
116cc_test {
117 name: "binderSafeInterfaceTest",
Chih-Hung Hsiehd1acbbc2017-10-05 13:38:28 -0700118 defaults: ["binder_test_defaults"],
Steven Morelandc7a30c82019-07-10 13:12:23 -0700119 srcs: ["binderSafeInterfaceTest.cpp"],
Dan Stozad630e522016-12-01 15:16:31 -0800120
121 cppflags: [
Colin Cross1383d9f2019-11-06 13:33:40 -0800122 "-Wextra",
Dan Stozad630e522016-12-01 15:16:31 -0800123 ],
124
125 cpp_std: "experimental",
126 gnu_extensions: false,
127
128 shared_libs: [
129 "libbinder",
Dan Stoza2537db72017-04-07 16:32:38 -0700130 "libcutils",
Dan Stozad630e522016-12-01 15:16:31 -0800131 "liblog",
132 "libutils",
133 ],
Dan Shieb25b672020-03-26 11:43:04 -0700134 test_suites: ["device-tests", "vts"],
Dan Shi80ada592019-09-13 09:17:17 -0700135 require_root: true,
Dan Stozad630e522016-12-01 15:16:31 -0800136}
Steven Morelanddea3cf92019-07-16 18:06:55 -0700137
Steven Moreland12300a02019-08-02 13:27:15 -0700138aidl_interface {
139 name: "binderStabilityTestIface",
Jiyong Park701fa1a2020-04-13 12:55:44 +0900140 unstable: true,
Steven Moreland12300a02019-08-02 13:27:15 -0700141 srcs: [
142 "IBinderStabilityTest.aidl",
Steven Moreland12300a02019-08-02 13:27:15 -0700143 ],
144}
145
Steven Morelanddea3cf92019-07-16 18:06:55 -0700146cc_test {
147 name: "binderStabilityTest",
148 defaults: ["binder_test_defaults"],
149 srcs: [
150 "binderStabilityTest.cpp",
Steven Morelanddea3cf92019-07-16 18:06:55 -0700151 ],
152
153 shared_libs: [
Steven Moreland12300a02019-08-02 13:27:15 -0700154 "libbinder_ndk",
Steven Morelanddea3cf92019-07-16 18:06:55 -0700155 "libbinder",
Steven Moreland12300a02019-08-02 13:27:15 -0700156 "liblog",
Steven Morelanddea3cf92019-07-16 18:06:55 -0700157 "libutils",
158 ],
Steven Moreland12300a02019-08-02 13:27:15 -0700159 static_libs: [
160 "binderStabilityTestIface-cpp",
161 "binderStabilityTestIface-ndk_platform",
162 ],
163
Steven Morelanddea3cf92019-07-16 18:06:55 -0700164 test_suites: ["device-tests"],
Dan Shi302709b2019-09-19 15:28:15 -0700165 require_root: true,
Steven Morelanddea3cf92019-07-16 18:06:55 -0700166}
Steven Moreland042ae822020-05-27 17:45:17 +0000167
168cc_test {
169 name: "binderAllocationLimits",
170 defaults: ["binder_test_defaults"],
171 srcs: ["binderAllocationLimits.cpp"],
172 shared_libs: [
173 "libbinder",
174 "liblog",
175 "libutils",
176 "libutilscallstack",
177 "libbase",
178 ],
179 test_suites: ["device-tests"],
180 require_root: true,
181}