[all-commits] [llvm/llvm-project] d856e5: [reland][libc][bazel] Add tests to the bazel build

Guillaume Chatelet via All-commits all-commits at lists.llvm.org
Fri Nov 18 05:21:13 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d856e5feacd56e01e713323e534c8dba52766b73
      https://github.com/llvm/llvm-project/commit/d856e5feacd56e01e713323e534c8dba52766b73
  Author: Guillaume Chatelet <gchatelet at google.com>
  Date:   2022-11-18 (Fri, 18 Nov 2022)

  Changed paths:
    M utils/bazel/.bazelrc
    M utils/bazel/WORKSPACE
    M utils/bazel/llvm-project-overlay/libc/BUILD.bazel
    A utils/bazel/llvm-project-overlay/libc/test/BUILD.bazel
    A utils/bazel/llvm-project-overlay/libc/test/libc_test_rules.bzl
    A utils/bazel/llvm-project-overlay/libc/test/src/fenv/BUILD.bazel
    A utils/bazel/llvm-project-overlay/libc/test/src/math/BUILD.bazel
    A utils/bazel/llvm-project-overlay/libc/test/src/math/libc_math_test_rules.bzl
    A utils/bazel/llvm-project-overlay/libc/test/src/stdlib/BUILD.bazel
    A utils/bazel/llvm-project-overlay/libc/test/src/string/BUILD.bazel
    A utils/bazel/llvm-project-overlay/libc/utils/MPFRWrapper/BUILD.bazel
    A utils/bazel/llvm-project-overlay/libc/utils/UnitTest/BUILD.bazel
    A utils/bazel/llvm-project-overlay/libc/utils/testutils/BUILD.bazel
    A utils/bazel/third_party_build/gmp.BUILD
    A utils/bazel/third_party_build/mpfr.BUILD

  Log Message:
  -----------
  [reland][libc][bazel] Add tests to the bazel build

This patch adds bazel tests for llvm-libc.

Some math tests rely on the `mpfr` library. This is controlled via the `-- at llvm-project//libc:libc_math_mpfr` flag. It can take three values:
 - `external` (default) will build `mpfr` and `gmp` from source.
 - `system` will use the system installed `mpfr` library.
 - `disable` will skip tests relying on `mpfr`.

Reviewed By: sivachandra, GMNGeoffrey

Differential Revision: https://reviews.llvm.org/D119547




More information about the All-commits mailing list