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. data = ["//core"],
  12. tests = [
  13. "//toolchain/check:testdata",
  14. "//toolchain/codegen:testdata",
  15. "//toolchain/diagnostics:testdata",
  16. "//toolchain/driver:testdata",
  17. "//toolchain/lex:testdata",
  18. "//toolchain/lower:testdata",
  19. "//toolchain/parse:testdata",
  20. ],
  21. deps = [
  22. "//common:all_llvm_targets",
  23. "//common:error",
  24. "//testing/file_test:file_test_base",
  25. "//toolchain/driver",
  26. "@llvm-project//llvm:Support",
  27. ],
  28. )
  29. cc_library(
  30. name = "yaml_test_helpers",
  31. testonly = 1,
  32. srcs = ["yaml_test_helpers.cpp"],
  33. hdrs = ["yaml_test_helpers.h"],
  34. deps = [
  35. "//common:error",
  36. "//common:ostream",
  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. )