1import("../../test_template.gni") 2import("test_src_functional.gni") 3 4if (is_standard_system && musl_iterate_and_stats_api) { 5 functional_list += malloc_stats_list 6} 7 8foreach(s, functional_list) { 9 test_unittest(s) { 10 target_dir = "functional" 11 } 12} 13 14group("functional_test") { 15 testonly = true 16 deps = [ ":dso_shared" ] 17 18 foreach(s, functional_list) { 19 deps += [ ":${s}" ] 20 } 21} 22 23test_sharedlib("dl_multithread_test_dso") { 24} 25test_sharedlib("dlclose_recursive") { 26 cpp_file = true 27} 28test_sharedlib("dlclose_recursive_dlopen_so") { 29 cpp_file = true 30} 31test_sharedlib("dlclose_tls") { 32 cpp_file = true 33} 34test_sharedlib("dlopen_ns_dso") { 35} 36test_sharedlib("dlopen_so_dep_dlopen_ns_dso") { 37 deps = [ ":dlopen_ns_dso" ] 38} 39test_sharedlib("dlopen_for_load_by_global_dso") { 40} 41test_sharedlib("dlopen_for_load_by_local_dso") { 42} 43test_sharedlib("dlopen_dso") { 44} 45test_sharedlib("dlclose_reset_dso") { 46} 47test_sharedlib("tls_init_dso") { 48} 49test_sharedlib("tls_align_dso") { 50} 51test_sharedlib("atexit_dlclose_dso") { 52} 53test_sharedlib("dlopen_weak_deps") { 54} 55test_sharedlib("dlopen_weak") { 56 deps = [ ":dlopen_weak_deps" ] 57} 58test_sharedlib("dlopen_global") { 59 global = true 60} 61test_sharedlib("dlopen_local") { 62} 63 64test_sharedlib("dlopen_init") { 65} 66 67group("dso_shared") { 68 testonly = true 69 70 deps = [ 71 ":atexit_dlclose_dso", 72 ":dl_multithread_test_dso", 73 ":dlclose_recursive", 74 ":dlclose_recursive_dlopen_so", 75 ":dlclose_reset_dso", 76 ":dlclose_tls", 77 ":dlopen_dso", 78 ":dlopen_for_load_by_global_dso", 79 ":dlopen_for_load_by_local_dso", 80 ":dlopen_global", 81 ":dlopen_init", 82 ":dlopen_local", 83 ":dlopen_ns_dso", 84 ":dlopen_so_dep_dlopen_ns_dso", 85 ":dlopen_weak", 86 ":dlopen_weak_deps", 87 ":tls_align_dso", 88 ":tls_init_dso", 89 ] 90} 91