BUILD 784 B

123456789101112131415161718192021222324252627282930
  1. # Part of the Carbon Language project, under the Apache License v2.0 with LLVM
  2. # Exceptions. See /LICENSE for license information.
  3. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. load("rules.bzl", "file_test")
  5. package(default_visibility = ["//visibility:public"])
  6. cc_library(
  7. name = "file_test_base",
  8. testonly = 1,
  9. srcs = ["file_test_base.cpp"],
  10. hdrs = ["file_test_base.h"],
  11. deps = [
  12. "//common:check",
  13. "@com_google_googletest//:gtest",
  14. "@llvm-project//llvm:Support",
  15. ],
  16. )
  17. file_test(
  18. name = "file_test_base_test",
  19. srcs = ["file_test_base_test.cpp"],
  20. tests = glob(["testdata/**"]),
  21. deps = [
  22. ":file_test_base",
  23. "@com_google_googletest//:gtest",
  24. "@llvm-project//llvm:Support",
  25. ],
  26. )