BUILD 1.4 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_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. "//testing/file_test:file_test_base",
  22. "//toolchain/driver",
  23. "@llvm-project//llvm:Support",
  24. ],
  25. )
  26. cc_library(
  27. name = "yaml_test_helpers",
  28. testonly = 1,
  29. srcs = ["yaml_test_helpers.cpp"],
  30. hdrs = ["yaml_test_helpers.h"],
  31. deps = [
  32. "//common:error",
  33. "//common:ostream",
  34. "@com_google_googletest//:gtest",
  35. "@llvm-project//llvm:Support",
  36. ],
  37. )
  38. cc_test(
  39. name = "yaml_test_helpers_test",
  40. size = "small",
  41. srcs = ["yaml_test_helpers_test.cpp"],
  42. deps = [
  43. ":yaml_test_helpers",
  44. "//testing/base:gtest_main",
  45. "@com_google_googletest//:gtest",
  46. ],
  47. )