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 64group("dso_shared") { 65 testonly = true 66 67 deps = [ 68 ":atexit_dlclose_dso", 69 ":dlclose_recursive", 70 ":dlclose_recursive_dlopen_so", 71 ":dlclose_reset_dso", 72 ":dlclose_tls", 73 ":dlopen_dso", 74 ":dlopen_for_load_by_global_dso", 75 ":dlopen_for_load_by_local_dso", 76 ":dlopen_global", 77 ":dlopen_local", 78 ":dlopen_ns_dso", 79 ":dlopen_so_dep_dlopen_ns_dso", 80 ":dlopen_weak", 81 ":dlopen_weak_deps", 82 ":tls_align_dso", 83 ":tls_init_dso", 84 ] 85} 86