BUILD 1.4 KB

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