245 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 wchar.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 = "btowc_test",15 srcs = ["btowc_test.cpp"],16 deps = [17 "//libc:btowc",18 "//libc:hdr_wchar_macros",19 ],20)21 22libc_test(23 name = "wcpcpy_test",24 srcs = ["wcpcpy_test.cpp"],25 deps = [26 "//libc:types_wchar_t",27 "//libc:wcpcpy",28 ],29)30 31libc_test(32 name = "wcpncpy_test",33 srcs = ["wcpncpy_test.cpp"],34 deps = [35 "//libc:types_wchar_t",36 "//libc:wcpncpy",37 ],38)39 40libc_test(41 name = "wcscat_test",42 srcs = ["wcscat_test.cpp"],43 deps = [44 "//libc:types_wchar_t",45 "//libc:wcscat",46 ],47)48 49libc_test(50 name = "wcschr_test",51 srcs = ["wcschr_test.cpp"],52 deps = [53 "//libc:types_wchar_t",54 "//libc:wcschr",55 ],56)57 58libc_test(59 name = "wcscmp_test",60 srcs = ["wcscmp_test.cpp"],61 deps = [62 "//libc:types_wchar_t",63 "//libc:wcscmp",64 ],65)66 67libc_test(68 name = "wcscpy_test",69 srcs = ["wcscpy_test.cpp"],70 deps = [71 "//libc:types_wchar_t",72 "//libc:wcscpy",73 ],74)75 76libc_test(77 name = "wcscspn_test",78 srcs = ["wcscspn_test.cpp"],79 deps = [80 "//libc:types_size_t",81 "//libc:types_wchar_t",82 "//libc:wcscspn",83 ],84)85 86libc_test(87 name = "wcslcat_test",88 srcs = ["wcslcat_test.cpp"],89 deps = [90 "//libc:types_size_t",91 "//libc:types_wchar_t",92 "//libc:wcslcat",93 ],94)95 96libc_test(97 name = "wcslcpy_test",98 srcs = ["wcslcpy_test.cpp"],99 deps = [100 "//libc:types_size_t",101 "//libc:types_wchar_t",102 "//libc:wcslcpy",103 ],104)105 106libc_test(107 name = "wcslen_test",108 srcs = ["wcslen_test.cpp"],109 deps = [110 "//libc:types_size_t",111 "//libc:types_wchar_t",112 "//libc:wcslen",113 ],114)115 116libc_test(117 name = "wcsncat_test",118 srcs = ["wcsncat_test.cpp"],119 deps = [120 "//libc:types_wchar_t",121 "//libc:wcsncat",122 ],123)124 125libc_test(126 name = "wcsncmp_test",127 srcs = ["wcsncmp_test.cpp"],128 deps = [129 "//libc:types_wchar_t",130 "//libc:wcsncmp",131 ],132)133 134libc_test(135 name = "wcsncpy_test",136 srcs = ["wcsncpy_test.cpp"],137 deps = [138 "//libc:types_wchar_t",139 "//libc:wcsncpy",140 ],141)142 143libc_test(144 name = "wcsrchr_test",145 srcs = ["wcsrchr_test.cpp"],146 deps = [147 "//libc:types_wchar_t",148 "//libc:wcsrchr",149 ],150)151 152libc_test(153 name = "wcspbrk_test",154 srcs = ["wcspbrk_test.cpp"],155 deps = [156 "//libc:types_wchar_t",157 "//libc:wcspbrk",158 ],159)160 161libc_test(162 name = "wcsspn_test",163 srcs = ["wcsspn_test.cpp"],164 deps = [165 "//libc:types_size_t",166 "//libc:types_wchar_t",167 "//libc:wcsspn",168 ],169)170 171libc_test(172 name = "wcsstr_test",173 srcs = ["wcsstr_test.cpp"],174 deps = [175 "//libc:types_wchar_t",176 "//libc:wcsstr",177 ],178)179 180libc_test(181 name = "wctob_test",182 srcs = ["wctob_test.cpp"],183 deps = [184 "//libc:hdr_stdio_macros",185 "//libc:wctob",186 ],187)188 189libc_test(190 name = "wmemchr_test",191 srcs = ["wmemchr_test.cpp"],192 deps = [193 "//libc:types_wchar_t",194 "//libc:wmemchr",195 ],196)197 198libc_test(199 name = "wmemcmp_test",200 srcs = ["wmemcmp_test.cpp"],201 deps = [202 "//libc:types_size_t",203 "//libc:types_wchar_t",204 "//libc:wmemcmp",205 ],206)207 208libc_test(209 name = "wmemcpy_test",210 srcs = ["wmemcpy_test.cpp"],211 deps = [212 "//libc:types_size_t",213 "//libc:types_wchar_t",214 "//libc:wmemcpy",215 ],216)217 218libc_test(219 name = "wmemmove_test",220 srcs = ["wmemmove_test.cpp"],221 deps = [222 "//libc:types_size_t",223 "//libc:types_wchar_t",224 "//libc:wmemmove",225 ],226)227 228libc_test(229 name = "wmempcpy_test",230 srcs = ["wmempcpy_test.cpp"],231 deps = [232 "//libc:wmempcpy",233 ],234)235 236libc_test(237 name = "wmemset_test",238 srcs = ["wmemset_test.cpp"],239 deps = [240 "//libc:types_size_t",241 "//libc:types_wchar_t",242 "//libc:wmemset",243 ],244)245