Debian Codegraph @

llvm-project/llvm/utils/gn/secondary/compiler-rt/lib/scudo/standalone/tests/BUILD.gn

raw
1 import("//llvm/utils/gn/build/toolchain/compiler.gni")
2 import("//third-party/unittest/unittest.gni")
3
4 test_cflags = [ "-DSCUDO_DEBUG=1" ]
5
6 unittest("ScudoUnitTest") {
7 configs += [ "//llvm/utils/gn/build:crt_code" ]
8 cflags = test_cflags
9 deps = [ "//compiler-rt/lib/scudo/standalone:sources" ]
10 sources = [
11 "atomic_test.cpp",
12 "bytemap_test.cpp",
13 "checksum_test.cpp",
14 "chunk_test.cpp",
15 "combined_test.cpp",
16 "common_test.cpp",
17 "flags_test.cpp",
18 "list_test.cpp",
19 "map_test.cpp",
20 "memtag_test.cpp",
21 "mutex_test.cpp",
22 "primary_test.cpp",
23 "quarantine_test.cpp",
24 "release_test.cpp",
25 "report_test.cpp",
26 "scudo_unit_test.h",
27 "scudo_unit_test_main.cpp",
28 "secondary_test.cpp",
29 "size_class_map_test.cpp",
30 "stats_test.cpp",
31 "strings_test.cpp",
32 "tsd_test.cpp",
33 "vector_test.cpp",
34 ]
35 has_custom_main = true
36 }
37
38 unittest("ScudoCUnitTest") {
39 configs += [ "//llvm/utils/gn/build:crt_code" ]
40 cflags = test_cflags
41 deps = [
42 "//compiler-rt/lib/scudo/standalone:c_wrapper_sources",
43 "//compiler-rt/lib/scudo/standalone:sources",
44 ]
45 sources = [
46 "scudo_unit_test_main.cpp",
47 "wrappers_c_test.cpp",
48 ]
49 has_custom_main = true
50 }
51
52 unittest("ScudoCxxUnitTest") {
53 configs += [ "//llvm/utils/gn/build:crt_code" ]
54 cflags = test_cflags
55 deps = [
56 "//compiler-rt/lib/scudo/standalone:c_wrapper_sources",
57 "//compiler-rt/lib/scudo/standalone:cxx_wrapper_sources",
58 "//compiler-rt/lib/scudo/standalone:sources",
59 ]
60 sources = [
61 "scudo_unit_test_main.cpp",
62 "wrappers_cpp_test.cpp",
63 ]
64 if (is_clang) {
65 cflags += [ "-Wno-mismatched-new-delete" ]
66 }
67 has_custom_main = true
68 }