summaryrefslogtreecommitdiffstats
path: root/utils/bazel/llvm-project-overlay/libc/test/src/__support/BUILD.bazel
blob: c0d402a89ea3ce6a9c44d35e67573f33a532681e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
# This file is licensed under the Apache License v2.0 with LLVM Exceptions.
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

# Tests for LLVM libc __support functions.

load("//libc/test:libc_test_rules.bzl", "libc_test")

package(default_visibility = ["//visibility:public"])

licenses(["notice"])

libc_test(
    name = "math_extras_test",
    srcs = ["math_extras_test.cpp"],
    deps = [
        "//libc:__support_integer_literals",
        "//libc:__support_math_extras",
        "//libc:__support_uint128",
    ],
)

# This test is currently disabled because of an issue in
# `libc/src/__support/CPP/new.h` which currently fails with
# "error: cannot apply asm label to function after its first use"
# libc_test(
#     name = "blockstore_test",
#     srcs = ["blockstore_test.cpp"],
#     deps = ["//libc:__support_blockstore"],
# )

libc_test(
    name = "endian_test",
    srcs = ["endian_test.cpp"],
    deps = ["//libc:__support_common"],
)

libc_test(
    name = "high_precision_decimal_test",
    srcs = ["high_precision_decimal_test.cpp"],
    deps = [
        "//libc:__support_str_to_float",
        "//libc:__support_uint128",
    ],
)

libc_test(
    name = "str_to_float_test",
    srcs = [
        "str_to_double_test.cpp",
        "str_to_float_test.cpp",
        "str_to_fp_test.h",
        "str_to_long_double_test.cpp",
    ],
    deps = [
        "//libc:__support_fputil_fp_bits",
        "//libc:__support_integer_literals",
        "//libc:__support_str_to_float",
        "//libc:__support_uint128",
    ],
)

libc_test(
    name = "integer_to_string_test",
    srcs = ["integer_to_string_test.cpp"],
    deps = [
        "//libc:__support_cpp_limits",
        "//libc:__support_cpp_span",
        "//libc:__support_cpp_string_view",
        "//libc:__support_integer_literals",
        "//libc:__support_integer_to_string",
        "//libc:__support_uint",
        "//libc:__support_uint128",
    ],
)

libc_test(
    name = "arg_list_test",
    srcs = ["arg_list_test.cpp"],
    deps = [
        "//libc:__support_arg_list",
    ],
)

libc_test(
    name = "uint_test",
    srcs = ["uint_test.cpp"],
    deps = [
        "//libc:__support_cpp_optional",
        "//libc:__support_integer_literals",
        "//libc:__support_macros_properties_types",
        "//libc:__support_uint",
        "//libc:llvm_libc_macros_math_macros",
    ],
)

libc_test(
    name = "fixedvector_test",
    srcs = ["fixedvector_test.cpp"],
    deps = [
        "//libc:__support_fixedvector",
    ],
)

libc_test(
    name = "char_vector_test",
    srcs = ["char_vector_test.cpp"],
    deps = [
        "//libc:__support_char_vector",
    ],
)

libc_test(
    name = "integer_literals_test",
    srcs = ["integer_literals_test.cpp"],
    deps = [
        "//libc:__support_integer_literals",
        "//libc:__support_macros_properties_types",
    ],
)