brintos

brintos / llvm-project-archived public Read only

0
0
Text · 3.0 KiB · 0698f45 Raw
124 lines · plain
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-exception4 5# Tests for LLVM libc __support 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 = "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 in24# `libc/src/__support/CPP/new.h` which currently fails with25# "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 32libc_test(33    name = "endian_internal_test",34    srcs = ["endian_internal_test.cpp"],35    deps = ["//libc:__support_common"],36)37 38libc_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 47libc_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 63libc_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 77libc_test(78    name = "arg_list_test",79    srcs = ["arg_list_test.cpp"],80    deps = [81        "//libc:__support_arg_list",82        "//libc:__support_macros_properties_os",83    ],84)85 86libc_test(87    name = "big_int_test",88    srcs = ["big_int_test.cpp"],89    deps = [90        "//libc:__support_big_int",91        "//libc:__support_cpp_optional",92        "//libc:__support_integer_literals",93        "//libc:__support_macros_properties_types",94        "//libc:hdr_math_macros",95        "//libc:llvm_libc_macros_math_macros",96    ],97)98 99libc_test(100    name = "fixedvector_test",101    srcs = ["fixedvector_test.cpp"],102    deps = [103        "//libc:__support_cpp_array",104        "//libc:__support_fixedvector",105    ],106)107 108libc_test(109    name = "char_vector_test",110    srcs = ["char_vector_test.cpp"],111    deps = [112        "//libc:__support_char_vector",113    ],114)115 116libc_test(117    name = "integer_literals_test",118    srcs = ["integer_literals_test.cpp"],119    deps = [120        "//libc:__support_integer_literals",121        "//libc:__support_macros_properties_types",122    ],123)124