# 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 strings.h functions. load("//libc/test:libc_test_rules.bzl", "libc_test") package(default_visibility = ["//visibility:public"]) licenses(["notice"]) libc_test( name = "bcopy_test", srcs = ["bcopy_test.cpp"], deps = [ "//libc:__support_cpp_span", "//libc:bcopy", "//libc/test/UnitTest:memory_matcher", "//libc/test/src/string:memory_check_utils", ], ) libc_test( name = "bcmp_test", srcs = ["bcmp_test.cpp"], deps = [ "//libc:bcmp", "//libc/test/UnitTest:test_logger", "//libc/test/src/string:memory_check_utils", ], ) libc_test( name = "bzero_test", srcs = ["bzero_test.cpp"], deps = [ "//libc:bzero", "//libc/test/src/string:memory_check_utils", ], ) libc_test( name = "index_test", srcs = ["index_test.cpp"], deps = [ "//libc:index", "//libc/test/src/string:strchr_test_helper", ], ) libc_test( name = "rindex_test", srcs = ["rindex_test.cpp"], deps = [ "//libc:rindex", "//libc/test/src/string:strchr_test_helper", ], ) libc_test( name = "strcasecmp_test", srcs = ["strcasecmp_test.cpp"], deps = [ "//libc:strcasecmp", ], ) libc_test( name = "strncasecmp_test", srcs = ["strncasecmp_test.cpp"], deps = [ "//libc:strncasecmp", ], )