Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 1 | // |
| 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 Hsieh | d1acbbc | 2017-10-05 13:38:28 -0700 | [diff] [blame] | 17 | cc_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 Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 27 | cc_test { |
Hsin-Yi Chen | 6929575 | 2017-06-07 18:05:05 +0800 | [diff] [blame] | 28 | name: "binderDriverInterfaceTest_IPC_32", |
Chih-Hung Hsieh | d1acbbc | 2017-10-05 13:38:28 -0700 | [diff] [blame] | 29 | defaults: ["binder_test_defaults"], |
Steven Moreland | c7a30c8 | 2019-07-10 13:12:23 -0700 | [diff] [blame] | 30 | srcs: ["binderDriverInterfaceTest.cpp"], |
Hsin-Yi Chen | 6929575 | 2017-06-07 18:05:05 +0800 | [diff] [blame] | 31 | compile_multilib: "32", |
| 32 | cflags: ["-DBINDER_IPC_32BIT=1"], |
| 33 | } |
| 34 | |
| 35 | cc_test { |
Steven Moreland | c7a30c8 | 2019-07-10 13:12:23 -0700 | [diff] [blame] | 36 | name: "binderDriverInterfaceTest", |
| 37 | defaults: ["binder_test_defaults"], |
Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 38 | product_variables: { |
| 39 | binder32bit: { |
| 40 | cflags: ["-DBINDER_IPC_32BIT=1"], |
| 41 | }, |
| 42 | }, |
| 43 | |
Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 44 | srcs: ["binderDriverInterfaceTest.cpp"], |
Steven Moreland | 67812c2 | 2019-07-10 13:50:40 -0700 | [diff] [blame^] | 45 | test_suites: ["device-tests"], |
Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 46 | } |
| 47 | |
| 48 | cc_test { |
Robert Quattlebaum | 6316f5b | 2017-01-04 13:25:14 -0800 | [diff] [blame] | 49 | name: "binderValueTypeTest", |
Chih-Hung Hsieh | d1acbbc | 2017-10-05 13:38:28 -0700 | [diff] [blame] | 50 | defaults: ["binder_test_defaults"], |
Steven Moreland | c7a30c8 | 2019-07-10 13:12:23 -0700 | [diff] [blame] | 51 | srcs: ["binderValueTypeTest.cpp"], |
Robert Quattlebaum | 6316f5b | 2017-01-04 13:25:14 -0800 | [diff] [blame] | 52 | shared_libs: [ |
| 53 | "libbinder", |
| 54 | "libutils", |
| 55 | ], |
Steven Moreland | 67812c2 | 2019-07-10 13:50:40 -0700 | [diff] [blame^] | 56 | test_suites: ["device-tests"], |
Robert Quattlebaum | 6316f5b | 2017-01-04 13:25:14 -0800 | [diff] [blame] | 57 | } |
| 58 | |
| 59 | cc_test { |
Hsin-Yi Chen | ec18c02 | 2017-07-06 11:40:20 +0800 | [diff] [blame] | 60 | name: "binderLibTest_IPC_32", |
Chih-Hung Hsieh | d1acbbc | 2017-10-05 13:38:28 -0700 | [diff] [blame] | 61 | defaults: ["binder_test_defaults"], |
Steven Moreland | c7a30c8 | 2019-07-10 13:12:23 -0700 | [diff] [blame] | 62 | srcs: ["binderLibTest.cpp"], |
Hsin-Yi Chen | ec18c02 | 2017-07-06 11:40:20 +0800 | [diff] [blame] | 63 | shared_libs: [ |
| 64 | "libbinder", |
| 65 | "libutils", |
| 66 | ], |
| 67 | compile_multilib: "32", |
| 68 | cflags: ["-DBINDER_IPC_32BIT=1"], |
| 69 | } |
| 70 | |
| 71 | cc_test { |
Steven Moreland | c7a30c8 | 2019-07-10 13:12:23 -0700 | [diff] [blame] | 72 | name: "binderLibTest", |
| 73 | defaults: ["binder_test_defaults"], |
Hsin-Yi Chen | ec18c02 | 2017-07-06 11:40:20 +0800 | [diff] [blame] | 74 | product_variables: { |
| 75 | binder32bit: { |
| 76 | cflags: ["-DBINDER_IPC_32BIT=1"], |
| 77 | }, |
| 78 | }, |
| 79 | |
Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 80 | srcs: ["binderLibTest.cpp"], |
| 81 | shared_libs: [ |
| 82 | "libbinder", |
| 83 | "libutils", |
| 84 | ], |
| 85 | } |
| 86 | |
| 87 | cc_test { |
| 88 | name: "binderThroughputTest", |
Chih-Hung Hsieh | d1acbbc | 2017-10-05 13:38:28 -0700 | [diff] [blame] | 89 | defaults: ["binder_test_defaults"], |
Steven Moreland | c7a30c8 | 2019-07-10 13:12:23 -0700 | [diff] [blame] | 90 | srcs: ["binderThroughputTest.cpp"], |
Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 91 | shared_libs: [ |
| 92 | "libbinder", |
| 93 | "libutils", |
| 94 | ], |
| 95 | clang: true, |
| 96 | cflags: [ |
| 97 | "-g", |
Dan Willemsen | 59e086f | 2016-07-25 17:13:45 -0700 | [diff] [blame] | 98 | "-Wno-missing-field-initializers", |
| 99 | "-Wno-sign-compare", |
| 100 | "-O3", |
| 101 | ], |
| 102 | } |
Wei Wang | 78f2a37 | 2016-10-20 23:18:17 -0700 | [diff] [blame] | 103 | |
| 104 | cc_test { |
| 105 | name: "binderTextOutputTest", |
Chih-Hung Hsieh | d1acbbc | 2017-10-05 13:38:28 -0700 | [diff] [blame] | 106 | defaults: ["binder_test_defaults"], |
Steven Moreland | c7a30c8 | 2019-07-10 13:12:23 -0700 | [diff] [blame] | 107 | srcs: ["binderTextOutputTest.cpp"], |
Wei Wang | 78f2a37 | 2016-10-20 23:18:17 -0700 | [diff] [blame] | 108 | shared_libs: [ |
| 109 | "libbinder", |
| 110 | "libutils", |
| 111 | "libbase", |
| 112 | ], |
Steven Moreland | 67812c2 | 2019-07-10 13:50:40 -0700 | [diff] [blame^] | 113 | test_suites: ["device-tests"], |
Wei Wang | 78f2a37 | 2016-10-20 23:18:17 -0700 | [diff] [blame] | 114 | } |
Howard Chen | c135dbc | 2017-03-25 17:12:59 +0800 | [diff] [blame] | 115 | |
| 116 | cc_test { |
| 117 | name: "schd-dbg", |
Chih-Hung Hsieh | d1acbbc | 2017-10-05 13:38:28 -0700 | [diff] [blame] | 118 | defaults: ["binder_test_defaults"], |
Steven Moreland | c7a30c8 | 2019-07-10 13:12:23 -0700 | [diff] [blame] | 119 | srcs: ["schd-dbg.cpp"], |
Howard Chen | c135dbc | 2017-03-25 17:12:59 +0800 | [diff] [blame] | 120 | shared_libs: [ |
| 121 | "libbinder", |
| 122 | "libutils", |
| 123 | "libbase", |
| 124 | ], |
| 125 | } |
Dan Stoza | d630e52 | 2016-12-01 15:16:31 -0800 | [diff] [blame] | 126 | |
| 127 | cc_test { |
| 128 | name: "binderSafeInterfaceTest", |
Chih-Hung Hsieh | d1acbbc | 2017-10-05 13:38:28 -0700 | [diff] [blame] | 129 | defaults: ["binder_test_defaults"], |
Steven Moreland | c7a30c8 | 2019-07-10 13:12:23 -0700 | [diff] [blame] | 130 | srcs: ["binderSafeInterfaceTest.cpp"], |
Dan Stoza | d630e52 | 2016-12-01 15:16:31 -0800 | [diff] [blame] | 131 | |
| 132 | cppflags: [ |
Dan Stoza | d630e52 | 2016-12-01 15:16:31 -0800 | [diff] [blame] | 133 | "-Weverything", |
| 134 | "-Wno-c++98-compat", |
| 135 | "-Wno-c++98-compat-pedantic", |
| 136 | "-Wno-global-constructors", |
| 137 | "-Wno-padded", |
| 138 | "-Wno-weak-vtables", |
| 139 | ], |
| 140 | |
| 141 | cpp_std: "experimental", |
| 142 | gnu_extensions: false, |
| 143 | |
| 144 | shared_libs: [ |
| 145 | "libbinder", |
Dan Stoza | 2537db7 | 2017-04-07 16:32:38 -0700 | [diff] [blame] | 146 | "libcutils", |
Dan Stoza | d630e52 | 2016-12-01 15:16:31 -0800 | [diff] [blame] | 147 | "liblog", |
| 148 | "libutils", |
| 149 | ], |
| 150 | } |