blob: 1d6db79330033df5968ed64472171fac4b10724f [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",
22 "-Wno-unused-private-field",
23 "-Wno-unused-variable",
24 ],
25}
26
Dan Willemsen59e086f2016-07-25 17:13:45 -070027cc_test {
Hsin-Yi Chen69295752017-06-07 18:05:05 +080028 name: "binderDriverInterfaceTest_IPC_32",
Chih-Hung Hsiehd1acbbc2017-10-05 13:38:28 -070029 defaults: ["binder_test_defaults"],
Steven Morelandc7a30c82019-07-10 13:12:23 -070030 srcs: ["binderDriverInterfaceTest.cpp"],
Hsin-Yi Chen69295752017-06-07 18:05:05 +080031 compile_multilib: "32",
32 cflags: ["-DBINDER_IPC_32BIT=1"],
33}
34
35cc_test {
Steven Morelandc7a30c82019-07-10 13:12:23 -070036 name: "binderDriverInterfaceTest",
37 defaults: ["binder_test_defaults"],
Dan Willemsen59e086f2016-07-25 17:13:45 -070038 product_variables: {
39 binder32bit: {
40 cflags: ["-DBINDER_IPC_32BIT=1"],
41 },
42 },
43
Dan Willemsen59e086f2016-07-25 17:13:45 -070044 srcs: ["binderDriverInterfaceTest.cpp"],
Steven Moreland67812c22019-07-10 13:50:40 -070045 test_suites: ["device-tests"],
Dan Willemsen59e086f2016-07-25 17:13:45 -070046}
47
48cc_test {
Hsin-Yi Chenec18c022017-07-06 11:40:20 +080049 name: "binderLibTest_IPC_32",
Chih-Hung Hsiehd1acbbc2017-10-05 13:38:28 -070050 defaults: ["binder_test_defaults"],
Steven Morelandc7a30c82019-07-10 13:12:23 -070051 srcs: ["binderLibTest.cpp"],
Hsin-Yi Chenec18c022017-07-06 11:40:20 +080052 shared_libs: [
53 "libbinder",
54 "libutils",
55 ],
56 compile_multilib: "32",
57 cflags: ["-DBINDER_IPC_32BIT=1"],
58}
59
60cc_test {
Steven Morelandc7a30c82019-07-10 13:12:23 -070061 name: "binderLibTest",
62 defaults: ["binder_test_defaults"],
Hsin-Yi Chenec18c022017-07-06 11:40:20 +080063 product_variables: {
64 binder32bit: {
65 cflags: ["-DBINDER_IPC_32BIT=1"],
66 },
67 },
68
Dan Willemsen59e086f2016-07-25 17:13:45 -070069 srcs: ["binderLibTest.cpp"],
70 shared_libs: [
71 "libbinder",
72 "libutils",
73 ],
Dan Shie4423a32019-07-16 10:13:38 -070074 test_suites: ["device-tests"],
Dan Willemsen59e086f2016-07-25 17:13:45 -070075}
76
77cc_test {
78 name: "binderThroughputTest",
Chih-Hung Hsiehd1acbbc2017-10-05 13:38:28 -070079 defaults: ["binder_test_defaults"],
Steven Morelandc7a30c82019-07-10 13:12:23 -070080 srcs: ["binderThroughputTest.cpp"],
Dan Willemsen59e086f2016-07-25 17:13:45 -070081 shared_libs: [
82 "libbinder",
83 "libutils",
84 ],
85 clang: true,
86 cflags: [
87 "-g",
Dan Willemsen59e086f2016-07-25 17:13:45 -070088 "-Wno-missing-field-initializers",
89 "-Wno-sign-compare",
90 "-O3",
91 ],
92}
Wei Wang78f2a372016-10-20 23:18:17 -070093
94cc_test {
95 name: "binderTextOutputTest",
Chih-Hung Hsiehd1acbbc2017-10-05 13:38:28 -070096 defaults: ["binder_test_defaults"],
Steven Morelandc7a30c82019-07-10 13:12:23 -070097 srcs: ["binderTextOutputTest.cpp"],
Wei Wang78f2a372016-10-20 23:18:17 -070098 shared_libs: [
99 "libbinder",
100 "libutils",
101 "libbase",
102 ],
Steven Moreland67812c22019-07-10 13:50:40 -0700103 test_suites: ["device-tests"],
Wei Wang78f2a372016-10-20 23:18:17 -0700104}
Howard Chenc135dbc2017-03-25 17:12:59 +0800105
106cc_test {
107 name: "schd-dbg",
Chih-Hung Hsiehd1acbbc2017-10-05 13:38:28 -0700108 defaults: ["binder_test_defaults"],
Steven Morelandc7a30c82019-07-10 13:12:23 -0700109 srcs: ["schd-dbg.cpp"],
Howard Chenc135dbc2017-03-25 17:12:59 +0800110 shared_libs: [
111 "libbinder",
112 "libutils",
113 "libbase",
114 ],
115}
Dan Stozad630e522016-12-01 15:16:31 -0800116
117cc_test {
118 name: "binderSafeInterfaceTest",
Chih-Hung Hsiehd1acbbc2017-10-05 13:38:28 -0700119 defaults: ["binder_test_defaults"],
Steven Morelandc7a30c82019-07-10 13:12:23 -0700120 srcs: ["binderSafeInterfaceTest.cpp"],
Dan Stozad630e522016-12-01 15:16:31 -0800121
122 cppflags: [
Dan Stozad630e522016-12-01 15:16:31 -0800123 "-Weverything",
124 "-Wno-c++98-compat",
125 "-Wno-c++98-compat-pedantic",
126 "-Wno-global-constructors",
127 "-Wno-padded",
128 "-Wno-weak-vtables",
129 ],
130
131 cpp_std: "experimental",
132 gnu_extensions: false,
133
134 shared_libs: [
135 "libbinder",
Dan Stoza2537db72017-04-07 16:32:38 -0700136 "libcutils",
Dan Stozad630e522016-12-01 15:16:31 -0800137 "liblog",
138 "libutils",
139 ],
140}