BUILD 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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 = "autoupdate",
  8. testonly = 1,
  9. srcs = ["autoupdate.cpp"],
  10. hdrs = [
  11. "autoupdate.h",
  12. "line.h",
  13. ],
  14. deps = [
  15. "//common:check",
  16. "//common:ostream",
  17. "@com_google_absl//absl/strings:string_view",
  18. "@com_googlesource_code_re2//:re2",
  19. "@llvm-project//llvm:Support",
  20. ],
  21. )
  22. cc_library(
  23. name = "file_test_base",
  24. testonly = 1,
  25. srcs = ["file_test_base.cpp"],
  26. hdrs = ["file_test_base.h"],
  27. deps = [
  28. ":autoupdate",
  29. "//common:check",
  30. "//common:error",
  31. "//common:ostream",
  32. "@com_google_absl//absl/flags:flag",
  33. "@com_google_absl//absl/flags:parse",
  34. "@com_google_googletest//:gtest",
  35. "@llvm-project//llvm:Support",
  36. ],
  37. )
  38. file_test(
  39. name = "file_test_base_test",
  40. srcs = ["file_test_base_test.cpp"],
  41. tests = glob(["testdata/**"]),
  42. deps = [
  43. ":file_test_base",
  44. "@com_google_googletest//:gtest",
  45. "@llvm-project//llvm:Support",
  46. ],
  47. )