Files
carbon-lang/toolchain/semantics/testdata/BUILD
T
Jon Ross-Perkins fd455ed36b Add convenience .run targets for test files. (#2384)
e.g., for `//explorer/testdata:tuple/no_ending_comma.carbon.test`, `bazel run //explorer/testdata:tuple/no_ending_comma.carbon.run`
2022-11-14 08:39:56 -08:00

40 lines
969 B
Python

# Part of the Carbon Language project, under the Apache License v2.0 with LLVM
# Exceptions. See /LICENSE for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
load("//bazel/sh_run:rules.bzl", "glob_sh_run")
load("//bazel/testing:lit.bzl", "glob_lit_tests")
glob_lit_tests(
data = [
"//bazel/testing:merge_output",
"//toolchain/driver:carbon",
"@llvm-project//llvm:FileCheck",
"@llvm-project//llvm:not",
],
driver = "lit.cfg.py",
test_file_exts = ["carbon"],
)
glob_sh_run(
args = [
"$(location //toolchain/driver:carbon)",
"dump",
"semantics-ir",
],
data = ["//toolchain/driver:carbon"],
file_exts = ["carbon"],
)
glob_sh_run(
args = [
"$(location //toolchain/driver:carbon)",
"-v",
"dump",
"semantics-ir",
],
data = ["//toolchain/driver:carbon"],
file_exts = ["carbon"],
run_ext = "verbose",
)