BUILD.gn 1.2 KB
Newer Older
M
maweiye 已提交
1 2 3
import("../../test_template.gni")
import("test_src_functional.gni")

Z
zgq-0218 已提交
4
if (is_standard_system && musl_iterate_and_stats_api) {
5 6 7
  functional_list += malloc_stats_list
}

M
maweiye 已提交
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
foreach(s, functional_list) {
  test_unittest(s) {
    target_dir = "functional"
  }
}

group("functional_test") {
  testonly = true
  deps = [ ":dso_shared" ]

  foreach(s, functional_list) {
    deps += [ ":${s}" ]
  }
}

Y
yangwenjun 已提交
23 24
test_sharedlib("dlopen_ns_dso") {
}
Y
yinchuang 已提交
25 26 27 28 29 30 31
test_sharedlib("dlopen_so_dep_dlopen_ns_dso") {
  deps = [ ":dlopen_ns_dso" ]
}
test_sharedlib("dlopen_for_load_by_global_dso") {
}
test_sharedlib("dlopen_for_load_by_local_dso") {
}
M
maweiye 已提交
32 33
test_sharedlib("dlopen_dso") {
}
34 35
test_sharedlib("dlclose_reset_dso") {
}
M
maweiye 已提交
36 37 38 39
test_sharedlib("tls_init_dso") {
}
test_sharedlib("tls_align_dso") {
}
40 41
test_sharedlib("atexit_dlclose_dso") {
}
42 43 44 45 46
test_sharedlib("dlopen_weak_deps") {
}
test_sharedlib("dlopen_weak") {
  deps = [ ":dlopen_weak_deps" ]
}
M
maweiye 已提交
47 48 49 50 51

group("dso_shared") {
  testonly = true

  deps = [
52
    ":atexit_dlclose_dso",
53
    ":dlclose_reset_dso",
C
caifuzhou 已提交
54
    ":dlopen_dso",
Y
yinchuang 已提交
55 56
    ":dlopen_for_load_by_global_dso",
    ":dlopen_for_load_by_local_dso",
Y
yangwenjun 已提交
57
    ":dlopen_ns_dso",
Y
yinchuang 已提交
58
    ":dlopen_so_dep_dlopen_ns_dso",
59 60
    ":dlopen_weak",
    ":dlopen_weak_deps",
M
maweiye 已提交
61 62 63 64
    ":tls_align_dso",
    ":tls_init_dso",
  ]
}