blob: dea583d9a5b8a3c545b98922500629de1a2469e6 [file] [log] [blame]
Colin Cross2722ebb2016-07-11 16:20:06 -07001//
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
17cc_defaults {
18 name: "bionic_tests_defaults",
19 host_supported: true,
20 target: {
21 darwin: {
22 enabled: false,
23 },
24 },
25 cflags: [
26 "-fstack-protector-all",
27 "-g",
28 "-Wall",
29 "-Wextra",
30 "-Wunused",
31 "-Werror",
32 "-fno-builtin",
33
34 // We want to test deprecated API too.
35 "-Wno-deprecated-declarations",
36
37 // For glibc.
38 "-D__STDC_LIMIT_MACROS",
39 ],
40 stl: "libc++",
41 sanitize: {
42 never: true,
43 },
44}
45
46// -----------------------------------------------------------------------------
47// All standard tests.
48// -----------------------------------------------------------------------------
49
50cc_test_library {
51 name: "libBionicStandardTests",
52 defaults: ["bionic_tests_defaults"],
53 srcs: [
54 "arpa_inet_test.cpp",
Christopher Ferris7a3681e2017-04-24 17:48:32 -070055 "async_safe_test.cpp",
Elliott Hughesf6495c72016-07-25 09:20:57 -070056 "assert_test.cpp",
Colin Cross2722ebb2016-07-11 16:20:06 -070057 "buffer_tests.cpp",
58 "bug_26110743_test.cpp",
59 "complex_test.cpp",
60 "ctype_test.cpp",
61 "dirent_test.cpp",
Elliott Hughesd390df12017-04-30 22:56:10 -070062 "elf_test.cpp",
Elliott Hughesba267f42017-02-24 16:19:53 -080063 "endian_test.cpp",
Elliott Hughese452cb12017-06-13 14:43:53 -070064 "errno_test.cpp",
Colin Cross2722ebb2016-07-11 16:20:06 -070065 "error_test.cpp",
66 "eventfd_test.cpp",
67 "fcntl_test.cpp",
68 "fenv_test.cpp",
69 "ftw_test.cpp",
70 "getauxval_test.cpp",
71 "getcwd_test.cpp",
72 "grp_pwd_test.cpp",
Tom Cherry55e76972018-02-02 16:10:07 -080073 "grp_pwd_file_test.cpp",
Colin Cross2722ebb2016-07-11 16:20:06 -070074 "ifaddrs_test.cpp",
75 "inttypes_test.cpp",
Elliott Hughesfc8e6882016-11-18 16:27:29 -080076 "langinfo_test.cpp",
Josh Gao7d15dc32017-03-13 17:10:46 -070077 "leak_test.cpp",
Colin Cross2722ebb2016-07-11 16:20:06 -070078 "libgen_basename_test.cpp",
79 "libgen_test.cpp",
Christopher Ferrisee1e0a32017-04-20 13:38:49 -070080 "linux_swab_test.cpp",
Colin Cross2722ebb2016-07-11 16:20:06 -070081 "locale_test.cpp",
82 "malloc_test.cpp",
83 "math_test.cpp",
84 "mntent_test.cpp",
85 "netdb_test.cpp",
86 "net_if_test.cpp",
87 "netinet_ether_test.cpp",
88 "netinet_in_test.cpp",
89 "netinet_udp_test.cpp",
90 "nl_types_test.cpp",
91 "pthread_test.cpp",
92 "pty_test.cpp",
Xin Li4b1a3992017-05-19 10:13:08 -070093 "qsort_test.cpp",
Colin Cross2722ebb2016-07-11 16:20:06 -070094 "regex_test.cpp",
95 "resolv_test.cpp",
96 "sched_test.cpp",
Elliott Hughes50599392017-05-25 17:13:32 -070097 "scsi_sg_test.cpp",
Colin Cross2722ebb2016-07-11 16:20:06 -070098 "search_test.cpp",
99 "semaphore_test.cpp",
100 "setjmp_test.cpp",
101 "signal_test.cpp",
102 "stack_protector_test.cpp",
103 "stack_protector_test_helper.cpp",
104 "stack_unwinding_test.cpp",
105 "stdatomic_test.cpp",
106 "stdint_test.cpp",
107 "stdio_nofortify_test.cpp",
108 "stdio_test.cpp",
109 "stdio_ext_test.cpp",
110 "stdlib_test.cpp",
111 "string_nofortify_test.cpp",
112 "string_test.cpp",
113 "string_posix_strerror_r_test.cpp",
114 "strings_nofortify_test.cpp",
115 "strings_test.cpp",
116 "sstream_test.cpp",
117 "sys_epoll_test.cpp",
118 "sys_mman_test.cpp",
Elliott Hughes7c59f3f2016-08-16 18:14:26 -0700119 "sys_msg_test.cpp",
Colin Cross2722ebb2016-07-11 16:20:06 -0700120 "sys_personality_test.cpp",
121 "sys_prctl_test.cpp",
122 "sys_procfs_test.cpp",
123 "sys_ptrace_test.cpp",
124 "sys_quota_test.cpp",
125 "sys_resource_test.cpp",
126 "sys_select_test.cpp",
Elliott Hughes7c59f3f2016-08-16 18:14:26 -0700127 "sys_sem_test.cpp",
Colin Cross2722ebb2016-07-11 16:20:06 -0700128 "sys_sendfile_test.cpp",
Elliott Hughes7c59f3f2016-08-16 18:14:26 -0700129 "sys_shm_test.cpp",
Colin Cross2722ebb2016-07-11 16:20:06 -0700130 "sys_socket_test.cpp",
131 "sys_stat_test.cpp",
132 "sys_statvfs_test.cpp",
133 "sys_syscall_test.cpp",
134 "sys_sysinfo_test.cpp",
135 "sys_sysmacros_test.cpp",
136 "sys_time_test.cpp",
137 "sys_timex_test.cpp",
Elliott Hughes02fdd052017-07-06 10:33:15 -0700138 "sys_ttydefaults_test.cpp",
Colin Cross2722ebb2016-07-11 16:20:06 -0700139 "sys_types_test.cpp",
140 "sys_uio_test.cpp",
141 "sys_vfs_test.cpp",
142 "sys_xattr_test.cpp",
143 "system_properties_test.cpp",
Dimitry Ivanov16b2a4d2017-01-24 20:43:29 +0000144 "system_properties_test2.cpp",
Colin Cross2722ebb2016-07-11 16:20:06 -0700145 "time_test.cpp",
146 "uchar_test.cpp",
Colin Cross2722ebb2016-07-11 16:20:06 -0700147 "unistd_nofortify_test.cpp",
148 "unistd_test.cpp",
149 "utmp_test.cpp",
150 "wchar_test.cpp",
151 "wctype_test.cpp",
152 ],
153
154 include_dirs: [
155 "bionic/libc",
156 "external/tinyxml2",
157 ],
158
Christopher Ferris7a3681e2017-04-24 17:48:32 -0700159 target: {
160 android: {
161 whole_static_libs: ["libasync_safe"],
162 },
163 },
164
Dan Willemsen41567702016-08-31 16:35:01 -0700165 static_libs: [
166 "libtinyxml2",
167 "liblog",
168 "libbase",
169 ],
Colin Cross2722ebb2016-07-11 16:20:06 -0700170 host_ldlibs: ["-lrt"],
Dimitry Ivanova36e59b2016-09-01 11:37:39 -0700171 shared: {
172 enabled: false,
173 },
Elliott Hughes3f6eee92016-12-13 23:47:25 +0000174
175 generated_headers: ["generated_android_ids"],
Colin Cross2722ebb2016-07-11 16:20:06 -0700176}
177
178// -----------------------------------------------------------------------------
179// Fortify tests.
180// -----------------------------------------------------------------------------
181
182cc_defaults {
183 name: "bionic_fortify_tests_defaults",
184 cflags: [
185 "-Wno-error",
186 "-U_FORTIFY_SOURCE",
187 ],
188 srcs: ["fortify_test_main.cpp"],
189 target: {
190 host: {
191 clang_cflags: ["-D__clang__"],
192 },
193 },
194}
195
196cc_test_library {
Colin Cross2722ebb2016-07-11 16:20:06 -0700197 name: "libfortify1-tests-clang",
198 defaults: ["bionic_fortify_tests_defaults", "bionic_tests_defaults"],
199 clang: true,
200 cflags: [
201 "-D_FORTIFY_SOURCE=1",
202 "-DTEST_NAME=Fortify1_clang"
203 ],
Dimitry Ivanova36e59b2016-09-01 11:37:39 -0700204 shared: {
205 enabled: false,
206 },
Colin Cross2722ebb2016-07-11 16:20:06 -0700207}
208
209cc_test_library {
210 name: "libfortify2-tests-clang",
211 defaults: ["bionic_fortify_tests_defaults", "bionic_tests_defaults"],
212 clang: true,
213 cflags: [
214 "-D_FORTIFY_SOURCE=2",
215 "-DTEST_NAME=Fortify2_clang"
216 ],
Dimitry Ivanova36e59b2016-09-01 11:37:39 -0700217 shared: {
218 enabled: false,
219 },
Colin Cross2722ebb2016-07-11 16:20:06 -0700220}
221
222// -----------------------------------------------------------------------------
223// Library of all tests (excluding the dynamic linker tests).
224// -----------------------------------------------------------------------------
225cc_test_library {
226 name: "libBionicTests",
227 defaults: ["bionic_tests_defaults"],
228 whole_static_libs: [
229 "libBionicStandardTests",
Colin Cross2722ebb2016-07-11 16:20:06 -0700230 "libfortify1-tests-clang",
231 "libfortify2-tests-clang",
232 ],
Dan Willemsen41567702016-08-31 16:35:01 -0700233 shared: {
234 enabled: false,
Dimitry Ivanova36e59b2016-09-01 11:37:39 -0700235 },
Colin Cross2722ebb2016-07-11 16:20:06 -0700236}
237
238// -----------------------------------------------------------------------------
239// Library of bionic customized gtest main function, with simplified output format.
240// -----------------------------------------------------------------------------
241cc_test_library {
242 name: "libBionicGtestMain",
243 defaults: ["bionic_tests_defaults"],
Dimitry Ivanov927877c2016-09-21 11:17:13 -0700244 srcs: [
245 "gtest_main.cpp",
246 "gtest_globals.cpp",
247 ],
248 static_libs: [
249 "libbase",
250 ],
251 include_dirs: [
252 "bionic/libc",
253 ],
Colin Cross2722ebb2016-07-11 16:20:06 -0700254 target: {
255 darwin: {
256 enabled: true,
257 },
258 },
Dimitry Ivanova36e59b2016-09-01 11:37:39 -0700259 shared: {
260 enabled: false,
261 },
Colin Cross2722ebb2016-07-11 16:20:06 -0700262}
263
Dimitry Ivanovc462c282016-09-15 16:25:31 -0700264cc_test_library {
265 name: "libBionicLoaderTests",
Dimitry Ivanovac4bd2f2016-11-21 12:50:38 -0800266 defaults: ["bionic_tests_defaults", "llvm-defaults"],
Dimitry Ivanovc462c282016-09-15 16:25:31 -0700267 srcs: [
268 "atexit_test.cpp",
269 "dl_test.cpp",
Dimitry Ivanov708589f2016-09-19 10:50:28 -0700270 "dlfcn_symlink_support.cpp",
Dimitry Ivanovc462c282016-09-15 16:25:31 -0700271 "dlfcn_test.cpp",
Elliott Hughes7c10abb2017-04-21 17:15:41 -0700272 "link_test.cpp",
Dimitry Ivanovc462c282016-09-15 16:25:31 -0700273 "pthread_dlfcn_test.cpp",
274 ],
275 static_libs: [
276 "libbase",
277 ],
278 include_dirs: [
279 "bionic/libc",
280 ],
281 shared: {
282 enabled: false,
283 },
284 target: {
285 android: {
286 srcs: [
Evgenii Stepanov0a3637d2016-07-06 13:20:59 -0700287 "cfi_test.cpp",
Dimitry Ivanovc462c282016-09-15 16:25:31 -0700288 "dlext_test.cpp",
289 "libdl_test.cpp",
290 ],
291 static_libs: [
292 "libpagemap",
Andreas Gampeb9797fe2017-07-05 22:36:20 -0700293 "libziparchive",
Dimitry Ivanovac4bd2f2016-11-21 12:50:38 -0800294 "libLLVMObject",
295 "libLLVMBitReader",
296 "libLLVMMC",
297 "libLLVMMCParser",
298 "libLLVMCore",
299 "libLLVMSupport",
Dimitry Ivanovc462c282016-09-15 16:25:31 -0700300 ],
301 }
Jiyong Park34a4acd2017-05-20 01:01:24 +0900302 },
Dimitry Ivanovc462c282016-09-15 16:25:31 -0700303}
304
Colin Cross2722ebb2016-07-11 16:20:06 -0700305// -----------------------------------------------------------------------------
306// Library of bionic customized gtest main function, with normal gtest output format,
307// which is needed by bionic cts test.
308// -----------------------------------------------------------------------------
309cc_test_library {
310 name: "libBionicCtsGtestMain",
311 defaults: ["bionic_tests_defaults"],
Dimitry Ivanov927877c2016-09-21 11:17:13 -0700312 srcs: [
313 "gtest_main.cpp",
314 "gtest_globals_cts.cpp",
315 ],
Colin Cross2722ebb2016-07-11 16:20:06 -0700316 cppflags: ["-DUSING_GTEST_OUTPUT_FORMAT"],
Dimitry Ivanova36e59b2016-09-01 11:37:39 -0700317 shared: {
318 enabled: false,
319 },
Colin Cross2722ebb2016-07-11 16:20:06 -0700320}
321
322// -----------------------------------------------------------------------------
323// Tests for the device using bionic's .so. Run with:
324// adb shell /data/nativetest/bionic-unit-tests/bionic-unit-tests32
325// adb shell /data/nativetest/bionic-unit-tests/bionic-unit-tests64
326// adb shell /data/nativetest/bionic-unit-tests/bionic-unit-tests-gcc32
327// adb shell /data/nativetest/bionic-unit-tests/bionic-unit-tests-gcc64
328// -----------------------------------------------------------------------------
329cc_defaults {
330 name: "bionic_unit_tests_defaults",
331 host_supported: false,
332
333 whole_static_libs: [
334 "libBionicTests",
Dimitry Ivanovc462c282016-09-15 16:25:31 -0700335 "libBionicLoaderTests",
Colin Cross2722ebb2016-07-11 16:20:06 -0700336 "libBionicGtestMain",
337 ],
338
339 static_libs: [
340 "libtinyxml2",
341 "liblog",
342 "libbase",
343 ],
344
345 srcs: [
346 // TODO: Include __cxa_thread_atexit_test.cpp to glibc tests once it is upgraded (glibc 2.18+)
Colin Cross2722ebb2016-07-11 16:20:06 -0700347 "__cxa_thread_atexit_test.cpp",
Colin Cross2722ebb2016-07-11 16:20:06 -0700348 "thread_local_test.cpp",
349 ],
350
351 conlyflags: [
352 "-fexceptions",
353 "-fnon-call-exceptions",
354 ],
355
356 ldflags: ["-Wl,--export-dynamic"],
357
358 include_dirs: ["bionic/libc"],
359
Yabin Cui1f553ea2017-01-13 12:31:59 -0800360 stl: "libc++_static",
361
Colin Cross2722ebb2016-07-11 16:20:06 -0700362 target: {
363 android: {
364 shared_libs: [
365 "libdl",
Colin Cross2722ebb2016-07-11 16:20:06 -0700366 "libdl_preempt_test_1",
367 "libdl_preempt_test_2",
368 "libdl_test_df_1_global",
369 ],
370 static_libs: [
371 // The order of these libraries matters, do not shuffle them.
372 "libbase",
Dimitry Ivanovc462c282016-09-15 16:25:31 -0700373 "libpagemap",
Colin Cross2722ebb2016-07-11 16:20:06 -0700374 "libziparchive",
375 "libz",
376 "libutils",
Dimitry Ivanovac4bd2f2016-11-21 12:50:38 -0800377 "libLLVMObject",
378 "libLLVMBitReader",
379 "libLLVMMC",
380 "libLLVMMCParser",
381 "libLLVMCore",
382 "libLLVMSupport",
Colin Cross2722ebb2016-07-11 16:20:06 -0700383 ],
Dimitry Ivanova36e59b2016-09-01 11:37:39 -0700384 ldflags: [
Colin Cross7b294952016-09-29 14:08:13 -0700385 "-Wl,--rpath,${ORIGIN}/../bionic-loader-test-libs",
Dimitry Ivanova36e59b2016-09-01 11:37:39 -0700386 "-Wl,--enable-new-dtags",
387 ],
Colin Cross2722ebb2016-07-11 16:20:06 -0700388 },
389 }
390}
391
392cc_test {
393 name: "bionic-unit-tests",
394 defaults: ["bionic_unit_tests_defaults", "bionic_tests_defaults"],
395 clang: true,
Elliott Hughesa57ca0d2016-11-17 18:18:08 -0800396
397 target: {
398 android: {
399 shared_libs: ["libicuuc"],
400 },
401 },
Dimitry Ivanov4bd35422017-04-10 16:52:25 -0700402
403 required: [
404 "cfi_test_helper",
405 "cfi_test_helper2",
406 "libtest_dt_runpath_a",
407 "libtest_dt_runpath_b",
408 "libtest_dt_runpath_c",
409 "libtest_dt_runpath_x",
410 "libatest_simple_zip",
411 "libcfi-test",
412 "libcfi-test-bad",
413 "libdlext_test_different_soname",
414 "libdlext_test_fd",
415 "libdlext_test_norelro",
416 "libdlext_test_runpath_zip_zipaligned",
417 "libdlext_test",
418 "libdlext_test_zip",
419 "libdlext_test_zip_zipaligned",
420 "libdl_preempt_test_1",
421 "libdl_preempt_test_2",
422 "libdl_test_df_1_global",
Dimitry Ivanovf1db8372017-04-19 11:58:52 -0700423 "libgnu-hash-table-library",
Dimitry Ivanov4bd35422017-04-10 16:52:25 -0700424 "libsysv-hash-table-library",
425 "libtest_atexit",
426 "libtest_check_order_dlsym_1_left",
427 "libtest_check_order_dlsym_2_right",
428 "libtest_check_order_dlsym_3_c",
429 "libtest_check_order_dlsym_a",
430 "libtest_check_order_dlsym_b",
431 "libtest_check_order_dlsym_d",
432 "libtest_check_order_dlsym",
433 "libtest_check_order_reloc_root_1",
434 "libtest_check_order_reloc_root_2",
435 "libtest_check_order_reloc_root",
436 "libtest_check_order_reloc_siblings_1",
437 "libtest_check_order_reloc_siblings_2",
438 "libtest_check_order_reloc_siblings_3",
439 "libtest_check_order_reloc_siblings_a",
440 "libtest_check_order_reloc_siblings_b",
441 "libtest_check_order_reloc_siblings_c_1",
442 "libtest_check_order_reloc_siblings_c_2",
443 "libtest_check_order_reloc_siblings_c",
444 "libtest_check_order_reloc_siblings_d",
445 "libtest_check_order_reloc_siblings_e",
446 "libtest_check_order_reloc_siblings_f",
447 "libtest_check_order_reloc_siblings",
448 "libtest_check_rtld_next_from_library",
449 "libtest_dlopen_from_ctor_main",
450 "libtest_dlopen_from_ctor",
451 "libtest_dlopen_weak_undefined_func",
452 "libtest_dlsym_df_1_global",
453 "libtest_dlsym_from_this_child",
454 "libtest_dlsym_from_this_grandchild",
455 "libtest_dlsym_from_this",
456 "libtest_dlsym_weak_func",
457 "libtest_dt_runpath_d",
458 "libtest_empty",
Dimitry Ivanovf1db8372017-04-19 11:58:52 -0700459 "libtest_ifunc",
Dimitry Ivanov4bd35422017-04-10 16:52:25 -0700460 "libtest_init_fini_order_child",
461 "libtest_init_fini_order_grand_child",
462 "libtest_init_fini_order_root2",
463 "libtest_init_fini_order_root",
464 "libtest_nodelete_1",
465 "libtest_nodelete_2",
466 "libtest_nodelete_dt_flags_1",
467 "libtest_pthread_atfork",
468 "libtest_relo_check_dt_needed_order_1",
469 "libtest_relo_check_dt_needed_order_2",
470 "libtest_relo_check_dt_needed_order",
471 "libtest_simple",
472 "libtest_two_parents_child",
473 "libtest_two_parents_parent1",
474 "libtest_two_parents_parent2",
475 "libtest_versioned_lib",
476 "libtest_versioned_libv1",
477 "libtest_versioned_libv2",
478 "libtest_versioned_otherlib_empty",
479 "libtest_versioned_otherlib",
480 "libtest_versioned_uselibv1",
481 "libtest_versioned_uselibv2_other",
482 "libtest_versioned_uselibv2",
483 "libtest_versioned_uselibv3_other",
484 "libtest_with_dependency_loop_a",
485 "libtest_with_dependency_loop_b",
486 "libtest_with_dependency_loop_c",
487 "libtest_with_dependency_loop",
488 "libtest_with_dependency",
489 "libtest_invalid-empty_shdr_table.so",
490 "libtest_invalid-rw_load_segment.so",
491 "libtest_invalid-unaligned_shdr_offset.so",
492 "libtest_invalid-zero_shdr_table_content.so",
493 "libtest_invalid-zero_shdr_table_offset.so",
494 "libtest_invalid-zero_shentsize.so",
495 "libtest_invalid-zero_shstrndx.so",
496 "libtest_invalid-textrels.so",
497 "libtest_invalid-textrels2.so",
498 "preinit_getauxval_test_helper",
499 "preinit_syscall_test_helper",
500 "libnstest_private_external",
501 "libnstest_dlopened",
502 "libnstest_private",
503 "libnstest_root_not_isolated",
504 "libnstest_root",
505 "libnstest_public",
506 "libnstest_public_internal",
507 ],
Colin Cross2722ebb2016-07-11 16:20:06 -0700508}
509
Colin Cross2722ebb2016-07-11 16:20:06 -0700510// -----------------------------------------------------------------------------
511// Tests for the device linked against bionic's static library. Run with:
512// adb shell /data/nativetest/bionic-unit-tests-static/bionic-unit-tests-static32
513// adb shell /data/nativetest/bionic-unit-tests-static/bionic-unit-tests-static64
514// -----------------------------------------------------------------------------
515cc_test {
516 name: "bionic-unit-tests-static",
517 defaults: ["bionic_tests_defaults"],
518 host_supported: false,
519
Dimitry Ivanov462ea662017-01-06 14:49:57 -0800520 srcs: [
521 "gtest_preinit_debuggerd.cpp",
522 ],
Colin Cross2722ebb2016-07-11 16:20:06 -0700523 whole_static_libs: [
524 "libBionicTests",
525 "libBionicGtestMain",
526 ],
527
528 static_libs: [
529 "libm",
530 "libc",
531 "libc++_static",
532 "libdl",
533 "libtinyxml2",
534 "liblog",
535 "libbase",
Josh Gao2a3b4fa2016-10-26 17:55:49 -0700536 "libdebuggerd_handler",
Colin Cross2722ebb2016-07-11 16:20:06 -0700537 ],
538
539 static_executable: true,
540 stl: "libc++_static",
541
542 // libc and libc++ both define std::nothrow. libc's is a private symbol, but this
543 // still causes issues when linking libc.a and libc++.a, since private isn't
544 // effective until it has been linked. To fix this, just allow multiple symbol
545 // definitions for the static tests.
546 ldflags: ["-Wl,--allow-multiple-definition"],
547}
548
549// -----------------------------------------------------------------------------
550// Tests to run on the host and linked against glibc. Run with:
551// cd bionic/tests; mm bionic-unit-tests-glibc-run
552// -----------------------------------------------------------------------------
553
554cc_test_host {
555 name: "bionic-unit-tests-glibc",
556 defaults: ["bionic_tests_defaults"],
557
558 srcs: [
559 "atexit_test.cpp",
Dimitry Ivanov708589f2016-09-19 10:50:28 -0700560 "dlfcn_symlink_support.cpp",
Colin Cross2722ebb2016-07-11 16:20:06 -0700561 "dlfcn_test.cpp",
562 "dl_test.cpp",
563 "pthread_dlfcn_test.cpp",
564 ],
565
566 shared_libs: [
567 "libdl_preempt_test_1",
568 "libdl_preempt_test_2",
569
570 "libdl_test_df_1_global",
571 ],
572
573 whole_static_libs: [
574 "libBionicStandardTests",
575 "libBionicGtestMain",
Colin Cross2722ebb2016-07-11 16:20:06 -0700576 "libfortify1-tests-clang",
577 "libfortify2-tests-clang",
578 ],
579
580 static_libs: [
581 "libbase",
582 "liblog",
583 "libcutils",
584 ],
585
586 host_ldlibs: [
587 "-lresolv",
588 "-lrt",
589 "-ldl",
590 "-lutil",
591 ],
592
593 include_dirs: ["bionic/libc"],
594
Dimitry Ivanovd0b5c3a2016-11-25 12:23:11 -0800595 ldflags: [
596 "-Wl,--rpath,${ORIGIN}/../bionic-loader-test-libs",
597 "-Wl,--export-dynamic",
598 ],
Colin Cross2722ebb2016-07-11 16:20:06 -0700599
600 sanitize: {
601 never: false,
602 },
Colin Cross2722ebb2016-07-11 16:20:06 -0700603}
604
605subdirs = ["libs"]