Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 1 | // |
| 2 | // Copyright (C) 2012 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 | |
| 17 | cc_defaults { |
| 18 | name: "bionic_tests_defaults", |
| 19 | host_supported: true, |
Tom Cherry | 60ddedf | 2018-02-20 15:40:02 -0800 | [diff] [blame] | 20 | cpp_std: "experimental", |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 21 | target: { |
| 22 | darwin: { |
| 23 | enabled: false, |
| 24 | }, |
| 25 | }, |
| 26 | cflags: [ |
| 27 | "-fstack-protector-all", |
| 28 | "-g", |
| 29 | "-Wall", |
| 30 | "-Wextra", |
| 31 | "-Wunused", |
| 32 | "-Werror", |
| 33 | "-fno-builtin", |
| 34 | |
| 35 | // We want to test deprecated API too. |
| 36 | "-Wno-deprecated-declarations", |
| 37 | |
| 38 | // For glibc. |
| 39 | "-D__STDC_LIMIT_MACROS", |
| 40 | ], |
| 41 | stl: "libc++", |
| 42 | sanitize: { |
| 43 | never: true, |
| 44 | }, |
| 45 | } |
| 46 | |
| 47 | // ----------------------------------------------------------------------------- |
| 48 | // All standard tests. |
| 49 | // ----------------------------------------------------------------------------- |
| 50 | |
George Burgess IV | de45dcb | 2018-03-16 14:15:01 -0700 | [diff] [blame] | 51 | // Test diagnostics emitted by clang. The library that results is useless; we |
| 52 | // just want to run '-Xclang -verify', which will fail if the diagnostics don't |
| 53 | // match up with what the source file says they should be. |
| 54 | cc_test_library { |
| 55 | name: "clang_diagnostic_tests", |
| 56 | cflags: [ |
| 57 | "-Xclang", |
| 58 | "-verify", |
| 59 | ], |
| 60 | srcs: ["sys_ioctl_diag_test.cpp"], |
| 61 | } |
| 62 | |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 63 | cc_test_library { |
| 64 | name: "libBionicStandardTests", |
| 65 | defaults: ["bionic_tests_defaults"], |
| 66 | srcs: [ |
Aleksandra Tsvetkova | 608b451 | 2015-02-27 15:01:59 +0300 | [diff] [blame] | 67 | "alloca_test.cpp", |
Elliott Hughes | ce934e3 | 2018-09-06 13:26:08 -0700 | [diff] [blame] | 68 | "android_get_device_api_level.cpp", |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 69 | "arpa_inet_test.cpp", |
Christopher Ferris | 7a3681e | 2017-04-24 17:48:32 -0700 | [diff] [blame] | 70 | "async_safe_test.cpp", |
Elliott Hughes | f6495c7 | 2016-07-25 09:20:57 -0700 | [diff] [blame] | 71 | "assert_test.cpp", |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 72 | "buffer_tests.cpp", |
| 73 | "bug_26110743_test.cpp", |
Aleksandra Tsvetkova | 608b451 | 2015-02-27 15:01:59 +0300 | [diff] [blame] | 74 | "byteswap_test.cpp", |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 75 | "complex_test.cpp", |
Elliott Hughes | 50cda38 | 2017-09-14 15:30:08 -0700 | [diff] [blame] | 76 | "complex_force_long_double_test.cpp", |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 77 | "ctype_test.cpp", |
| 78 | "dirent_test.cpp", |
Elliott Hughes | d390df1 | 2017-04-30 22:56:10 -0700 | [diff] [blame] | 79 | "elf_test.cpp", |
Elliott Hughes | ba267f4 | 2017-02-24 16:19:53 -0800 | [diff] [blame] | 80 | "endian_test.cpp", |
Elliott Hughes | e452cb1 | 2017-06-13 14:43:53 -0700 | [diff] [blame] | 81 | "errno_test.cpp", |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 82 | "error_test.cpp", |
| 83 | "eventfd_test.cpp", |
| 84 | "fcntl_test.cpp", |
Josh Gao | f6e5b58 | 2018-06-01 15:30:54 -0700 | [diff] [blame] | 85 | "fdsan_test.cpp", |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 86 | "fenv_test.cpp", |
Elliott Hughes | 45da326 | 2017-08-29 15:28:33 -0700 | [diff] [blame] | 87 | "float_test.cpp", |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 88 | "ftw_test.cpp", |
| 89 | "getauxval_test.cpp", |
| 90 | "getcwd_test.cpp", |
Elliott Hughes | f1c568d | 2017-09-26 17:09:07 -0700 | [diff] [blame] | 91 | "glob_test.cpp", |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 92 | "grp_pwd_test.cpp", |
Tom Cherry | 6034ef8 | 2018-02-02 16:10:07 -0800 | [diff] [blame] | 93 | "grp_pwd_file_test.cpp", |
Elliott Hughes | a648733 | 2017-08-15 23:16:48 -0700 | [diff] [blame] | 94 | "iconv_test.cpp", |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 95 | "ifaddrs_test.cpp", |
| 96 | "inttypes_test.cpp", |
Elliott Hughes | 45da326 | 2017-08-29 15:28:33 -0700 | [diff] [blame] | 97 | "iso646_test.c", |
Elliott Hughes | fc8e688 | 2016-11-18 16:27:29 -0800 | [diff] [blame] | 98 | "langinfo_test.cpp", |
Josh Gao | 7d15dc3 | 2017-03-13 17:10:46 -0700 | [diff] [blame] | 99 | "leak_test.cpp", |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 100 | "libgen_basename_test.cpp", |
| 101 | "libgen_test.cpp", |
Elliott Hughes | 45da326 | 2017-08-29 15:28:33 -0700 | [diff] [blame] | 102 | "limits_test.cpp", |
Christopher Ferris | ee1e0a3 | 2017-04-20 13:38:49 -0700 | [diff] [blame] | 103 | "linux_swab_test.cpp", |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 104 | "locale_test.cpp", |
| 105 | "malloc_test.cpp", |
| 106 | "math_test.cpp", |
Elliott Hughes | 50cda38 | 2017-09-14 15:30:08 -0700 | [diff] [blame] | 107 | "math_force_long_double_test.cpp", |
Orion Hodson | 6ba6694 | 2018-08-30 11:10:23 +0100 | [diff] [blame] | 108 | "membarrier_test.cpp", |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 109 | "mntent_test.cpp", |
| 110 | "netdb_test.cpp", |
| 111 | "net_if_test.cpp", |
| 112 | "netinet_ether_test.cpp", |
| 113 | "netinet_in_test.cpp", |
Elliott Hughes | e5a5eec | 2018-06-27 12:29:06 -0700 | [diff] [blame] | 114 | "netinet_ip_icmp_test.cpp", |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 115 | "netinet_udp_test.cpp", |
| 116 | "nl_types_test.cpp", |
Elliott Hughes | eab6572 | 2018-08-30 12:15:56 -0700 | [diff] [blame] | 117 | "poll_test.cpp", |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 118 | "pthread_test.cpp", |
| 119 | "pty_test.cpp", |
| 120 | "regex_test.cpp", |
| 121 | "resolv_test.cpp", |
| 122 | "sched_test.cpp", |
Elliott Hughes | 5059939 | 2017-05-25 17:13:32 -0700 | [diff] [blame] | 123 | "scsi_sg_test.cpp", |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 124 | "search_test.cpp", |
| 125 | "semaphore_test.cpp", |
| 126 | "setjmp_test.cpp", |
| 127 | "signal_test.cpp", |
Elliott Hughes | 14e3ff9 | 2017-10-06 16:58:36 -0700 | [diff] [blame] | 128 | "spawn_test.cpp", |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 129 | "stack_protector_test.cpp", |
| 130 | "stack_protector_test_helper.cpp", |
| 131 | "stack_unwinding_test.cpp", |
Elliott Hughes | 45da326 | 2017-08-29 15:28:33 -0700 | [diff] [blame] | 132 | "stdalign_test.cpp", |
| 133 | "stdarg_test.cpp", |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 134 | "stdatomic_test.cpp", |
Elliott Hughes | 45da326 | 2017-08-29 15:28:33 -0700 | [diff] [blame] | 135 | "stdbool_test.c", |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 136 | "stdint_test.cpp", |
| 137 | "stdio_nofortify_test.cpp", |
| 138 | "stdio_test.cpp", |
| 139 | "stdio_ext_test.cpp", |
| 140 | "stdlib_test.cpp", |
Elliott Hughes | 45da326 | 2017-08-29 15:28:33 -0700 | [diff] [blame] | 141 | "stdnoreturn_test.cpp", |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 142 | "string_nofortify_test.cpp", |
| 143 | "string_test.cpp", |
| 144 | "string_posix_strerror_r_test.cpp", |
| 145 | "strings_nofortify_test.cpp", |
| 146 | "strings_test.cpp", |
| 147 | "sstream_test.cpp", |
| 148 | "sys_epoll_test.cpp", |
| 149 | "sys_mman_test.cpp", |
Elliott Hughes | 7c59f3f | 2016-08-16 18:14:26 -0700 | [diff] [blame] | 150 | "sys_msg_test.cpp", |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 151 | "sys_personality_test.cpp", |
| 152 | "sys_prctl_test.cpp", |
| 153 | "sys_procfs_test.cpp", |
| 154 | "sys_ptrace_test.cpp", |
| 155 | "sys_quota_test.cpp", |
Elliott Hughes | 8465e96 | 2017-09-27 16:33:35 -0700 | [diff] [blame] | 156 | "sys_random_test.cpp", |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 157 | "sys_resource_test.cpp", |
| 158 | "sys_select_test.cpp", |
Elliott Hughes | 7c59f3f | 2016-08-16 18:14:26 -0700 | [diff] [blame] | 159 | "sys_sem_test.cpp", |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 160 | "sys_sendfile_test.cpp", |
Elliott Hughes | 7c59f3f | 2016-08-16 18:14:26 -0700 | [diff] [blame] | 161 | "sys_shm_test.cpp", |
Elliott Hughes | 5905d6f | 2018-01-30 15:09:51 -0800 | [diff] [blame] | 162 | "sys_signalfd_test.cpp", |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 163 | "sys_socket_test.cpp", |
| 164 | "sys_stat_test.cpp", |
| 165 | "sys_statvfs_test.cpp", |
| 166 | "sys_syscall_test.cpp", |
| 167 | "sys_sysinfo_test.cpp", |
| 168 | "sys_sysmacros_test.cpp", |
| 169 | "sys_time_test.cpp", |
| 170 | "sys_timex_test.cpp", |
Elliott Hughes | 02fdd05 | 2017-07-06 10:33:15 -0700 | [diff] [blame] | 171 | "sys_ttydefaults_test.cpp", |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 172 | "sys_types_test.cpp", |
| 173 | "sys_uio_test.cpp", |
Elliott Hughes | e7d185f | 2018-06-27 13:30:02 -0700 | [diff] [blame] | 174 | "sys_un_test.cpp", |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 175 | "sys_vfs_test.cpp", |
| 176 | "sys_xattr_test.cpp", |
| 177 | "system_properties_test.cpp", |
Dimitry Ivanov | 16b2a4d | 2017-01-24 20:43:29 +0000 | [diff] [blame] | 178 | "system_properties_test2.cpp", |
Elliott Hughes | 5da9646 | 2017-12-14 09:43:59 -0800 | [diff] [blame] | 179 | "termios_test.cpp", |
Elliott Hughes | 45da326 | 2017-08-29 15:28:33 -0700 | [diff] [blame] | 180 | "tgmath_test.c", |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 181 | "time_test.cpp", |
| 182 | "uchar_test.cpp", |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 183 | "unistd_nofortify_test.cpp", |
| 184 | "unistd_test.cpp", |
| 185 | "utmp_test.cpp", |
| 186 | "wchar_test.cpp", |
| 187 | "wctype_test.cpp", |
| 188 | ], |
| 189 | |
| 190 | include_dirs: [ |
| 191 | "bionic/libc", |
| 192 | "external/tinyxml2", |
| 193 | ], |
| 194 | |
Christopher Ferris | 7a3681e | 2017-04-24 17:48:32 -0700 | [diff] [blame] | 195 | target: { |
Dan Willemsen | 268ae36 | 2017-09-21 16:56:06 -0700 | [diff] [blame] | 196 | bionic: { |
Tom Cherry | e275d6d | 2017-12-11 23:31:33 -0800 | [diff] [blame] | 197 | whole_static_libs: [ |
| 198 | "libasync_safe", |
| 199 | "libsystemproperties", |
| 200 | ], |
Christopher Ferris | 7a3681e | 2017-04-24 17:48:32 -0700 | [diff] [blame] | 201 | }, |
| 202 | }, |
| 203 | |
Dan Willemsen | 4156770 | 2016-08-31 16:35:01 -0700 | [diff] [blame] | 204 | static_libs: [ |
| 205 | "libtinyxml2", |
| 206 | "liblog", |
| 207 | "libbase", |
| 208 | ], |
Dimitry Ivanov | a36e59b | 2016-09-01 11:37:39 -0700 | [diff] [blame] | 209 | shared: { |
| 210 | enabled: false, |
| 211 | }, |
Elliott Hughes | 3f6eee9 | 2016-12-13 23:47:25 +0000 | [diff] [blame] | 212 | |
| 213 | generated_headers: ["generated_android_ids"], |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 214 | } |
| 215 | |
| 216 | // ----------------------------------------------------------------------------- |
| 217 | // Fortify tests. |
| 218 | // ----------------------------------------------------------------------------- |
| 219 | |
| 220 | cc_defaults { |
| 221 | name: "bionic_fortify_tests_defaults", |
| 222 | cflags: [ |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 223 | "-U_FORTIFY_SOURCE", |
| 224 | ], |
| 225 | srcs: ["fortify_test_main.cpp"], |
| 226 | target: { |
| 227 | host: { |
| 228 | clang_cflags: ["-D__clang__"], |
| 229 | }, |
| 230 | }, |
| 231 | } |
| 232 | |
George Burgess IV | d9551db | 2017-08-17 18:51:02 -0700 | [diff] [blame] | 233 | // If building this fails, then we have both FORTIFY and ASAN enabled, which |
| 234 | // isn't desirable. (Ideally, we'd emit FORTIFY diagnostics even with ASAN |
| 235 | // enabled, but that's not a reality today.) This is meant to be otherwise |
| 236 | // unused. |
| 237 | cc_test_library { |
| 238 | name: "fortify_disabled_for_asan", |
| 239 | cflags: [ |
| 240 | "-Werror", |
| 241 | "-D_FORTIFY_SOURCE=2", |
| 242 | // "sanitize: address" doesn't work on platforms where libasan isn't |
| 243 | // enabled. Since the intent is just to build this, we can get away with |
| 244 | // passing this flag on its own. |
| 245 | "-fsanitize=address", |
| 246 | ], |
| 247 | // Ignore that we don't have ASAN symbols linked in. |
| 248 | allow_undefined_symbols: true, |
George Burgess IV | 0086fc8 | 2017-10-31 11:22:47 -0700 | [diff] [blame] | 249 | srcs: ["fortify_filecheck_diagnostics_test.cpp"], |
George Burgess IV | d9551db | 2017-08-17 18:51:02 -0700 | [diff] [blame] | 250 | } |
| 251 | |
George Burgess IV | e5d66eb | 2017-10-30 21:41:22 -0700 | [diff] [blame] | 252 | // Ensure we don't use FORTIFY'ed functions with the static analyzer/clang-tidy: |
| 253 | // it can confuse these tools pretty easily. If this builds successfully, then |
| 254 | // __clang_analyzer__ overrode FORTIFY. Otherwise, FORTIFY was incorrectly |
| 255 | // enabled. The library that results from building this is meant to be unused. |
| 256 | cc_test_library { |
| 257 | name: "fortify_disabled_for_tidy", |
| 258 | cflags: [ |
| 259 | "-Werror", |
| 260 | "-D_FORTIFY_SOURCE=2", |
| 261 | "-D__clang_analyzer__", |
| 262 | ], |
George Burgess IV | 0086fc8 | 2017-10-31 11:22:47 -0700 | [diff] [blame] | 263 | srcs: ["fortify_filecheck_diagnostics_test.cpp"], |
George Burgess IV | e5d66eb | 2017-10-30 21:41:22 -0700 | [diff] [blame] | 264 | } |
| 265 | |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 266 | cc_test_library { |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 267 | name: "libfortify1-tests-clang", |
Elliott Hughes | d50a1de | 2018-02-05 17:30:57 -0800 | [diff] [blame] | 268 | defaults: [ |
| 269 | "bionic_fortify_tests_defaults", |
| 270 | "bionic_tests_defaults", |
| 271 | ], |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 272 | cflags: [ |
| 273 | "-D_FORTIFY_SOURCE=1", |
Elliott Hughes | d50a1de | 2018-02-05 17:30:57 -0800 | [diff] [blame] | 274 | "-DTEST_NAME=Fortify1_clang", |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 275 | ], |
Dimitry Ivanov | a36e59b | 2016-09-01 11:37:39 -0700 | [diff] [blame] | 276 | shared: { |
| 277 | enabled: false, |
| 278 | }, |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 279 | } |
| 280 | |
| 281 | cc_test_library { |
| 282 | name: "libfortify2-tests-clang", |
Elliott Hughes | d50a1de | 2018-02-05 17:30:57 -0800 | [diff] [blame] | 283 | defaults: [ |
| 284 | "bionic_fortify_tests_defaults", |
| 285 | "bionic_tests_defaults", |
| 286 | ], |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 287 | cflags: [ |
| 288 | "-D_FORTIFY_SOURCE=2", |
Elliott Hughes | d50a1de | 2018-02-05 17:30:57 -0800 | [diff] [blame] | 289 | "-DTEST_NAME=Fortify2_clang", |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 290 | ], |
Dimitry Ivanov | a36e59b | 2016-09-01 11:37:39 -0700 | [diff] [blame] | 291 | shared: { |
| 292 | enabled: false, |
| 293 | }, |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 294 | } |
| 295 | |
| 296 | // ----------------------------------------------------------------------------- |
| 297 | // Library of all tests (excluding the dynamic linker tests). |
| 298 | // ----------------------------------------------------------------------------- |
| 299 | cc_test_library { |
| 300 | name: "libBionicTests", |
| 301 | defaults: ["bionic_tests_defaults"], |
| 302 | whole_static_libs: [ |
| 303 | "libBionicStandardTests", |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 304 | "libfortify1-tests-clang", |
| 305 | "libfortify2-tests-clang", |
| 306 | ], |
Dan Willemsen | 4156770 | 2016-08-31 16:35:01 -0700 | [diff] [blame] | 307 | shared: { |
| 308 | enabled: false, |
Dimitry Ivanov | a36e59b | 2016-09-01 11:37:39 -0700 | [diff] [blame] | 309 | }, |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 310 | } |
| 311 | |
Dimitry Ivanov | c462c28 | 2016-09-15 16:25:31 -0700 | [diff] [blame] | 312 | cc_test_library { |
| 313 | name: "libBionicLoaderTests", |
Elliott Hughes | d50a1de | 2018-02-05 17:30:57 -0800 | [diff] [blame] | 314 | defaults: [ |
| 315 | "bionic_tests_defaults", |
| 316 | "llvm-defaults", |
| 317 | ], |
Dimitry Ivanov | c462c28 | 2016-09-15 16:25:31 -0700 | [diff] [blame] | 318 | srcs: [ |
| 319 | "atexit_test.cpp", |
| 320 | "dl_test.cpp", |
Dimitry Ivanov | 708589f | 2016-09-19 10:50:28 -0700 | [diff] [blame] | 321 | "dlfcn_symlink_support.cpp", |
Dimitry Ivanov | c462c28 | 2016-09-15 16:25:31 -0700 | [diff] [blame] | 322 | "dlfcn_test.cpp", |
Elliott Hughes | 7c10abb | 2017-04-21 17:15:41 -0700 | [diff] [blame] | 323 | "link_test.cpp", |
Dimitry Ivanov | c462c28 | 2016-09-15 16:25:31 -0700 | [diff] [blame] | 324 | "pthread_dlfcn_test.cpp", |
| 325 | ], |
| 326 | static_libs: [ |
| 327 | "libbase", |
| 328 | ], |
| 329 | include_dirs: [ |
| 330 | "bionic/libc", |
| 331 | ], |
| 332 | shared: { |
| 333 | enabled: false, |
| 334 | }, |
| 335 | target: { |
| 336 | android: { |
| 337 | srcs: [ |
Evgenii Stepanov | 0a3637d | 2016-07-06 13:20:59 -0700 | [diff] [blame] | 338 | "cfi_test.cpp", |
Dimitry Ivanov | c462c28 | 2016-09-15 16:25:31 -0700 | [diff] [blame] | 339 | "dlext_test.cpp", |
| 340 | "libdl_test.cpp", |
| 341 | ], |
| 342 | static_libs: [ |
| 343 | "libpagemap", |
Andreas Gampe | b9797fe | 2017-07-05 22:36:20 -0700 | [diff] [blame] | 344 | "libziparchive", |
Dimitry Ivanov | ac4bd2f | 2016-11-21 12:50:38 -0800 | [diff] [blame] | 345 | "libLLVMObject", |
| 346 | "libLLVMBitReader", |
| 347 | "libLLVMMC", |
| 348 | "libLLVMMCParser", |
| 349 | "libLLVMCore", |
| 350 | "libLLVMSupport", |
Dimitry Ivanov | c462c28 | 2016-09-15 16:25:31 -0700 | [diff] [blame] | 351 | ], |
Elliott Hughes | d50a1de | 2018-02-05 17:30:57 -0800 | [diff] [blame] | 352 | }, |
Jiyong Park | 02586a2 | 2017-05-20 01:01:24 +0900 | [diff] [blame] | 353 | }, |
Dimitry Ivanov | c462c28 | 2016-09-15 16:25:31 -0700 | [diff] [blame] | 354 | } |
| 355 | |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 356 | // ----------------------------------------------------------------------------- |
| 357 | // Library of bionic customized gtest main function, with normal gtest output format, |
| 358 | // which is needed by bionic cts test. |
| 359 | // ----------------------------------------------------------------------------- |
| 360 | cc_test_library { |
| 361 | name: "libBionicCtsGtestMain", |
| 362 | defaults: ["bionic_tests_defaults"], |
Dimitry Ivanov | 927877c | 2016-09-21 11:17:13 -0700 | [diff] [blame] | 363 | srcs: [ |
Dimitry Ivanov | 927877c | 2016-09-21 11:17:13 -0700 | [diff] [blame] | 364 | "gtest_globals_cts.cpp", |
Christopher Ferris | 6d2c0bd | 2018-08-21 18:13:10 -0700 | [diff] [blame^] | 365 | "gtest_main.cpp", |
Dimitry Ivanov | 927877c | 2016-09-21 11:17:13 -0700 | [diff] [blame] | 366 | ], |
Dimitry Ivanov | a36e59b | 2016-09-01 11:37:39 -0700 | [diff] [blame] | 367 | shared: { |
| 368 | enabled: false, |
| 369 | }, |
Christopher Ferris | 6d2c0bd | 2018-08-21 18:13:10 -0700 | [diff] [blame^] | 370 | whole_static_libs: [ |
| 371 | "libgtest_isolated", |
| 372 | ], |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 373 | } |
| 374 | |
| 375 | // ----------------------------------------------------------------------------- |
| 376 | // Tests for the device using bionic's .so. Run with: |
Bernie Innocenti | b664724 | 2018-06-18 14:14:43 +0900 | [diff] [blame] | 377 | // adb shell /data/nativetest/bionic-unit-tests/bionic-unit-tests |
| 378 | // adb shell /data/nativetest64/bionic-unit-tests/bionic-unit-tests |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 379 | // ----------------------------------------------------------------------------- |
| 380 | cc_defaults { |
| 381 | name: "bionic_unit_tests_defaults", |
| 382 | host_supported: false, |
| 383 | |
| 384 | whole_static_libs: [ |
| 385 | "libBionicTests", |
Dimitry Ivanov | c462c28 | 2016-09-15 16:25:31 -0700 | [diff] [blame] | 386 | "libBionicLoaderTests", |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 387 | ], |
| 388 | |
| 389 | static_libs: [ |
| 390 | "libtinyxml2", |
| 391 | "liblog", |
| 392 | "libbase", |
| 393 | ], |
| 394 | |
| 395 | srcs: [ |
| 396 | // TODO: Include __cxa_thread_atexit_test.cpp to glibc tests once it is upgraded (glibc 2.18+) |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 397 | "__cxa_thread_atexit_test.cpp", |
Christopher Ferris | 6d2c0bd | 2018-08-21 18:13:10 -0700 | [diff] [blame^] | 398 | "gtest_globals.cpp", |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 399 | "thread_local_test.cpp", |
| 400 | ], |
| 401 | |
| 402 | conlyflags: [ |
| 403 | "-fexceptions", |
| 404 | "-fnon-call-exceptions", |
| 405 | ], |
| 406 | |
| 407 | ldflags: ["-Wl,--export-dynamic"], |
| 408 | |
| 409 | include_dirs: ["bionic/libc"], |
| 410 | |
Yabin Cui | 1f553ea | 2017-01-13 12:31:59 -0800 | [diff] [blame] | 411 | stl: "libc++_static", |
| 412 | |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 413 | target: { |
| 414 | android: { |
| 415 | shared_libs: [ |
dimitry | 321476a | 2018-01-29 15:32:37 +0100 | [diff] [blame] | 416 | "ld-android", |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 417 | "libdl", |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 418 | "libdl_preempt_test_1", |
| 419 | "libdl_preempt_test_2", |
| 420 | "libdl_test_df_1_global", |
| 421 | ], |
| 422 | static_libs: [ |
| 423 | // The order of these libraries matters, do not shuffle them. |
| 424 | "libbase", |
Dimitry Ivanov | c462c28 | 2016-09-15 16:25:31 -0700 | [diff] [blame] | 425 | "libpagemap", |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 426 | "libziparchive", |
| 427 | "libz", |
| 428 | "libutils", |
Dimitry Ivanov | ac4bd2f | 2016-11-21 12:50:38 -0800 | [diff] [blame] | 429 | "libLLVMObject", |
| 430 | "libLLVMBitReader", |
| 431 | "libLLVMMC", |
| 432 | "libLLVMMCParser", |
| 433 | "libLLVMCore", |
| 434 | "libLLVMSupport", |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 435 | ], |
Dimitry Ivanov | a36e59b | 2016-09-01 11:37:39 -0700 | [diff] [blame] | 436 | ldflags: [ |
Colin Cross | 7b29495 | 2016-09-29 14:08:13 -0700 | [diff] [blame] | 437 | "-Wl,--rpath,${ORIGIN}/../bionic-loader-test-libs", |
Dimitry Ivanov | a36e59b | 2016-09-01 11:37:39 -0700 | [diff] [blame] | 438 | "-Wl,--enable-new-dtags", |
| 439 | ], |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 440 | }, |
Elliott Hughes | d50a1de | 2018-02-05 17:30:57 -0800 | [diff] [blame] | 441 | }, |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 442 | } |
| 443 | |
| 444 | cc_test { |
| 445 | name: "bionic-unit-tests", |
Christopher Ferris | 6d2c0bd | 2018-08-21 18:13:10 -0700 | [diff] [blame^] | 446 | gtest: false, |
Elliott Hughes | d50a1de | 2018-02-05 17:30:57 -0800 | [diff] [blame] | 447 | defaults: [ |
| 448 | "bionic_unit_tests_defaults", |
| 449 | "bionic_tests_defaults", |
| 450 | ], |
Elliott Hughes | a57ca0d | 2016-11-17 18:18:08 -0800 | [diff] [blame] | 451 | |
Christopher Ferris | 6d2c0bd | 2018-08-21 18:13:10 -0700 | [diff] [blame^] | 452 | srcs: [ |
| 453 | "gtest_main.cpp", |
| 454 | ], |
| 455 | |
| 456 | static_libs: [ |
| 457 | "libgtest_isolated", |
| 458 | ], |
| 459 | |
Elliott Hughes | a57ca0d | 2016-11-17 18:18:08 -0800 | [diff] [blame] | 460 | target: { |
| 461 | android: { |
| 462 | shared_libs: ["libicuuc"], |
| 463 | }, |
| 464 | }, |
Dimitry Ivanov | 4bd3542 | 2017-04-10 16:52:25 -0700 | [diff] [blame] | 465 | |
| 466 | required: [ |
| 467 | "cfi_test_helper", |
| 468 | "cfi_test_helper2", |
| 469 | "libtest_dt_runpath_a", |
| 470 | "libtest_dt_runpath_b", |
| 471 | "libtest_dt_runpath_c", |
| 472 | "libtest_dt_runpath_x", |
| 473 | "libatest_simple_zip", |
| 474 | "libcfi-test", |
| 475 | "libcfi-test-bad", |
| 476 | "libdlext_test_different_soname", |
| 477 | "libdlext_test_fd", |
| 478 | "libdlext_test_norelro", |
| 479 | "libdlext_test_runpath_zip_zipaligned", |
| 480 | "libdlext_test", |
| 481 | "libdlext_test_zip", |
| 482 | "libdlext_test_zip_zipaligned", |
| 483 | "libdl_preempt_test_1", |
| 484 | "libdl_preempt_test_2", |
| 485 | "libdl_test_df_1_global", |
Pirama Arumuga Nainar | c53e8b8 | 2018-03-27 10:32:19 -0700 | [diff] [blame] | 486 | "libelf-tls-library", |
Dimitry Ivanov | f1db837 | 2017-04-19 11:58:52 -0700 | [diff] [blame] | 487 | "libgnu-hash-table-library", |
Dimitry Ivanov | 4bd3542 | 2017-04-10 16:52:25 -0700 | [diff] [blame] | 488 | "libsysv-hash-table-library", |
Pirama Arumuga Nainar | c53e8b8 | 2018-03-27 10:32:19 -0700 | [diff] [blame] | 489 | "libtestshared", |
Dimitry Ivanov | 4bd3542 | 2017-04-10 16:52:25 -0700 | [diff] [blame] | 490 | "libtest_atexit", |
| 491 | "libtest_check_order_dlsym_1_left", |
| 492 | "libtest_check_order_dlsym_2_right", |
| 493 | "libtest_check_order_dlsym_3_c", |
| 494 | "libtest_check_order_dlsym_a", |
| 495 | "libtest_check_order_dlsym_b", |
| 496 | "libtest_check_order_dlsym_d", |
| 497 | "libtest_check_order_dlsym", |
| 498 | "libtest_check_order_reloc_root_1", |
| 499 | "libtest_check_order_reloc_root_2", |
| 500 | "libtest_check_order_reloc_root", |
| 501 | "libtest_check_order_reloc_siblings_1", |
| 502 | "libtest_check_order_reloc_siblings_2", |
| 503 | "libtest_check_order_reloc_siblings_3", |
| 504 | "libtest_check_order_reloc_siblings_a", |
| 505 | "libtest_check_order_reloc_siblings_b", |
| 506 | "libtest_check_order_reloc_siblings_c_1", |
| 507 | "libtest_check_order_reloc_siblings_c_2", |
| 508 | "libtest_check_order_reloc_siblings_c", |
| 509 | "libtest_check_order_reloc_siblings_d", |
| 510 | "libtest_check_order_reloc_siblings_e", |
| 511 | "libtest_check_order_reloc_siblings_f", |
| 512 | "libtest_check_order_reloc_siblings", |
| 513 | "libtest_check_rtld_next_from_library", |
Pirama Arumuga Nainar | c53e8b8 | 2018-03-27 10:32:19 -0700 | [diff] [blame] | 514 | "libtest_dlopen_df_1_global", |
Dimitry Ivanov | 4bd3542 | 2017-04-10 16:52:25 -0700 | [diff] [blame] | 515 | "libtest_dlopen_from_ctor_main", |
| 516 | "libtest_dlopen_from_ctor", |
| 517 | "libtest_dlopen_weak_undefined_func", |
| 518 | "libtest_dlsym_df_1_global", |
| 519 | "libtest_dlsym_from_this_child", |
| 520 | "libtest_dlsym_from_this_grandchild", |
| 521 | "libtest_dlsym_from_this", |
| 522 | "libtest_dlsym_weak_func", |
| 523 | "libtest_dt_runpath_d", |
| 524 | "libtest_empty", |
Pirama Arumuga Nainar | c53e8b8 | 2018-03-27 10:32:19 -0700 | [diff] [blame] | 525 | "libtest_ifunc_variable_impl", |
| 526 | "libtest_ifunc_variable", |
Dimitry Ivanov | f1db837 | 2017-04-19 11:58:52 -0700 | [diff] [blame] | 527 | "libtest_ifunc", |
Dimitry Ivanov | 4bd3542 | 2017-04-10 16:52:25 -0700 | [diff] [blame] | 528 | "libtest_init_fini_order_child", |
| 529 | "libtest_init_fini_order_grand_child", |
| 530 | "libtest_init_fini_order_root2", |
| 531 | "libtest_init_fini_order_root", |
Pirama Arumuga Nainar | 1395f70 | 2018-03-28 15:27:12 -0700 | [diff] [blame] | 532 | "libtest_missing_symbol_child_public", |
Elliott Hughes | 06d31c9 | 2018-03-29 11:28:53 -0700 | [diff] [blame] | 533 | "libtest_missing_symbol_child_private", |
Pirama Arumuga Nainar | c53e8b8 | 2018-03-27 10:32:19 -0700 | [diff] [blame] | 534 | "libtest_missing_symbol_root", |
| 535 | "libtest_missing_symbol", |
Dimitry Ivanov | 4bd3542 | 2017-04-10 16:52:25 -0700 | [diff] [blame] | 536 | "libtest_nodelete_1", |
| 537 | "libtest_nodelete_2", |
| 538 | "libtest_nodelete_dt_flags_1", |
| 539 | "libtest_pthread_atfork", |
| 540 | "libtest_relo_check_dt_needed_order_1", |
| 541 | "libtest_relo_check_dt_needed_order_2", |
| 542 | "libtest_relo_check_dt_needed_order", |
| 543 | "libtest_simple", |
| 544 | "libtest_two_parents_child", |
| 545 | "libtest_two_parents_parent1", |
| 546 | "libtest_two_parents_parent2", |
| 547 | "libtest_versioned_lib", |
| 548 | "libtest_versioned_libv1", |
| 549 | "libtest_versioned_libv2", |
| 550 | "libtest_versioned_otherlib_empty", |
| 551 | "libtest_versioned_otherlib", |
| 552 | "libtest_versioned_uselibv1", |
| 553 | "libtest_versioned_uselibv2_other", |
| 554 | "libtest_versioned_uselibv2", |
| 555 | "libtest_versioned_uselibv3_other", |
| 556 | "libtest_with_dependency_loop_a", |
| 557 | "libtest_with_dependency_loop_b", |
| 558 | "libtest_with_dependency_loop_c", |
| 559 | "libtest_with_dependency_loop", |
| 560 | "libtest_with_dependency", |
dimitry | 55547db | 2018-05-25 14:17:37 +0200 | [diff] [blame] | 561 | "libtest_indirect_thread_local_dtor", |
Dimitry Ivanov | 4bd3542 | 2017-04-10 16:52:25 -0700 | [diff] [blame] | 562 | "libtest_invalid-empty_shdr_table.so", |
| 563 | "libtest_invalid-rw_load_segment.so", |
| 564 | "libtest_invalid-unaligned_shdr_offset.so", |
| 565 | "libtest_invalid-zero_shdr_table_content.so", |
| 566 | "libtest_invalid-zero_shdr_table_offset.so", |
| 567 | "libtest_invalid-zero_shentsize.so", |
| 568 | "libtest_invalid-zero_shstrndx.so", |
| 569 | "libtest_invalid-textrels.so", |
| 570 | "libtest_invalid-textrels2.so", |
Pirama Arumuga Nainar | c53e8b8 | 2018-03-27 10:32:19 -0700 | [diff] [blame] | 571 | "libtest_thread_local_dtor", |
dimitry | 55547db | 2018-05-25 14:17:37 +0200 | [diff] [blame] | 572 | "libtest_thread_local_dtor2", |
Dimitry Ivanov | 4bd3542 | 2017-04-10 16:52:25 -0700 | [diff] [blame] | 573 | "preinit_getauxval_test_helper", |
| 574 | "preinit_syscall_test_helper", |
| 575 | "libnstest_private_external", |
| 576 | "libnstest_dlopened", |
| 577 | "libnstest_private", |
| 578 | "libnstest_root_not_isolated", |
| 579 | "libnstest_root", |
| 580 | "libnstest_public", |
| 581 | "libnstest_public_internal", |
Logan Chien | 9ee4591 | 2018-01-18 12:05:09 +0800 | [diff] [blame] | 582 | "libnstest_ns_a_public1", |
| 583 | "libnstest_ns_a_public1_internal", |
| 584 | "libnstest_ns_b_public2", |
| 585 | "libnstest_ns_b_public3", |
Jiyong Park | ce10b16 | 2018-03-29 10:34:41 +0900 | [diff] [blame] | 586 | "ld_preload_test_helper", |
| 587 | "ld_preload_test_helper_lib1", |
Elliott Hughes | 5146652 | 2018-03-29 11:17:37 -0700 | [diff] [blame] | 588 | "ld_preload_test_helper_lib2", |
Jiyong Park | ce10b16 | 2018-03-29 10:34:41 +0900 | [diff] [blame] | 589 | "ld_config_test_helper", |
| 590 | "ld_config_test_helper_lib1", |
| 591 | "ld_config_test_helper_lib2", |
| 592 | "ld_config_test_helper_lib3", |
Dimitry Ivanov | 4bd3542 | 2017-04-10 16:52:25 -0700 | [diff] [blame] | 593 | ], |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 594 | } |
| 595 | |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 596 | // ----------------------------------------------------------------------------- |
| 597 | // Tests for the device linked against bionic's static library. Run with: |
Bernie Innocenti | b664724 | 2018-06-18 14:14:43 +0900 | [diff] [blame] | 598 | // adb shell /data/nativetest/bionic-unit-tests-static/bionic-unit-tests-static |
| 599 | // adb shell /data/nativetest64/bionic-unit-tests-static/bionic-unit-tests-static |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 600 | // ----------------------------------------------------------------------------- |
| 601 | cc_test { |
| 602 | name: "bionic-unit-tests-static", |
Christopher Ferris | 6d2c0bd | 2018-08-21 18:13:10 -0700 | [diff] [blame^] | 603 | gtest: false, |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 604 | defaults: ["bionic_tests_defaults"], |
| 605 | host_supported: false, |
| 606 | |
Dimitry Ivanov | 462ea66 | 2017-01-06 14:49:57 -0800 | [diff] [blame] | 607 | srcs: [ |
| 608 | "gtest_preinit_debuggerd.cpp", |
Christopher Ferris | 6d2c0bd | 2018-08-21 18:13:10 -0700 | [diff] [blame^] | 609 | "gtest_globals.cpp", |
| 610 | "gtest_main.cpp", |
Dimitry Ivanov | 462ea66 | 2017-01-06 14:49:57 -0800 | [diff] [blame] | 611 | ], |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 612 | whole_static_libs: [ |
| 613 | "libBionicTests", |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 614 | ], |
| 615 | |
| 616 | static_libs: [ |
| 617 | "libm", |
| 618 | "libc", |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 619 | "libdl", |
| 620 | "libtinyxml2", |
| 621 | "liblog", |
| 622 | "libbase", |
Josh Gao | 2a3b4fa | 2016-10-26 17:55:49 -0700 | [diff] [blame] | 623 | "libdebuggerd_handler", |
Christopher Ferris | 6d2c0bd | 2018-08-21 18:13:10 -0700 | [diff] [blame^] | 624 | "libgtest_isolated", |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 625 | ], |
| 626 | |
| 627 | static_executable: true, |
| 628 | stl: "libc++_static", |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 629 | } |
| 630 | |
| 631 | // ----------------------------------------------------------------------------- |
| 632 | // Tests to run on the host and linked against glibc. Run with: |
| 633 | // cd bionic/tests; mm bionic-unit-tests-glibc-run |
| 634 | // ----------------------------------------------------------------------------- |
| 635 | |
| 636 | cc_test_host { |
| 637 | name: "bionic-unit-tests-glibc", |
Christopher Ferris | 6d2c0bd | 2018-08-21 18:13:10 -0700 | [diff] [blame^] | 638 | gtest: false, |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 639 | defaults: ["bionic_tests_defaults"], |
| 640 | |
| 641 | srcs: [ |
| 642 | "atexit_test.cpp", |
Dimitry Ivanov | 708589f | 2016-09-19 10:50:28 -0700 | [diff] [blame] | 643 | "dlfcn_symlink_support.cpp", |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 644 | "dlfcn_test.cpp", |
| 645 | "dl_test.cpp", |
Christopher Ferris | 6d2c0bd | 2018-08-21 18:13:10 -0700 | [diff] [blame^] | 646 | "gtest_globals.cpp", |
| 647 | "gtest_main.cpp", |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 648 | "pthread_dlfcn_test.cpp", |
| 649 | ], |
| 650 | |
| 651 | shared_libs: [ |
| 652 | "libdl_preempt_test_1", |
| 653 | "libdl_preempt_test_2", |
| 654 | |
| 655 | "libdl_test_df_1_global", |
| 656 | ], |
| 657 | |
| 658 | whole_static_libs: [ |
| 659 | "libBionicStandardTests", |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 660 | "libfortify1-tests-clang", |
| 661 | "libfortify2-tests-clang", |
| 662 | ], |
| 663 | |
| 664 | static_libs: [ |
| 665 | "libbase", |
| 666 | "liblog", |
| 667 | "libcutils", |
Christopher Ferris | 6d2c0bd | 2018-08-21 18:13:10 -0700 | [diff] [blame^] | 668 | "libgtest_isolated", |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 669 | ], |
| 670 | |
| 671 | host_ldlibs: [ |
| 672 | "-lresolv", |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 673 | "-lutil", |
| 674 | ], |
| 675 | |
Christopher Ferris | 6d2c0bd | 2018-08-21 18:13:10 -0700 | [diff] [blame^] | 676 | include_dirs: [ |
| 677 | "bionic/libc", |
| 678 | ], |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 679 | |
Dimitry Ivanov | d0b5c3a | 2016-11-25 12:23:11 -0800 | [diff] [blame] | 680 | ldflags: [ |
| 681 | "-Wl,--rpath,${ORIGIN}/../bionic-loader-test-libs", |
| 682 | "-Wl,--export-dynamic", |
| 683 | ], |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 684 | |
| 685 | sanitize: { |
| 686 | never: false, |
| 687 | }, |
Dan Willemsen | 268ae36 | 2017-09-21 16:56:06 -0700 | [diff] [blame] | 688 | |
| 689 | target: { |
| 690 | linux_bionic: { |
| 691 | enabled: false, |
| 692 | }, |
| 693 | }, |
Colin Cross | 2722ebb | 2016-07-11 16:20:06 -0700 | [diff] [blame] | 694 | } |
| 695 | |
Elliott Hughes | 21b56eb | 2017-10-20 17:57:17 -0700 | [diff] [blame] | 696 | subdirs = ["*"] |