• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
67test_sharedlib("dlopen_register_a") {
68}
69
70test_sharedlib("dlopen_register_b") {
71}
72
73test_sharedlib("dlopen_register_c") {
74}
75
76group("dso_shared") {
77  testonly = true
78
79  deps = [
80    ":atexit_dlclose_dso",
81    ":dl_multithread_test_dso",
82    ":dlclose_recursive",
83    ":dlclose_recursive_dlopen_so",
84    ":dlclose_reset_dso",
85    ":dlclose_tls",
86    ":dlopen_dso",
87    ":dlopen_for_load_by_global_dso",
88    ":dlopen_for_load_by_local_dso",
89    ":dlopen_global",
90    ":dlopen_init",
91    ":dlopen_local",
92    ":dlopen_ns_dso",
93    ":dlopen_register_a",
94    ":dlopen_register_b",
95    ":dlopen_register_c",
96    ":dlopen_so_dep_dlopen_ns_dso",
97    ":dlopen_weak",
98    ":dlopen_weak_deps",
99    ":tls_align_dso",
100    ":tls_init_dso",
101  ]
102}
103