BUILD.gn 1.1 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") {
}
M
maweiye 已提交
42 43 44 45 46

group("dso_shared") {
  testonly = true

  deps = [
47
    ":atexit_dlclose_dso",
48
    ":dlclose_reset_dso",
C
caifuzhou 已提交
49
    ":dlopen_dso",
Y
yinchuang 已提交
50 51
    ":dlopen_for_load_by_global_dso",
    ":dlopen_for_load_by_local_dso",
Y
yangwenjun 已提交
52
    ":dlopen_ns_dso",
Y
yinchuang 已提交
53
    ":dlopen_so_dep_dlopen_ns_dso",
M
maweiye 已提交
54 55 56 57
    ":tls_align_dso",
    ":tls_init_dso",
  ]
}