BUILD 827 B

12345678910111213141516171819202122232425262728293031
  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. "//testing/util:test_raw_ostream",
  14. "@com_google_googletest//:gtest",
  15. "@llvm-project//llvm:Support",
  16. ],
  17. )
  18. file_test(
  19. name = "file_test_base_test",
  20. srcs = ["file_test_base_test.cpp"],
  21. tests = glob(["testdata/**"]),
  22. deps = [
  23. ":file_test_base",
  24. "@com_google_googletest//:gtest",
  25. "@llvm-project//llvm:Support",
  26. ],
  27. )