Debian Codegraph @

utils/bazel/llvm-project-overlay/libc/test/src/__support/BUILD.bazel

raw
1 # This file is licensed under the Apache License v2.0 with LLVM Exceptions.
2 # See https://llvm.org/LICENSE.txt for license information.
3 # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
4
5 # Tests for LLVM libc __support functions.
6
7 load("//libc/test:libc_test_rules.bzl", "libc_test")
8
9 package(default_visibility = ["//visibility:public"])
10
11 licenses(["notice"])
12
13 libc_test(
14 name = "math_extras_test",
15 srcs = ["math_extras_test.cpp"],
16 deps = [
17 "//libc:__support_integer_literals",
18 "//libc:__support_math_extras",
19 "//libc:__support_uint128",
20 ],
21 )
22
23 # This test is currently disabled because of an issue in
24 # `libc/src/__support/CPP/new.h` which currently fails with
25 # "error: cannot apply asm label to function after its first use"
26 # libc_test(
27 # name = "blockstore_test",
28 # srcs = ["blockstore_test.cpp"],
29 # deps = ["//libc:__support_blockstore"],
30 # )
31
32 libc_test(
33 name = "endian_test",
34 srcs = ["endian_test.cpp"],
35 deps = ["//libc:__support_common"],
36 )
37
38 libc_test(
39 name = "high_precision_decimal_test",
40 srcs = ["high_precision_decimal_test.cpp"],
41 deps = [
42 "//libc:__support_str_to_float",
43 "//libc:__support_uint128",
44 ],
45 )
46
47 libc_test(
48 name = "str_to_float_test",
49 srcs = [
50 "str_to_double_test.cpp",
51 "str_to_float_test.cpp",
52 "str_to_fp_test.h",
53 "str_to_long_double_test.cpp",
54 ],
55 deps = [
56 "//libc:__support_fputil_fp_bits",
57 "//libc:__support_integer_literals",
58 "//libc:__support_str_to_float",
59 "//libc:__support_uint128",
60 ],
61 )
62
63 libc_test(
64 name = "integer_to_string_test",
65 srcs = ["integer_to_string_test.cpp"],
66 deps = [
67 "//libc:__support_big_int",
68 "//libc:__support_cpp_limits",
69 "//libc:__support_cpp_span",
70 "//libc:__support_cpp_string_view",
71 "//libc:__support_integer_literals",
72 "//libc:__support_integer_to_string",
73 "//libc:__support_uint128",
74 ],
75 )
76
77 libc_test(
78 name = "arg_list_test",
79 srcs = ["arg_list_test.cpp"],
80 deps = [
81 "//libc:__support_arg_list",
82 ],
83 )
84
85 libc_test(
86 name = "big_int_test",
87 srcs = ["big_int_test.cpp"],
88 deps = [
89 "//libc:__support_big_int",
90 "//libc:__support_cpp_optional",
91 "//libc:__support_integer_literals",
92 "//libc:__support_macros_properties_types",
93 "//libc:hdr_math_macros",
94 "//libc:llvm_libc_macros_math_macros",
95 ],
96 )
97
98 libc_test(
99 name = "fixedvector_test",
100 srcs = ["fixedvector_test.cpp"],
101 deps = [
102 "//libc:__support_cpp_array",
103 "//libc:__support_fixedvector",
104 ],
105 )
106
107 libc_test(
108 name = "char_vector_test",
109 srcs = ["char_vector_test.cpp"],
110 deps = [
111 "//libc:__support_char_vector",
112 ],
113 )
114
115 libc_test(
116 name = "integer_literals_test",
117 srcs = ["integer_literals_test.cpp"],
118 deps = [
119 "//libc:__support_integer_literals",
120 "//libc:__support_macros_properties_types",
121 ],
122 )