BUILD 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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_cc//cc:defs.bzl", "cc_library", "cc_test")
  5. load("//testing/file_test:rules.bzl", "file_test")
  6. package(default_visibility = ["//visibility:public"])
  7. file_test(
  8. name = "file_test",
  9. size = "small",
  10. srcs = ["file_test.cpp"],
  11. tests = [
  12. "//toolchain/check:testdata",
  13. "//toolchain/codegen:testdata",
  14. "//toolchain/diagnostics:testdata",
  15. "//toolchain/driver:testdata",
  16. "//toolchain/lex:testdata",
  17. "//toolchain/lower:testdata",
  18. "//toolchain/parse:testdata",
  19. ],
  20. deps = [
  21. "//common:all_llvm_targets",
  22. "//common:error",
  23. "//testing/file_test:file_test_base",
  24. "//toolchain/driver",
  25. "@llvm-project//llvm:Support",
  26. ],
  27. )
  28. cc_library(
  29. name = "yaml_test_helpers",
  30. testonly = 1,
  31. srcs = ["yaml_test_helpers.cpp"],
  32. hdrs = ["yaml_test_helpers.h"],
  33. deps = [
  34. "//common:error",
  35. "//common:ostream",
  36. "@abseil-cpp//absl/strings",
  37. "@googletest//:gtest",
  38. "@llvm-project//llvm:Support",
  39. ],
  40. )
  41. cc_test(
  42. name = "yaml_test_helpers_test",
  43. size = "small",
  44. srcs = ["yaml_test_helpers_test.cpp"],
  45. deps = [
  46. ":yaml_test_helpers",
  47. "//testing/base:gtest_main",
  48. "@googletest//:gtest",
  49. ],
  50. )