blob: 05db81e7b0193e7a555743f1fd66452d7180b25a [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"],
Steven Moreland67812c22019-07-10 13:50:40 -070043 test_suites: ["device-tests"],
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 Shie4423a32019-07-16 10:13:38 -070072 test_suites: ["device-tests"],
Dan Willemsen59e086f2016-07-25 17:13:45 -070073}
74
75cc_test {
76 name: "binderThroughputTest",
Chih-Hung Hsiehd1acbbc2017-10-05 13:38:28 -070077 defaults: ["binder_test_defaults"],
Steven Morelandc7a30c82019-07-10 13:12:23 -070078 srcs: ["binderThroughputTest.cpp"],
Dan Willemsen59e086f2016-07-25 17:13:45 -070079 shared_libs: [
80 "libbinder",
81 "libutils",
82 ],
83 clang: true,
84 cflags: [
85 "-g",
Dan Willemsen59e086f2016-07-25 17:13:45 -070086 "-Wno-missing-field-initializers",
87 "-Wno-sign-compare",
88 "-O3",
89 ],
90}
Wei Wang78f2a372016-10-20 23:18:17 -070091
92cc_test {
93 name: "binderTextOutputTest",
Chih-Hung Hsiehd1acbbc2017-10-05 13:38:28 -070094 defaults: ["binder_test_defaults"],
Steven Morelandc7a30c82019-07-10 13:12:23 -070095 srcs: ["binderTextOutputTest.cpp"],
Wei Wang78f2a372016-10-20 23:18:17 -070096 shared_libs: [
97 "libbinder",
98 "libutils",
99 "libbase",
100 ],
Steven Moreland67812c22019-07-10 13:50:40 -0700101 test_suites: ["device-tests"],
Wei Wang78f2a372016-10-20 23:18:17 -0700102}
Howard Chenc135dbc2017-03-25 17:12:59 +0800103
104cc_test {
105 name: "schd-dbg",
Chih-Hung Hsiehd1acbbc2017-10-05 13:38:28 -0700106 defaults: ["binder_test_defaults"],
Steven Morelandc7a30c82019-07-10 13:12:23 -0700107 srcs: ["schd-dbg.cpp"],
Howard Chenc135dbc2017-03-25 17:12:59 +0800108 shared_libs: [
109 "libbinder",
110 "libutils",
111 "libbase",
112 ],
113}
Dan Stozad630e522016-12-01 15:16:31 -0800114
115cc_test {
116 name: "binderSafeInterfaceTest",
Chih-Hung Hsiehd1acbbc2017-10-05 13:38:28 -0700117 defaults: ["binder_test_defaults"],
Steven Morelandc7a30c82019-07-10 13:12:23 -0700118 srcs: ["binderSafeInterfaceTest.cpp"],
Dan Stozad630e522016-12-01 15:16:31 -0800119
120 cppflags: [
Dan Stozad630e522016-12-01 15:16:31 -0800121 "-Weverything",
122 "-Wno-c++98-compat",
123 "-Wno-c++98-compat-pedantic",
124 "-Wno-global-constructors",
125 "-Wno-padded",
126 "-Wno-weak-vtables",
127 ],
128
129 cpp_std: "experimental",
130 gnu_extensions: false,
131
132 shared_libs: [
133 "libbinder",
Dan Stoza2537db72017-04-07 16:32:38 -0700134 "libcutils",
Dan Stozad630e522016-12-01 15:16:31 -0800135 "liblog",
136 "libutils",
137 ],
Steven Morelande453b6c2019-07-16 10:55:14 -0700138 test_suites: ["device-tests"],
Dan Stozad630e522016-12-01 15:16:31 -0800139}
Steven Morelanddea3cf92019-07-16 18:06:55 -0700140
141cc_test {
142 name: "binderStabilityTest",
143 defaults: ["binder_test_defaults"],
144 srcs: [
145 "binderStabilityTest.cpp",
146 "IBinderStabilityTest.aidl",
147 ],
148
149 shared_libs: [
150 "libbinder",
151 "libutils",
152 ],
153 test_suites: ["device-tests"],
154}