xref: /llvm-project/utils/bazel/llvm-project-overlay/libc/test/src/__support/CPP/BUILD.bazel (revision 09efe848cf2877ea7528411eaa0fe99224059256)
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 CPP functions.
6
7load("//libc/test:libc_test_rules.bzl", "libc_test")
8
9package(default_visibility = ["//visibility:public"])
10
11licenses(["notice"])
12
13libc_test(
14    name = "atomic_test",
15    srcs = ["atomic_test.cpp"],
16    deps = ["//libc:__support_cpp_atomic"],
17)
18
19libc_test(
20    name = "bitset_test",
21    srcs = ["bitset_test.cpp"],
22    deps = ["//libc:__support_cpp_bitset"],
23)
24
25libc_test(
26    name = "bit_test",
27    srcs = ["bit_test.cpp"],
28    deps = [
29        "//libc:__support_big_int",
30        "//libc:__support_cpp_bit",
31        "//libc:__support_macros_properties_types",
32    ],
33)
34
35libc_test(
36    name = "cstddef_test",
37    srcs = ["cstddef_test.cpp"],
38    deps = ["//libc:__support_cpp_cstddef"],
39)
40
41libc_test(
42    name = "integer_sequence_test",
43    srcs = ["integer_sequence_test.cpp"],
44    deps = ["//libc:__support_cpp_utility"],
45)
46
47libc_test(
48    name = "limits_test",
49    srcs = ["limits_test.cpp"],
50    deps = [
51        "//libc:__support_big_int",
52        "//libc:__support_cpp_limits",
53        "//libc:__support_macros_properties_types",
54    ],
55)
56
57libc_test(
58    name = "optional_test",
59    srcs = ["optional_test.cpp"],
60    deps = ["//libc:__support_cpp_optional"],
61)
62
63libc_test(
64    name = "span_test",
65    srcs = ["span_test.cpp"],
66    deps = [
67        "//libc:__support_cpp_array",
68        "//libc:__support_cpp_span",
69    ],
70)
71
72libc_test(
73    name = "stringstream_test",
74    srcs = ["stringstream_test.cpp"],
75    deps = [
76        "//libc:__support_cpp_span",
77        "//libc:__support_cpp_stringstream",
78    ],
79)
80
81libc_test(
82    name = "string_test",
83    srcs = ["string_test.cpp"],
84    deps = ["//libc:__support_cpp_string"],
85)
86
87libc_test(
88    name = "stringview_test",
89    srcs = ["stringview_test.cpp"],
90    deps = ["//libc:__support_cpp_string_view"],
91)
92
93libc_test(
94    name = "type_traits_test",
95    srcs = ["type_traits_test.cpp"],
96    deps = ["//libc:__support_cpp_type_traits"],
97)
98