BUILD 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. "@googletest//:gtest",
  37. "@llvm-project//llvm:Support",
  38. ],
  39. )
  40. cc_test(
  41. name = "yaml_test_helpers_test",
  42. size = "small",
  43. srcs = ["yaml_test_helpers_test.cpp"],
  44. deps = [
  45. ":yaml_test_helpers",
  46. "//testing/base:gtest_main",
  47. "@googletest//:gtest",
  48. ],
  49. )