brintos

brintos / llvm-project-archived public Read only

0
0
Text · 3.7 KiB · e33199c Raw
186 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 stdio.h 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 = "printf_parser_test",15    srcs = ["printf_core/parser_test.cpp"],16    deps = [17        "//libc:__support_arg_list",18        "//libc:__support_cpp_bit",19        "//libc:__support_cpp_string_view",20        "//libc:printf_core_structs",21        "//libc:printf_parser",22        "//libc/test/UnitTest:printf_matcher",23    ],24)25 26libc_test(27    name = "printf_writer_test",28    srcs = ["printf_core/writer_test.cpp"],29    deps = [30        "//libc:__support_arg_list",31        "//libc:__support_cpp_string_view",32        "//libc:printf_core_structs",33        "//libc:printf_writer",34        "//libc:string_memory_utils",35    ],36)37 38libc_test(39    name = "printf_converter_test",40    srcs = ["printf_core/converter_test.cpp"],41    deps = [42        "//libc:__support_arg_list",43        "//libc:__support_cpp_string_view",44        "//libc:printf_converter",45        "//libc:printf_core_structs",46        "//libc:printf_writer",47    ],48)49 50libc_test(51    name = "asprintf_test",52    srcs = ["asprintf_test.cpp"],53    deps = [54        "//libc:asprintf",55        "//libc:memset",56        "//libc:sprintf",57    ],58)59 60libc_test(61    name = "sprintf_test",62    srcs = ["sprintf_test.cpp"],63    deps = [64        "//libc:__support_fputil_fp_bits",65        "//libc:sprintf",66        "//libc/test/UnitTest:fp_test_helpers",67    ],68)69 70libc_test(71    name = "snprintf_test",72    srcs = ["snprintf_test.cpp"],73    deps = [74        "//libc:snprintf",75    ],76)77 78libc_test(79    name = "printf_test",80    srcs = ["printf_test.cpp"],81    deps = [82        "//libc:printf",83    ],84)85 86libc_test(87    name = "fprintf_test",88    srcs = ["fprintf_test.cpp"],89    deps = [90        "//libc:__support_cpp_limits",91        "//libc:__support_macros_properties_architectures",92        "//libc:fprintf",93    ],94)95 96libc_test(97    name = "vasprintf_test",98    srcs = ["vasprintf_test.cpp"],99    deps = [100        "//libc:memset",101        "//libc:vasprintf",102    ],103)104 105libc_test(106    name = "vsprintf_test",107    srcs = ["vsprintf_test.cpp"],108    deps = [109        "//libc:vsprintf",110    ],111)112 113libc_test(114    name = "vsnprintf_test",115    srcs = ["vsnprintf_test.cpp"],116    deps = [117        "//libc:vsnprintf",118    ],119)120 121libc_test(122    name = "vprintf_test",123    srcs = ["vprintf_test.cpp"],124    deps = [125        "//libc:vprintf",126    ],127)128 129libc_test(130    name = "vfprintf_test",131    srcs = ["vfprintf_test.cpp"],132    deps = [133        "//libc:vfprintf",134    ],135)136 137libc_test(138    name = "remove_test",139    srcs = ["remove_test.cpp"],140    deps = [141        "//libc:access",142        "//libc:close",143        "//libc:mkdirat",144        "//libc:open",145        "//libc:remove",146    ],147)148 149libc_test(150    name = "sscanf_test",151    srcs = ["sscanf_test.cpp"],152    deps = [153        "//libc:__support_cpp_limits",154        "//libc:__support_fputil_fp_bits",155        "//libc:hdr_stdio_macros",156        "//libc:sscanf",157        "//libc/test/UnitTest:fp_test_helpers",158    ],159)160 161libc_test(162    name = "fscanf_test",163    srcs = ["fscanf_test.cpp"],164    deps = [165        "//libc:__support_cpp_string_view",166        "//libc:fscanf",167    ],168)169 170libc_test(171    name = "vsscanf_test",172    srcs = ["vsscanf_test.cpp"],173    deps = [174        "//libc:vsscanf",175    ],176)177 178libc_test(179    name = "vfscanf_test",180    srcs = ["vfscanf_test.cpp"],181    deps = [182        "//libc:__support_cpp_string_view",183        "//libc:vfscanf",184    ],185)186