| 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-exception |
| 4 |
|
| 5 |
load("@bazel_skylib//rules:build_test.bzl", "build_test") |
| 6 |
load("//libc:libc_build_rules.bzl", "libc_release_library") |
| 7 |
|
| 8 |
package(default_visibility = ["//visibility:public"]) |
| 9 |
|
| 10 |
licenses(["notice"]) |
| 11 |
|
| 12 |
exports_files(["libc_test_rules.bzl"]) |
| 13 |
|
| 14 |
# Smoke test verifying libc_release_library macro functionality. |
| 15 |
libc_release_library( |
| 16 |
name = "libc_release_test", |
| 17 |
libc_functions = [ |
| 18 |
"//libc:acosf", |
| 19 |
"//libc:read", |
| 20 |
], |
| 21 |
weak_symbols = [ |
| 22 |
"read", |
| 23 |
], |
| 24 |
) |
| 25 |
|
| 26 |
build_test( |
| 27 |
name = "libc_release_build_test", |
| 28 |
targets = [":libc_release_test"], |
| 29 |
) |