BUILD 969 B

123456789101112131415161718192021222324252627282930313233343536373839
  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("//bazel/sh_run:rules.bzl", "glob_sh_run")
  5. load("//bazel/testing:lit.bzl", "glob_lit_tests")
  6. glob_lit_tests(
  7. data = [
  8. "//bazel/testing:merge_output",
  9. "//toolchain/driver:carbon",
  10. "@llvm-project//llvm:FileCheck",
  11. "@llvm-project//llvm:not",
  12. ],
  13. driver = "lit.cfg.py",
  14. test_file_exts = ["carbon"],
  15. )
  16. glob_sh_run(
  17. args = [
  18. "$(location //toolchain/driver:carbon)",
  19. "dump",
  20. "semantics-ir",
  21. ],
  22. data = ["//toolchain/driver:carbon"],
  23. file_exts = ["carbon"],
  24. )
  25. glob_sh_run(
  26. args = [
  27. "$(location //toolchain/driver:carbon)",
  28. "-v",
  29. "dump",
  30. "semantics-ir",
  31. ],
  32. data = ["//toolchain/driver:carbon"],
  33. file_exts = ["carbon"],
  34. run_ext = "verbose",
  35. )