# 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 stdlib.h functions. load("//libc/test:libc_test_rules.bzl", "libc_test") package(default_visibility = ["//visibility:public"]) licenses(["notice"]) cc_library( name = "atoi_test_helper", hdrs = ["AtoiTest.h"], ) libc_test( name = "atoi_test", srcs = ["atoi_test.cpp"], deps = [":atoi_test_helper"], libc_function_deps = [ "//libc:atoi", ], ) libc_test( name = "atol_test", srcs = ["atol_test.cpp"], deps = [":atoi_test_helper"], libc_function_deps = [ "//libc:atol", ], ) libc_test( name = "atoll_test", srcs = ["atoll_test.cpp"], deps = [":atoi_test_helper"], libc_function_deps = [ "//libc:atoll", ], ) libc_test( name = "bsearch_test", srcs = ["bsearch_test.cpp"], libc_function_deps = [ "//libc:bsearch", ], ) libc_test( name = "qsort_test", srcs = ["qsort_test.cpp"], libc_function_deps = [ "//libc:qsort", ], ) cc_library( name = "strtol_test_helper", hdrs = ["StrtolTest.h"], ) libc_test( name = "strtol_test", srcs = ["strtol_test.cpp"], deps = [":strtol_test_helper"], libc_function_deps = [ "//libc:strtol", ], ) libc_test( name = "strtoll_test", srcs = ["strtoll_test.cpp"], deps = [":strtol_test_helper"], libc_function_deps = [ "//libc:strtoll", ], ) libc_test( name = "strtoul_test", srcs = ["strtoul_test.cpp"], deps = [":strtol_test_helper"], libc_function_deps = [ "//libc:strtoul", ], ) libc_test( name = "strtoull_test", srcs = ["strtoull_test.cpp"], deps = [":strtol_test_helper"], libc_function_deps = [ "//libc:strtoull", ], )